well i belive that nobody had ever posted this script, so here's mine.
;artificila intelligence script
:state=0:dimvar=armor
:state=0:hudreset,hudx=40,hudy=5,hudimagefine=gamecore\huds\user\cash.dds,hudname=cashlabel,hudhide=1,hudmake=display
:state=0:hudreset,hudx=38,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudtype=6,huduservar=armor,hudmake=numeric
:state=0,vargreater=armor 1000:setvar=armor 1000
:state=0,plrhealthless=10000,vargreater=armor 50:subvar=armor 50,plrsethealth=10000
;end
;Artificial Intelligence Script
:state=0:state=1
:state=1,plrdistwithin=40:addvar=armor 1000,playertake,coloff
;End of Script
how to use:
put the first script in an object that'll be active all the time,
and put the second script in the object that you wish to use as the armor, start fpsc, pick up the object, and you shoud see another hud close to the health hud.
what it does: adds you an armor, the qty of damage that it can take is quantified, so no matter how much damage you take, the armor looses only 50 points, and it also heal you completely after taking damage.
well, as i promissed, i've upgraded the armor sys:
:state=0:etimerstart,state=1
:state=1,etimergreater=600,varless=armor 960:addvar=armor 50,state=0
to use it, you need to put the script in a object that'll be active all the time, and you can't replace any of the scripts by this one, you gotta use'em together.
mods for creating a inteligent game,at least