mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Mid-air Corkscrew Conk stuff (#14)
* Mid-air Conk changes. Added a visual when the Corkscrew Conk is executed mid-air and slightly nerfed it when executed in mid-air. * Added a visual to mid-air conk and nerfed it.
This commit is contained in:
parent
b99c5f939f
commit
5acc823f2a
1 changed files with 7 additions and 1 deletions
|
@ -600,6 +600,7 @@ function act_wario_air_dash(m)
|
|||
|
||||
-- corkscrew conk
|
||||
if (m.input & INPUT_A_PRESSED) ~= 0 then
|
||||
m.particleFlags = m.particleFlags | PARTICLE_MIST_CIRCLE
|
||||
set_jumping_action(m, ACT_CORKSCREW_CONK, 0)
|
||||
play_character_sound(m, CHAR_SOUND_YAHOO)
|
||||
end
|
||||
|
@ -826,7 +827,12 @@ function wario_on_set_action(m)
|
|||
if m.action == ACT_CORKSCREW_CONK then
|
||||
mario_set_forward_vel(m, 60)
|
||||
m.vel.x = 0
|
||||
m.vel.y = 70.0
|
||||
-- nerf the conk when executed in the air
|
||||
if (m.prevAction == ACT_WARIO_DASH) then
|
||||
m.vel.y = 70.0
|
||||
elseif (m.prevAction == ACT_WARIO_AIR_DASH) then
|
||||
m.vel.y = 60.0
|
||||
end
|
||||
m.vel.z = 0
|
||||
elseif m.action == ACT_SLIDE_KICK then
|
||||
mario_set_forward_vel(m, 70)
|
||||
|
|
Loading…
Reference in a new issue