29-09-2012, 06:06 PM
salve a tutti
di recente ho acquistato il character boss, del tgc store, che ha due modalita di combattimento: una col coltello e dopo usa la pistola.
il problema è che quando prende la pistola e ti spara, se lo colpisci fpsc si blocca e smette di funzionare.
lo script main è:
e quello di destroy è
sapete come fare per aiutarmi?
per favore
p.s. nello script c'erano dei comandi errati e li ho corretti per vedere se andava ma non cambia ugualmente
di recente ho acquistato il character boss, del tgc store, che ha due modalita di combattimento: una col coltello e dopo usa la pistola.
il problema è che quando prende la pistola e ti spara, se lo colpisci fpsc si blocca e smette di funzionare.
lo script main è:
Codice:
desc = Random Melee Attack
;Triggers
:state=0:hudreset,hudx=50,hudy=10,hudimagefine=gamecore\huds\bond1\commandododge.tga,hudname=commandododge,hudhide=1,hudmake=display,state=2
;HEALTH CHECK
:state=1,healthless=200,shotdamage=9:state=50
:state=11,healthless=200,shotdamage=9:state=50
:state=12,healthless=200,shotdamage=9:state=50
:state=13,healthless=200,shotdamage=9:state=50
:state=14,healthless=200,shotdamage=9:state=50
:state=20,healthless=200,shotdamage=9:state=50
:state=21,healthless=200,shotdamage=9:state=50
:state=22,healthless=200,shotdamage=9:state=50
:state=23,healthless=200,shotdamage=9:state=50
:state=24,healthless=200,shotdamage=9:state=50
:state=25,healthless=200,shotdamage=9:state=50
;DETECT PLAYER
:state=2,plrdistwithin=100,plrcanbeseen:waypointstop,state=9,rotatetoplr,setframe=46,sound=audiobank\bond1\commandointro.wav
:state=2,shotdamage=1:waypointstop,state=9,rotatetoplr,setframe=46
;INTRO ANIMATION
:state=9:waypointstop,incframe=46
:state=9,frameatend=46:state=5
;CHOOSE MELEE ATTACK
:state=5,random=2:state=1
:state=5,random=2:state=20
;MELEE ATTACK 1
:state=1,plrdistfurther=60:waypointstop,rotatetoplr,runfore=2,animate=47
:state=1,plrdistwithin=60:waypointstop,rotatetoplr,setframe=48,state=11
:state=11,plrdistfurther=60:runfore=2
:state=11:incframe=48,rotatetoplr
:state=11,framebeyond=48 15:hudshow=commandododge,hudfadeout=commandododge
:state=11,framebeyond=48 60:state=12
:state=12:incframe=48
:state=12,scancodekeypressed=34,frameatend=48:setframe=50,state=14,sound=audiobank\bond1\commandomiss.wav
:state=12,frameatend=48:setframe=49,state=13,sound=audiobank\bond1\commandoconnect.wav
:state=13,plrdistfurther=60:runfore=2
:state=13:incframe=49,rotatetoplr
;:state=13,framewithin=49 20:movefore=1
:state=13,framebeyond=49 30,plrdistwithin=80:plraddhealth=-2,plrfreeze=1
:state=13,frameatend=49:plrfreeze=0,state=5
:state=14:incframe=50
:state=14,frameatend=50:state=5
;MELEE ATTACK 2
:state=20,plrdistfurther=60:waypointstop,rotatetoplr,runfore=2,animate=47
:state=20,plrdistwithin=60:waypointstop,rotatetoplr,setframe=51,state=21
:state=21,plrdistfurther=60:runfore=2
:state=21:incframe=51,rotatetoplr
:state=21,framebeyond=51 15:hudshow=commandododge,hudfadeout=commandododge
:state=21,framebeyond=51 60:state=22
:state=22:incframe=51
:state=22,scancodekeypressed=34,frameatend=51:setframe=53,state=24,sound=audiobank\bond1\commandomiss.wav
:state=22,frameatend=51:setframe=52,state=23,sound=audiobank\bond1\commandoconnect.wav
:state=23,plrdistfurther=60:runfore=2
:state=23:incframe=52,rotatetoplr
;:state=23,framewithin=52 20:movefore=1
:state=23,framebeyond=52 30,plrdistwithin=80:plraddhealth=-2,plrfreeze=1
:state=23,frameatend=52:plrfreeze=0,state=5
:state=24:incframe=53
:state=24,framebeyond=53 63,plrdistwithin=60:plraddhealth=-30,state=25
:state=24,frameatend=53:state=5
:state=25:incframe=53
:state=25,frameatend=53:state=5
;MID FIGHT HURT
:state=50:state=51
:state=51:rotatetoplr,setframe=54,state=52
:state=52:rotatetoplr,incframe=54
:state=52,frameatend=54:state=30
;SHOOT
:state=30,plrcanbeseen:settarget,rotatetotarget,rotatetoplr,resethead
:state=30,plrdistwithin=300:runfore=2,animate=5
:state=30,ifweapon=0:state=38
:state=30,random=20:state=39
:state=30,shotdamage=1:rotatetoplr,state=37
:state=30,noiseheard=5:settarget,rotatetotarget,rotatetoplr,state=37
:state=30,ifweapon=1,plrcanbeseen:state=32
:state=31,plrcanbeseen:settarget,rotatetotarget,rotatetoplr,resethead
:state=31,plrdistwithin=300:runfore=2,animate=5
:state=31:incframe=3,strafe=-90,rotatetoplr
:state=31,ifweapon=1,plrcanbeseen:useweapon,rundecal=6,animate=56
:state=31,frameatend=3:state=30,animate=56
:state=35:useweapon,rundecal=6,animate=56,state=30
:state=34:state=35
:state=33:state=34
:state=32:state=33
:state=36:incframe=4,strafe=90,rotatetoplr
:state=36,ifweapon=1,plrcanbeseen:useweapon,rundecal=6,animate=56
:state=36,frameatend=4:state=30,animate=56
:state=37,random=1:state=36,setframe=4
:state=37:state=31,setframe=3
:state=38:state=30,reloadweapon,sound=audiobank\guns\reload.wav
:state=39,plrcannotbeseen:state=40
:state=39:state=30
:state=40,random=1:rotatetoplr,strafe=135
:state=40,random=1:rotatetoplr,strafe=-135
:state=40,random=1:rotatetoplr,strafe=-65
:state=40,random=1:rotatetoplr,strafe=65
:state=40:state=37
;ROUNDHOUSE GUN
:state=31,plrdistwithin=65:rotatetoplr,setframe=55,state=60
:state=30,plrdistwithin=65:rotatetoplr,setframe=55,state=60
:state=60:incframe=55
:state=60,framewithin=55 40:movefore=2
:state=60,framebeyond=55 50,plrdistwithin=65:plraddhealth=-20,state=61
:state=60,frameatend=55:state=30
:state=61:incframe=55
:state=61,frameatend=55:state=30
Codice:
;Artificial Intelligence Script
;Header
desc = Fade Out Disappear
;Triggers
:state=0:hudreset,hudx=15,hudy=70,hudimagefine=gamecore\huds\bond1\commandodestroy.tga,hudname=commandodestroy,hudhide=1,hudmake=display,state=1,sound=audiobank\bond1\commandotired.wav
:state=1:animate=57
:state=1,plrdistwithin=100:hudshow=commandodestroy
:state=1,plrdistfurther=101:hudreset,hudunshow=commandodestroy
:state=1,plrdistwithin=100,scancodekeypressed=20:setframe=58,state=2,sound=audiobank\bond1\commandodie.wav
:state=1,plrdistwithin=100,scancodekeypressed=21:setframe=59,state=3,sound=audiobank\bond1\commandodie.wav
;:state=1,shotdamage=50:setframe=
:state=2:incframe=58,hudfadeout=commandodestroy
:state=2,frameatend=58:state=5,suspend,coloff,hudhide=commandodestroy
:state=3:incframe=59,hudfadeout=commandodestroy
:state=3,frameatend=59:state=5,suspend,coloff,hudhide=commandodestroy
;End of Script
per favore
p.s. nello script c'erano dei comandi errati e li ho corretti per vedere se andava ma non cambia ugualmente