Advanced scripts

Half-Life 2 HL2
Advanced scripts by Madcow
Posted 16 years ago2007-06-22 17:21:00 UTC • Examples • Half-Life 2
Loading...
Screenshot Thumbnail
Name
Advanced scripts
By
Madcow Madcow
Type
Map
Engine
Source
Game
Half-Life 2
Category
Examples
Included
BSP, RMF/VMF
Created
16 years ago2007-06-22 17:21:00 UTC
Updated
16 years ago2007-06-23 05:30:55 UTC
Views
2645
Downloads
809
Comments
2
Download

This example map shows how to create a sequence of sequences...

You walk into this room where a citizen stands.
You want to go past him but he is blocking the way! (what an ass)
So, you go back, but when you turn around the citizen walks away from the door, and goes to the window instead and a new looped sequence begins.

Scripts might seem easy but they can be a real pain in the ass (ask habboi).
That's what makes these scripts a bit more advanced than just one script.
A bit more detailed description about what this example shows:

It shows how to loop an animation forever, but also how to end the looped script using an "exit animation".
For example, if you have a looped animation of a sitting citizen, then an exit animation would be the animation of the citizen rising from the chair he is sitting on.

The example also shows how to block the player from ruening the scripts using disabled ai.

Another small thing the example shows is how to first disable a trigger, and then enable it using another trigger.
Enjoy.

2 Comments

Commented 16 years ago2007-06-22 18:47:17 UTC Comment #15178
This map is awesome. It helped me with a scene I needed. Only bugger is the NPC doesn't seem to move when in this pose. Like he is frozen but I think it wasn't made for close-ups or long durations. Like a one off peek.
Commented 16 years ago2007-06-22 18:54:36 UTC Comment #15179
Yeah, that is not the script wich freezes the citizen, but the animation.
It was used in a very short scene in HL2.

You must log in to post a comment. You can login or register a new account.