Dans la lancée je vous en refile 3 :
le 1er : chasse MAIS des que repéré et traque, si il te perd de vue attendra la ou il est...
Le 2eme : Idem, attaque de loin MAIS reprendra ses recherches...
Le 3eme ide que le 2 mais en attaque rapprochée
NOTE : ces scripts sont à mettre en script PRINCIPAL et PAS DE WAYPOINTS !
Script 1
;A rtificial Intelligence Script
;H eader
desc = cherche le joueur, le prend en chasse, reste sur place si il le perd de vue.
-=HAVOK=-
;T riggers
:state=0:waypointstart
:state=0,plrwithin,plrdistfurther=601:state=0
:state=0,plrwithin,plrdistwithin=600:state=20
:state=1,plrcanbeseen:movefore=10,animate=3,state=
20
:state=1,shotdamage=1:movefore=10,animate=3,state=
20
;- =>>>WAYPOINTS<<<=-
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=5,waypointrandom
:waypointstate=5:animate=2,waypointreverse
;/ //PLR FOUND\\\
:state=20,plrdistfurther=50,plrcanbeseen:rotatetop
lr,movefore=20,animate=5
:state=20,plrcannotbeseen:state=40
:state=20,shotdamage=1:strafeforward
:state=20,plrdistwithin=50:state=50
;/ //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=20,animate=3
:state=40,shotdamage=1:rotatetoplr
:state=40,noiseheard=60:rotatetoplr
:state=40:state=20
:state=50,plrcanbeseen:state=51,settarget
;: losetarget=10:runfpidefault=1
;: state=50:runfpidefault=1
;: losetarget=10:runfpidefault=1
:state=50,state=40
:state=51:rotatetoplr
:state=51,ifweapon=1,plrcanbeseen=46,plringunsight
,rateoffire:useweapon,rundecal=6
:state=51,ifweapon=0:state=52,setframe=6
:state=52:incframe=6
:state=52,frameatend=6:state=51,reloadweapon,sound
=audiobank\guns\reload.wav
;E nd of Script
script 2
;A rtificial Intelligence Script
;H eader
desc = cherche le joueur, le prend en chasse, reprend les recherche si il le perd de vue.
-=HAVOK=-
;T riggers
:state=0:waypointstart,setframe=19
:state=0,plrwithin,plrdistfurther=601:state=0
:state=0,plrwithin,plrdistwithin=600: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=55,movefore=10,animate=2
:state=40,shotdamage=1:rotatetoplr
:state=40,noiseheard=60:rotatetoplr
:state=40:state=20
;/ /ATTACK\\
:state=50,plrcanbeseen:state=51,settarget
:state=50:runfpidefault=1
:state=51,losetarget=100:state=0
:state=51:rotatetoplr
:state=51,plrcanbeseen:settarget
:state=51,ifweapon=1,plrdistfurther=301:movetotarg
et=1,animate=5
:state=51,plrdistwithin=300:rotatetoplr
:state=51,ifweapon=1,plrdistwithin=300,plrcanbesee
n=46,rateoffire:animate=1,rotatetoplr,freeze,usewe
apon,rundecal=6
:state=51,ifweapon=0:animate=1,freeze,state=52,set
frame=6
:state=51,plrdistwithin=300,random=50:state=55
:state=51,plrdistwithin=300:state=60
:state=52:incframe=6
:state=52,frameatend=6:state=51,reloadweapon,sound
=audiobank\guns\reload.wav
: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=1
:state=57:incframe=3,strafe=-90,rotatetoplr
:state=57,frameatend=3:state=51,animate=1
:state=60:state=61,setframe=5
:state=61:incframe=5,strafe=180,rotatetoplr
:state=61,frameatend=5:state=51,animate=1
;E nd of Script
script 3
;A rtificial Intelligence Script
;H eader
desc = cherche le joueur, le prend en chasse, reprend les recherche si il le perd de vue.
-=HAVOK=-
;T riggers
:state=0:waypointstart,setframe=19
:state=0,plrwithin,plrdistfurther=201:state=0
:state=0,plrwithin,plrdistwithin=200: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=55,movefore=10,animate=2
:state=40,shotdamage=1:rotatetoplr
:state=40,noiseheard=60:rotatetoplr
:state=40:state=20
;/ /ATTACK\\
:state=50,plrcanbeseen:state=51,settarget
:state=50:runfpidefault=1
:state=51,losetarget=100:state=0
:state=51:rotatetoplr
:state=51,plrcanbeseen:settarget
:state=51,ifweapon=1,plrdistfurther=201:movetotarg
et=1,animate=5
:state=51,plrdistwithin=200:rotatetoplr
:state=51,ifweapon=1,plrdistwithin=200,plrcanbesee
n=46,rateoffire:animate=1,rotatetoplr,freeze,usewe
apon,rundecal=6
:state=51,ifweapon=0:animate=1,freeze,state=52,set
frame=6
:state=51,plrdistwithin=200,random=50:state=55
:state=51,plrdistwithin=100:state=60
:state=52:incframe=6
:state=52,frameatend=6:state=51,reloadweapon,sound
=audiobank\guns\reload.wav
: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=1
:state=57:incframe=3,strafe=-90,rotatetoplr
:state=57,frameatend=3:state=51,animate=1
:state=60:state=61,setframe=5
:state=61:incframe=5,strafe=180,rotatetoplr
:state=61,frameatend=5:state=51,animate=1
;E nd of Script
Variez les plaisirs : mettez un ennemi avec le 2 et un avec le 3 par exemple
Cyber