Skip to content

Commit bd4feca

Browse files
committed
Disable up special changes (for now)
1 parent babbbc3 commit bd4feca

File tree

4 files changed

+180
-176
lines changed

4 files changed

+180
-176
lines changed

fighters/common/src/function_hooks/edge_slipoffs.rs

+3
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ unsafe fn check_fighter_edge_slipoffs(boma: &mut BattleObjectModuleAccessor) ->
190190

191191
// DAISY
192192
if (fighter_kind == *FIGHTER_KIND_DAISY && status_kind == *FIGHTER_PEACH_STATUS_KIND_SPECIAL_S_AWAY_END) { return true.into(); }
193+
194+
// SEPHIROTH
195+
if (fighter_kind == *FIGHTER_KIND_EDGE && status_kind == *FIGHTER_EDGE_STATUS_KIND_SPECIAL_HI_RUSH) { return true.into(); }
193196

194197
// YOSHI
195198
if (fighter_kind == *FIGHTER_KIND_YOSHI && status_kind == *FIGHTER_STATUS_KIND_SPECIAL_HI) { return true.into(); }

fighters/edge/src/acmd/ground.rs

+26-29
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
use super::*;
32

43
#[acmd_script( agent = "edge", script = "game_attack11", category = ACMD_GAME, low_priority )]
@@ -31,6 +30,31 @@ unsafe fn sephiroth_attack_11_game(fighter: &mut L2CAgentBase) {
3130
}
3231
}
3332

33+
#[acmd_script( agent = "edge", script = "expression_attack11", category = ACMD_EXPRESSION, low_priority )]
34+
unsafe fn sephiroth_attack_11_expression(fighter: &mut L2CAgentBase) {
35+
let lua_state = fighter.lua_state_agent;
36+
let boma = fighter.boma();
37+
if is_excute(fighter) {
38+
slope!(fighter, *MA_MSC_CMD_SLOPE_SLOPE, *SLOPE_STATUS_LR);
39+
}
40+
frame(lua_state, 3.0);
41+
if is_excute(fighter) {
42+
slope!(fighter, *MA_MSC_CMD_SLOPE_SLOPE_INTP, *SLOPE_STATUS_R, 4);
43+
}
44+
frame(lua_state, 4.5);
45+
if is_excute(fighter) {
46+
ControlModule::set_rumble(boma, Hash40::new("rbkind_nohitm"), 0, false, *BATTLE_OBJECT_ID_INVALID as u32);
47+
}
48+
frame(lua_state, 6.5);
49+
if is_excute(fighter) {
50+
macros::RUMBLE_HIT(fighter, Hash40::new("rbkind_attackm"), 0);
51+
}
52+
frame(lua_state, 35.0);
53+
if is_excute(fighter) {
54+
slope!(fighter, *MA_MSC_CMD_SLOPE_SLOPE_INTP, *SLOPE_STATUS_LR, 13);
55+
}
56+
}
57+
3458
#[acmd_script( agent = "edge", script = "game_attack12", category = ACMD_GAME, low_priority )]
3559
unsafe fn sephiroth_attack_12_game(fighter: &mut L2CAgentBase) {
3660
let lua_state = fighter.lua_state_agent;
@@ -134,31 +158,6 @@ unsafe fn sephiroth_attack_13_effect(fighter: &mut L2CAgentBase) {
134158

135159
}
136160

137-
#[acmd_script( agent = "edge", script = "expression_attack11", category = ACMD_EXPRESSION, low_priority )]
138-
unsafe fn sephiroth_attack_11_expression(fighter: &mut L2CAgentBase) {
139-
let lua_state = fighter.lua_state_agent;
140-
let boma = fighter.boma();
141-
if is_excute(fighter) {
142-
slope!(fighter, *MA_MSC_CMD_SLOPE_SLOPE, *SLOPE_STATUS_LR);
143-
}
144-
frame(lua_state, 3.0);
145-
if is_excute(fighter) {
146-
slope!(fighter, *MA_MSC_CMD_SLOPE_SLOPE_INTP, *SLOPE_STATUS_R, 4);
147-
}
148-
frame(lua_state, 4.5);
149-
if is_excute(fighter) {
150-
ControlModule::set_rumble(boma, Hash40::new("rbkind_nohitm"), 0, false, *BATTLE_OBJECT_ID_INVALID as u32);
151-
}
152-
frame(lua_state, 6.5);
153-
if is_excute(fighter) {
154-
macros::RUMBLE_HIT(fighter, Hash40::new("rbkind_attackm"), 0);
155-
}
156-
frame(lua_state, 35.0);
157-
if is_excute(fighter) {
158-
slope!(fighter, *MA_MSC_CMD_SLOPE_SLOPE_INTP, *SLOPE_STATUS_LR, 13);
159-
}
160-
}
161-
162161
#[acmd_script( agent = "edge", script = "game_attackdash" , category = ACMD_GAME , low_priority)]
163162
unsafe fn sephiroth_attack_dash_game(fighter: &mut L2CAgentBase) {
164163
let lua_state = fighter.lua_state_agent;
@@ -190,12 +189,10 @@ unsafe fn sephiroth_attack_dash_game(fighter: &mut L2CAgentBase) {
190189
pub fn install() {
191190
install_acmd_scripts!(
192191
sephiroth_attack_11_game,
193-
sephiroth_attack_11_effect,
194192
sephiroth_attack_11_expression,
195193
sephiroth_attack_12_game,
196194
sephiroth_attack_13_game,
197195
sephiroth_attack_13_effect,
198196
sephiroth_attack_dash_game,
199197
);
200-
}
201-
198+
}

fighters/edge/src/acmd/specials.rs

+12-10
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,13 @@ unsafe fn edge_special_hi1_end_game(fighter: &mut L2CAgentBase) {
491491
let lua_state = fighter.lua_state_agent;
492492
let boma = fighter.boma();
493493
if is_excute(fighter) {
494-
if VarModule::is_flag(boma.object(), vars::edge::instance::SPECIAL_HI_BLADE_DASH_NO_HITBOX) {
495-
MotionModule::set_rate(boma, 2.0);
496-
}
497-
else{
498-
MotionModule::set_rate(boma, 0.9);
499-
}
494+
MotionModule::set_rate(boma, 1.08);
495+
// if VarModule::is_flag(boma.object(), vars::edge::instance::SPECIAL_HI_BLADE_DASH_NO_HITBOX) {
496+
// MotionModule::set_rate(boma, 2.0);
497+
// }
498+
// else{
499+
// MotionModule::set_rate(boma, 0.9);
500+
// }
500501
}
501502
}
502503

@@ -570,12 +571,13 @@ pub fn install() {
570571
edge_special_air_n1_game,
571572
edge_special_n2_game,
572573
edge_special_air_n2_game,
573-
game_specialhistart,
574-
effect_specialhistart,
574+
//game_specialhistart,
575+
//effect_specialhistart,
576+
//game_specialairhistart,
575577
edge_special_hi2_game,
576578
edge_special_hi2_effect,
577-
game_specialhi1,
578-
effect_specialhi1,
579+
//game_specialhi1,
580+
//effect_specialhi1,
579581
edge_special_hi1_end_game,
580582
game_specialairhi1end,
581583
edge_special_hi2_end_game,

0 commit comments

Comments
 (0)