try to clean the fpsc with the fpsc cleanner, and about that zombie script, i got it right here, half way done, would you like to take a look ?
for now the zombie attack the barrel until it breakes, and then attack the player, he'll just attack the player if the barrel has been destroyed, but he won't attack another recently build barrel if he is already attacking the player, only one zombie attack the barrel, the others wait (weird targetting issue) and when the barrel comes down, they all attack the player, there's alot of odd behaviour yet, nothing that can't be fixed... here are the scripts:
;Triggers
:state=0,activated=1:state=6
:state=0,activated=0:settargetname=grate01,etimerstart,state=1
:state=1:rotatetotarget,animate=2,movefore=2
:state=1,reachtarget=1:setframe=8,state=3
:state=1,losetarget=1:state=10
:state=3,framebeyond=8 60:addvar=zombie 500,state=4
:state=3:incframe=8,rotatetotarget
;:state=3,frameatend=8:state=1
:state=3,losetarget=2:state=10
:state=4:incframe=8
:state=4,frameatend=8:state=5
:state=5,etimergreater=770:addvar=zombie 500,state=1
:state=5,etimergreater=770,activated=1:state=6
:state=6,plrdistwithin=500:state=7
:state=7,plrdistfurther=90:rotatetoplr,movefore=2,animate=2
:state=7,plrdistfurther=500:animate=1,state=6
:state=7,plrdistwithin=90,rateoffire:rotatetoplr,setframe=8,state=8
:state=8,framebeyond=8 60,plrdistwithin=100:plraddhealth=-10,sound=audiobank\misc\melee.wav,state=9
:state=8:incframe=8,rotatetoplr
:state=8,frameatend=8:state=7
:state=9:incframe=8
:state=9,frameatend=8:state=7
:state=10,activated=1:state=6
:state=10,activated=0:state=0
the variable script:
;Triggers
:state=0:dimvar=zombie,state=1
and for last, the barrel:
:state=0,vargreater=zombie 2000:state=1
:state=1:subhealth=999999
these are customs scripts, they need to be used with some already existent scripts, but don't worry, they come with the fpsc, and those are:
zoneactivate.fpi
destroyandactivate.fpi
appear2.fpi
i don't think i need to tell you how to set this system up, but still, just to make sure, i will.
1. at the second line of the character's script there's a command called settargetname= you MUST put the barrel's entity name here and overwrite the default name on the script.
2.now set this script "zombiebarrel.fpi" at the barrel's main script slot.
3.put the name of the character that you wish to be the zombie at the barrel's IFUSED slot.
4.set the script "destroyandactivate.fpi" to the barrel's destroy script slot
5.set the barrel's streng to 10000
6.now save and forget the damm barrel
7.put a trigger zone with in the player's start area
8.put the script "zoneactivate.fpi" at the main script slot of the triggerzone
9.put the character's name that you wish to be the zombie af the IFUSED slot
10.now, finally ! put the script "appear2.fpi" at the Start script slot
11.put the script "zombie.fpi" at the main script slot.
12.at the respawn options, set it like this:
yes
1
1
yes
no
0
1
0
0
0
90
0
0
now, is the script working for you guys ? it's working here.
mods for creating a inteligent game,at least