Hey guys, more toilet thinking today led to this fpi and fpe combo for the ww2damaged tank from the stock media
(save the fpi as tankattack.fpi or change the aimain to whatever u ccall it instead
fpi!
;Artificial Intelligence Script
;Header
desc = tank attack script
;Triggers
:state=0:timerstart,state=1
:state=1,timergreater=3000:,movefore=200,state=2
:state=2,timergreater=5000:rotatetoplr,reloadweapon,useweapon,state=3
:state=3,timergreater=8000:pivotrandom=90,movefore=200,state=4
:state=4,plrdistwithin=500:state=5
:state=4,plrdistfurther=500:state=6
:state=5,plrdistfurther=300:timerstart,state=2
:state=5,plrdistwithin=300:state=7
:state=6:pivotrandom=180,movefore=100,rotatetoplr,state=4
:state=7:pivotrandom=180,movefore=100,rotatetoplr,state=4
;End of Script
fpe!
;header
desc = damaged_tank now can attack
;ai
aiinit = appear1.fpi
aimain = tankattack.fpi
aidestroy = disappear1.fpi
aishoot = people\launch.fpi
soundset = male
;spawn
spawnmax = 0
spawndelay = 0
spawnqty = 0
;orientation
model = meshbank\ww2\scenery\special\damaged_tank.x
offx = 0
offy = 0
offz = 0
rotx = 0
roty = 0
rotz = 0
fixnewy = 180
;cone of sight
coneheight = 53
coneangle = 50
;visualinfo
textured = texturebank\ww2\scenery\special\damaged_tank_d2.tga
effect =
castshadow = 0
;decals
decalmax = 2
decal0 = red
decal1 = blood
;identity details
strength = 100
ischaracter = 1
hasweapon = ww2\bazooka
isobjective = 0
cantakeweapon = 1
isflak = 1
combine these two (back up your originals and use these in their place) to make the world war 2 damaged panze from the stock media in fpsc, come to life and relentlessly try to attack you!
It uses the stock ww2 bazooka and a custom fpi i wrote its triggered after a certain time, moves forward into the open and then attempts to kill you, while manouvering randomly to avoid your fire, ai is very basic (wont respond to damage, noise etc) but feel free to customise to your needs!
Edit: ok now it should work properly guys thanks for the feedback! use the new fpi code snippet here
;Artificial Intelligence Script
;Header
desc =
;Triggers
:state=0:timerstart,state=1
:state=1,timergreater=3000:,movefore=200,state=2
:state=2,timergreater=5000:rotatetoplr,reloadweapon,useweapon,state=3
:state=3,timergreater=8000:pivotrandom=90,movefore=200,state=4
:state=4,plrdistwithin=500:state=5
:state=4,plrdistfurther=500:state=6
:state=5,plrdistfurther=300:timerstart,state=2
:state=5,plrdistwithin=300:state=7
:state=6:pivotrandom=180,movefore=100,rotatetoplr,state=4
:state=7:pivotrandom=180,movefore=100,rotatetoplr,state=4
;End of Script
(i also edited the one above but just in case
)
EDIT: thanks again for the feedback guys!
- Why is everyone on here so rude? -