mugen chars, rare characters
Mugen | CHAT | Guard Push - Forum | Registration | Login
[New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Guard Push
BabricogurlDate: Sunday, 2009-11-29, 8:52 PM | Message # 1
Hero
Group: contributor
Messages: 429
Awards: 3
Reputation: 7
Reproofs: 0%
Status: Offline
=====================
Guard Push
=====================

In Capcom's Vs series, your character is able to push the opponent away while guarding
an attack. This isn't really that difficult to implement in a character. All it basically
requires is an invisible helper that pushes the opponent away.

In the CMD file, add this code:
;---------------------------------------------------------------------------
;Guard Push
[State -1, Guard Push]
type = ChangeState
value = 900
triggerall = command = "guardpush"
triggerall = statetype = S
trigger1 = stateno = [150,153] ;The guard state numbers

Now in the CNS:
;---------------------------------------------------------------------------
;Guard Push

[Statedef 900]
type = S
movetype= I
physics = N
poweradd= 0
velset = 10,0
ctrl = 0
anim = 900
sprpriority = 2

[State 900, VelMul]
type = VelMul
trigger1 = 1
x = 0.75

[State 900, VelSet]
type = VelSet
trigger1 = Time = 10
x = 0

[State 900, Width]
type = Width
trigger1 = 1
value = 10,0

;Change the amount of time you want the player to not be able to get hit
[State 900, NotHitBy]
type = NotHitBy
trigger1 = Time = 0
value = SCA
time = 20

[State 900, Guard Push Helper]
type = Helper
trigger1 = Time = 0
helpertype = Normal
name = "GuardPush"
postype = P1
pos = -50,0
stateno = 901
ownpal = 1
size.height = 200
size.ground.back = 30
size.ground.front = 30

[State 900, ChangeState]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; Guard Push (Helper)

[Statedef 901]
type = S
movetype= I
physics = N
poweradd= 0
ctrl = 0
anim = 901
sprpriority = -4

[State 901, PlayerPush]
type = PlayerPush
trigger1 = Time >= 0
value = 1

[State 901, VelSet 1]
type = VelSet
trigger1 = Time = [0,10]
x = 30

[State 901, VelSet 2]
type = VelSet
trigger1 = Time = [11,13]
x = 20

[State 901, VelSet 2]
type = VelSet
trigger1 = Time >= 14
x = 10

[State 901, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 901, DestroySelf]
type = DestroySelf
trigger1 = Time >= 18

Make sure you specify the helper in the AIR file as well:
;---------------------------------------------------------------------------
; Guard Push Helper
[Begin Action 901]
Clsn2: 1
Clsn2[0] = -30,-200,30,50
-1,0, 0,0, -1


http://www.youtube.com/user/TheBabricogurl
 
  • Page 1 of 1
  • 1
Search:

Copyright MyCorp © 2024 Create a free website with uCoz