Havana-like Randomness

Dekstar

Companion Cube
Joined
Jun 4, 2004
Messages
9,431
Reaction score
11
Ok, I did a search (I'm not a newbie at this, y'know ;)). And basically, I wanted to know how to create different routes, a la cs_Havana, that randomly open or close each round. Also, I would like to know if this could be done with Half-life 2 (as I noticed some of the entities don't exist in Half-life 2 Hammer, yet are in CSS hammer, and vice versa).
While we're on the topic, I wouldn't also mind knowing if you can deliberately script A.I. like this, using certain hammer functions (Available in hammer, not modded in). For instance:

Combine are breaking into the house, in a single scenario (Not one I am creating, but just as an example), and to keep it less boring, they enter the house in different patterns each time. Combine also create paths differently each time, forcing you onto your toes to keep alive.

Ok, just one more: Can you create a map, and deform landscape realistically with each randomisation that you create?

-Dekstar
 
Yes and Yes, you would use a logic entity to set the randomness of it, you might have to program one on your own but there is probably one with a random number generator. Basically you just have to create an entity of the brushes you want to be able to disappear, then on whatever random condition you choose send a kill message to the entities you want to disappear. For landscape deformation try using env_terrainmorph and a similar system of kill messages, but to really do it right you should probably modify the env_terrainmorph entity to something a little more in line with what you want.
 
Oh and as far as random paths as long as you lay the nodes so that there are multiple paths I find the AI does things pretty randomly, particularly if you have a path where the player would be flanked.
 
Back
Top