Added steven.'s character moveset changes

This commit is contained in:
MysterD 2022-02-23 18:20:46 -08:00
parent aaa325865c
commit 82d60fed4f
2 changed files with 30 additions and 93 deletions

View file

@ -1,86 +0,0 @@
diff --git a/mods/character-movesets.lua b/mods/character-movesets.lua
index 7f23a014..d9e87a15 100644
--- a/mods/character-movesets.lua
+++ b/mods/character-movesets.lua
@@ -512,11 +512,13 @@ end
function act_wario_dash(m)
local e = gStateExtras[m.playerIndex]
- -- when hitting wall, stay dashing for an extra frame
+ -- when hitting wall, knock Wario backwards and thrust him upwards
if m.actionArg == 99 then
m.actionTimer = m.actionTimer + 1
if m.actionTimer > 2 then
- return set_mario_action(m, ACT_WALKING, 0)
+ mario_set_forward_vel(m, -30)
+ m.vel.y = 40
+ return set_mario_action(m, ACT_FREEFALL, 0)
end
return 0
end
@@ -537,8 +539,8 @@ function act_wario_dash(m)
set_anim_to_frame(m, 25)
-- set dash speed
- local speed = 80
- if m.actionTimer > 8 then
+ local speed = 60
+ if m.actionTimer > 20 then
speed = speed - (m.actionTimer - 8) * 7
end
mario_set_forward_vel(m, speed)
@@ -561,6 +563,18 @@ end
function act_wario_air_dash(m)
local e = gStateExtras[m.playerIndex]
+ -- when hitting wall, knock Wario backwards and thrust him upwards
+ if m.actionArg == 99 then
+ m.actionTimer = m.actionTimer + 1
+ if m.actionTimer > 2 then
+ m.particleFlags = m.particleFlags | PARTICLE_VERTICAL_STAR
+ mario_set_forward_vel(m, -30)
+ m.vel.y = 40
+ return set_mario_action(m, ACT_FREEFALL, 0)
+ end
+ return 0
+ end
+
-- walk once dash is up
if m.actionTimer > 15 then
return set_mario_action(m, ACT_JUMP_LAND, 0)
@@ -571,8 +585,8 @@ function act_wario_air_dash(m)
set_anim_to_frame(m, 25)
-- set dash speed
- local speed = 100
- if m.actionTimer > 8 then
+ local speed = 60
+ if m.actionTimer > 20 then
speed = speed - (m.actionTimer - 8) * 11
end
mario_set_forward_vel(m, speed)
@@ -602,7 +616,7 @@ function act_wario_spinning_obj(m)
return set_mario_action(m, ACT_RELEASING_BOWSER, 0)
end
- -- set animation
+ -- set animation
if m.playerIndex == 0 and m.angleVel.y == 0 then
m.actionTimer = m.actionTimer + 1
if m.actionTimer > 120 then
@@ -819,6 +833,15 @@ function wario_on_set_action(m)
m.vel.z = 0
end
+ -- when hitting a wall which dashing, have one more single frame of dash
+ if m.action == ACT_AIR_HIT_WALL and m.prevAction == ACT_WARIO_AIR_DASH then
+ set_mario_action(m, ACT_WARIO_AIR_DASH, 99)
+ mario_set_forward_vel(m, 1)
+ m.vel.x = 0
+ m.vel.y = 0
+ m.vel.z = 0
+ end
+
-- more height on triple jump
if m.action == ACT_TRIPLE_JUMP or m.action == ACT_SPECIAL_TRIPLE_JUMP then
m.vel.y = m.vel.y * 1.15

View file

@ -518,11 +518,13 @@ end
function act_wario_dash(m)
local e = gStateExtras[m.playerIndex]
-- when hitting wall, stay dashing for an extra frame
-- when hitting wall, knock Wario backwards and thrust him upwards
if m.actionArg == 99 then
m.actionTimer = m.actionTimer + 1
if m.actionTimer > 2 then
return set_mario_action(m, ACT_WALKING, 0)
mario_set_forward_vel(m, -30)
m.vel.y = 40
return set_mario_action(m, ACT_FREEFALL, 0)
end
return 0
end
@ -543,9 +545,9 @@ function act_wario_dash(m)
set_anim_to_frame(m, 25)
-- set dash speed
local speed = 80
local speed = 60
if m.actionTimer > 8 then
speed = speed - (m.actionTimer - 8) * 7
speed = speed - (m.actionTimer - 8)
end
mario_set_forward_vel(m, speed)
@ -567,6 +569,18 @@ end
function act_wario_air_dash(m)
local e = gStateExtras[m.playerIndex]
-- when hitting wall, knock Wario backwards and thrust him upwards
if m.actionArg == 99 then
m.actionTimer = m.actionTimer + 1
if m.actionTimer > 2 then
m.particleFlags = m.particleFlags | PARTICLE_VERTICAL_STAR
mario_set_forward_vel(m, -30)
m.vel.y = 40
return set_mario_action(m, ACT_FREEFALL, 0)
end
return 0
end
-- walk once dash is up
if m.actionTimer > 15 then
return set_mario_action(m, ACT_JUMP_LAND, 0)
@ -577,9 +591,9 @@ function act_wario_air_dash(m)
set_anim_to_frame(m, 25)
-- set dash speed
local speed = 100
local speed = 60
if m.actionTimer > 8 then
speed = speed - (m.actionTimer - 8) * 11
speed = speed - (m.actionTimer - 8)
end
mario_set_forward_vel(m, speed)
@ -608,7 +622,7 @@ function act_wario_spinning_obj(m)
return set_mario_action(m, ACT_RELEASING_BOWSER, 0)
end
-- set animation
-- set animation
if m.playerIndex == 0 and m.angleVel.y == 0 then
m.actionTimer = m.actionTimer + 1
if m.actionTimer > 120 then
@ -827,6 +841,15 @@ function wario_on_set_action(m)
m.vel.z = 0
end
-- when hitting a wall which dashing, have one more single frame of dash
if m.action == ACT_AIR_HIT_WALL and m.prevAction == ACT_WARIO_AIR_DASH then
set_mario_action(m, ACT_WARIO_AIR_DASH, 99)
mario_set_forward_vel(m, 1)
m.vel.x = 0
m.vel.y = 0
m.vel.z = 0
end
-- more height on triple jump
if m.action == ACT_TRIPLE_JUMP or m.action == ACT_SPECIAL_TRIPLE_JUMP then
m.vel.y = m.vel.y * 1.15