I will post a lot of my scripts here for self documentation and links for friends
This one follows a waypoint and then dies and activates ifused
;Artificial Intelligence Script
By: Angusm3
;Header
desc = Hunt And Pace Waypoints
;Triggers
animate=5
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:sethealth=0,activateifused=1
;End of Script
This one follows a waypoint, and at the end, plays the melee animation until health is less than 50, at which point it dies and activates ifused
;Artificial Intelligence Script
By: Angusm3
;Header
desc = Hunt And Pace Waypoints
;Triggers
:waypointstate=0:animate=5,waypointstart
:waypointstate=3:animate=5,waypointnext
:waypointstate=4:animate=5,waypointrandom
:waypointstate=5:animate=92
:healthless=50:activateifused=1,sethealth=0
;End of Script
Activates ifused if var is 10 or greater, put this in an unaccessible triggerzone
:state=0,vargreater=9:activateifused=1
simple timer script but it rarely works, keep lights and stuff out of the trigger zone that you apply this to unless it's activating them as soon as you enter the zone
:state=0,plrwithinzone=1:activateallinzone=1,state=1,timerstart
:state=1,timergreater=1000:activateifused=1
I got this from someone on the forums, it breaks the window that it is applied to if activated
:state=0,activated=1:sound=audiobank\smash\glass.wav,rundecal=1,shapedecal,state=1
:state=1:sethealth=0,activateifused=1
this is not mine either, set it as the main in an entity that does not spawn at start, when it is activated the camera shakes for a couple seconds like an explosion
:state=0:localvar=0,setvar=0
:state=0,activated=1:setalphafade=0,state=2
:state=0,activated=1:destroy,explode
:state=2,alphafadeequal=0:state=3
:state=3,varequal=15:state=5
:state=3,varless=15:state=4,etimerstart
:state=4,timergreater=20:state=3,incvar=1,camshake=50
:state=5,varequal=30:state=7
:state=5,varless=30:state=6,etimerstart
:state=6,timergreater=20:state=5,incvar=1,camshake=30
:state=7,varequal=45:state=9
:state=7,varless=45:state=8,etimerstart
:state=8,timergreater=20:state=7,incvar=1,camshake=10
:state=9,varequal=60:state=11
:state=9,varless=60:state=10,etimerstart
:state=10,timergreater=20:state=9,incvar=1,camshake=5
:state=11,varequal=75:destroy
:state=11,varless=75:state=12,etimerstart
Very simple 'ghost that disappears around a corner' waypoint script
;Artificial Intelligence Script
By: Angusm3
;Header
desc = Hunt And Pace Waypoints
;Triggers
:timerstart
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:destroy
;End of Script
I'll add more as I make or find good ones
I appear to have burst into flames...