My last release for this event is a code snippet I use for all my characters to add superjump to them if they don't have it. Before the actual code I must again state that I have found this code while surfing the web and I have not created it myself. I think Duracelleur is the creator of this as his code is almost identical. Nevertheless this is a neat way of adding super jump to your character (works 99% of the time) if you have no clue how to do it. To all other coders I apologize in advance because there's fine tuning that can be done to this I'm sure.
Instructions
Add the following to the .cns file of the character. This can be the tricky part because in a lot of cases there are several .cns files for a character. If it doesn't work try adding the code to all .cns files you find and see if it works. The code should be placed LAST in the .cns file
---------------------------------------------------------------------------------------------------------
;Super Jump
[Statedef 424]; change these for the number that you want
type = A
movetype = I
physics = N
anim = 40 ; these is the jump anim
velset = 0,0
ctrl = 0
[State 424, 0]
type = VarSet
trigger1 = Time = 0
sysvar(1) = 0
[State 424, 1]
type = VarSet
trigger1 = command = "holdfwd"
sysvar(1) = 1
[State 424, 2]
type = VarSet
trigger1 = command = "holdback"
sysvar(1) = -1
[State 424, 3]
type = VelSet
trigger1 = animtime = 0
x = ifelse(sysvar(1)=0, const(velocity.jump.neu.x), ifelse(sysvar(1)=1, const(velocity.jump.fwd.x), const(velocity.jump.back.x)))
y = const(velocity.jump.y)*1.7 ; you can change these value, to make it fit how you want the superjump
[State 424, 4]
type = ChangeState
trigger1 = animtime = 0
value = 50
ctrl = 1
---------------------------------------------------------------------------------------------------------
Save the .cns file and open up the characters CMD file with notepad or better yet Notepad++
Place the following code right before [Statedef -1]
---------------------------------------------------------------------------------------------------------
[Command]
name = "DU"
command = D, U
time = 30
---------------------------------------------------------------------------------------------------------
Proceed to the bottom of the CMD file and place the following code
---------------------------------------------------------------------------------------------------------
;Super Jump
[State -1, super jump ]
type = ChangeState
value = 424
trigger1 = command = "DU"
trigger1 = ctrl ; these means that you can make the move when you control the char
trigger1 = statetype != A ; these is to make that you cant use the superjump while you are in the air
; If you want to make a launcher you can use these
;trigger2 = (stateno = yyy) && (movehit) && (command = "holdup") ;yyy right here is the stateno for your lancher
[State -3,veladd]
type = Veladd
triggerall =command = "holdfwd"
triggerall = prevstateno = 424 ; the superjumo state
trigger1 = stateno = 50; jump state
x = .2 ; maybe you need to modify these value
[State state-3,veladd]
type = Veladd
triggerall =command = "holdback"
triggerall = prevstateno = 424
trigger1 = stateno = 50
x = -.2
---------------------------------------------------------------------------------------------------------
Save the CMD file and test your character.