celui-ci a mettre en ´MAIN4 (script principal) :
;A rtificial Intelligence Script
;H eader
desc = Weapon Glowing Pickup
;T riggers
:state=0:waypointstart,setframe=19
:state=0,plrwithin,plrdistfurther=801:state=0
:state=0,plrwithin,plrdistwithin=800:state=20
:state=1,plrcanbeseen:state=50
;- =>>>WAYPOINTS<<<=-
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
;/ //PLR FOUND\\\
:state=20,plrcanbeseen:state=50
:state=20,plrcannotbeseen:state=40
;/ //Look For Plr\\\
:state=40,plrcannotbeseen,random=3:timerstart
:state=40,plrcannotbeseen,random=3,timergreater=30
:rotateheadrandom=50
:state=40,plrcannotbeseen,random=3,timergreater=40
:pivotrandom=50,movefore=10,animate=2
:state=40,shotdamage=1:rotatetoplr
:state=40:state=20
;/ /ATTACK\\
:state=50,plrcanbeseen:state=51,settarget
:losetarget=100:state=0
:state=0:runfpidefault=1
:state=51,plrcannotbeseen:runfpidefault=1
:state=51:rotatetoplr
:state=51,ifweapon=0:animate=5,freeze,state=52,set
frame=6
:state=51,plrdistwithin=200,random=20:state=55
:state=51,plrdistwithin=50:state=60
:state=51,ifweapon=1,rateoffire,plrdistfurther=60:
state=52,setframe=6
:state=51,ifweapon=1,rateoffire,plrdistwithin=60:s
tate=53,setframe=6,plraddhealth=-25,sound=audioban
k\voices\doom_imp\slice.wav
:state=52:incframe=6
:state=52,frameatend=6:state=51,reloadweapon
:state=52:incframe=6
:state=52,framebeyond=6 60:useweapon
:state=52,frameatend=6:state=51,reloadweapon
:state=53:incframe=6
:state=53,frameatend=6:state=51,reloadweapon
:state=55,random=1:state=56,setframe=4
:state=55:state=57,setframe=3
:state=56:incframe=4,strafe=90,rotatetoplr
:state=56,frameatend=4:state=51,animate=5
:state=57:incframe=3,strafe=-90,rotatetoplr
:state=57,frameatend=3:state=51,animate=5
:state=60:state=61,setframe=5
:state=61:incframe=5,strafe=180,rotatetoplr
:state=61,frameatend=5:state=51,animate=5
;E nd of Script
rien en script attack
choisir l´arme ´glaive´ dans les armes SF
explications : le zombie de loin te balance des grenades (glaives) et de pres te tapes dessus, straffe...(combat au corps a corps quoi).
cyber