YesNoOk
avatar

Improved defeat (Simul Battle) (Read 6431 times)

Started by Dr.Chapatín, May 01, 2015, 10:26:12 pm
Share this topic:
Improved defeat (Simul Battle)
#1  May 01, 2015, 10:26:12 pm
  • avatar
  • ****
  • Ya me dio cosa...
    • Mexico
The code improves the 'HIT_LIEDEAD' of the partner in simultaneous fights...
Giving the impression that the camera no longer focuses the loser.

Common.cns
Code:
; HIT_LIEDEAD
[Statedef 5150]
...
[State 5150];CloneHELPER
type = Helper
triggerall = Teammode = simul
trigger1 = !Numhelper(5500)
trigger1 = Partner,Life>1 && Roundstate=2
ID=5500
stateno=5500

[State 5150];Invisible
type = Changeanim
trigger1=Numhelper(5500) && anim!=1300
value=1300 ;<-invisible anim (-1)

[State 5150];partnerPOS
type = Posset
trigger1 = Numhelper(5500) && Roundstate=2
x=Partner,Pos x
...
Code:
[Statedef 5500];Clone
type=S
physics=N
anim=5150
sprpriority=-3
velset=0,0

[State 5500]
type = Null
trigger1 = !Time

Dat tittle