Pendant le combat, c´est facile, il suffisait d´y penser : ajouter aux bons endroits la ligne ",sound=audiobank\Perso\DUKE\you_suck.ogg" (Ici c´est un exemple testé sur un de mes scripts, qui d´ailleurs possède 2 phrases, s´enchainant l´une apres l´autre (entre de rechargement d´arme)
Le voici, il ne vous reste qu´a vous en inspirer....Selon moi ca sera plus cool mais evitez les phrases trops longues, mettez plutot des onomatopées.C´est déjas plus chouette qu´un bête trigger...Imaginez vos combat, votre ennemi qui vous crie : "meurts" , "salopard" , "crève charogne" ....pendant que vous vous fritez à la mitraillette...
MON SCRIPT :
;A rtificial Intelegence Script
;H eader
desc = Snipe + attaque suicide
;T riggers
;: healthless=500:state=60
:state=0,plrcanbeseen:state=1,settarget
:state=0:runfpidefault=1
:state=1,losetarget=100:state=5
:state=1:rotatetoplr
:state=1,plrcanbeseen:settarget
:state=1,ifweapon=1,plrdistfurther=100:movetotarge
t=1,animate=5
;:state=1,ifweapon=0,plrdistfurther=100:sound=audi
obank\Perso\DUKE\you_suck.ogg
:state=1,plrdistwithin=101:rotatetoplr
:state=1,ifweapon=1,plrdistwithin=400,plrcanbeseen
=46,rateoffire:animate=1,rotatetoplr,freeze,usewea
pon,rundecal=6
:state=1,ifweapon=0:animate=1,freeze,state=2,setfr
ame=6,sound=audiobank\Perso\DUKE\blow.ogg
:state=1,plrdistwithin=200,random=20:state=5
:state=1,plrdistwithin=50:state=10
:state=2:incframe=6
:state=2,frameatend=6:state=1,reloadweapon,sound=a
udiobank\guns\reload.wav
:state=5,random=1:state=6,setframe=4
:state=5:state=7,setframe=3
:state=6:incframe=4,strafe=90,rotatetoplr
:state=6,frameatend=4:state=1,animate=1
:state=7:incframe=3,strafe=-90,rotatetoplr
:state=7,frameatend=3:state=1,animate=1
:state=10:state=11,setframe=5
:state=11:incframe=5,strafe=180,rotatetoplr
:state=11,frameatend=5:state=20,animate=1
:state=20,plrcanbeseen:state=21,settarget
:healthless=200:state=50
:losetarget=10:runfpidefault=1
:state=20:runfpidefault=1
:state=21:rotatetoplr
:state=21,ifweapon=1,plrcanbeseen=46,plringunsight
,rateoffire:useweapon,rundecal=6
:state=21,ifweapon=0:state=22,setframe=6
:state=22:incframe=6
:state=22,frameatend=6:state=30,reloadweapon,sound
=audiobank\guns\reload.wav
:state=30,plrcanbeseen:state=31,settarget
:state=30:runfpidefault=1
:state=31,losetarget=100:state=35
:state=31:rotatetoplr
:state=31,plrcanbeseen:settarget
:state=31,ifweapon=1,plrdistfurther=100:movetotarg
et=1,animate=5
:state=31,plrdistwithin=101:rotatetoplr,sound=audi
obank\Perso\DUKE\you_suck.ogg
:state=31,ifweapon=1,plrdistwithin=101,plrcanbesee
n=46,rateoffire:animate=1,rotatetoplr,freeze,usewe
apon,rundecal=6
:state=31,ifweapon=0:animate=1,freeze,state=32,set
frame=6
:state=31,plrdistwithin=200,random=50:state=35
:state=31,plrdistwithin=50:state=40
:state=32:incframe=6
:state=32,frameatend=6:state=31,reloadweapon,sound
=audiobank\guns\reload.wav
:state=35,random=1:state=6,setframe=4
:state=35:state=37,setframe=3
:state=36:incframe=4,strafe=90,rotatetoplr
:state=36,frameatend=4:state=31,animate=1
:state=37:incframe=3,strafe=-90,rotatetoplr
:state=37,frameatend=3:state=31,animate=1
:state=40:state=41,setframe=5
:state=41:incframe=5,strafe=180,rotatetoplr
:state=41,frameatend=5:state=50,animate=1
:state=50,plrcanbeseen:state=51,settarget
:state=50,random=50:animate=1
:state=50:runfpidefault=1
:state=54:state=55
:state=51:state=54,animate=31
:state=55:rotatetoplr
:state=55,ifweapon=1,plrcanbeseen=46,plringunsight
:useweapon,rundecal=6
:state=55,ifweapon=0:state=56,setframe=36
:state=55,shotdamage=3:state=51
:state=56:incframe=36
:state=56,frameatend=36:state=0,reloadweapon,sound
=audiobank\guns\reload.wav
;E nd of Script
Inachevé j´ai d´autre frase a y ajouter mais C´est pour vous montrer comment, ou ....
Cyber