@@ -3,7 +3,7 @@ use globals::*;
3
3
// status script import
4
4
5
5
6
- pub fn set_gravity_delay_resume_frame ( energy : * mut FighterKineticEnergyGravity , frames : i32 ) {
6
+ pub fn set_gravity_delay_resume_frame ( energy : * mut app :: FighterKineticEnergyGravity , frames : i32 ) {
7
7
unsafe {
8
8
* ( energy as * mut i32 ) . add ( 0x50 / 4 ) = frames;
9
9
* ( energy as * mut bool ) . add ( 0x5C ) = false ;
@@ -15,9 +15,9 @@ pub unsafe extern "C" fn special_s_init(fighter: &mut L2CFighterCommon) -> L2CVa
15
15
let customize_special_hi_no = WorkModule :: get_int ( fighter. module_accessor , * FIGHTER_INSTANCE_WORK_ID_INT_CUSTOMIZE_SPECIAL_HI_NO ) ;
16
16
let start_spd_x_mul = WorkModule :: get_param_float ( fighter. module_accessor , hash40 ( "param_special_s" ) , hash40 ( "start_spd_x_mul" ) ) ;
17
17
let air_spd_y = WorkModule :: get_param_float ( fighter. module_accessor , hash40 ( "param_special_s" ) , hash40 ( "air_spd_y" ) ) ;
18
- let mut stop_energy = KineticModule :: get_energy ( fighter. module_accessor , * FIGHTER_KINETIC_ENERGY_ID_STOP ) as * mut KineticEnergy ;
19
- let mut gravity_energy = KineticModule :: get_energy ( fighter. module_accessor , * FIGHTER_KINETIC_ENERGY_ID_GRAVITY ) as * mut KineticEnergy ;
20
- let mut motion_energy = KineticModule :: get_energy ( fighter. module_accessor , * FIGHTER_KINETIC_ENERGY_ID_MOTION ) as * mut KineticEnergy ;
18
+ let mut stop_energy = KineticModule :: get_energy ( fighter. module_accessor , * FIGHTER_KINETIC_ENERGY_ID_STOP ) as * mut app :: KineticEnergy ;
19
+ let mut gravity_energy = KineticModule :: get_energy ( fighter. module_accessor , * FIGHTER_KINETIC_ENERGY_ID_GRAVITY ) as * mut app :: KineticEnergy ;
20
+ let mut motion_energy = KineticModule :: get_energy ( fighter. module_accessor , * FIGHTER_KINETIC_ENERGY_ID_MOTION ) as * mut app :: KineticEnergy ;
21
21
22
22
let mut aerial_y_speed = 0.0 ;
23
23
let mut aerial_x_speed = KineticModule :: get_sum_speed_x ( fighter. module_accessor , * KINETIC_ENERGY_RESERVE_ATTRIBUTE_MAIN ) * start_spd_x_mul;
@@ -36,8 +36,8 @@ pub unsafe extern "C" fn special_s_init(fighter: &mut L2CFighterCommon) -> L2CVa
36
36
// alStack208 = motion energy
37
37
if [ * FIGHTER_STATUS_KIND_SPECIAL_S , * FIGHTER_ROY_STATUS_KIND_SPECIAL_S2 ] . contains ( & current_status_kind) {
38
38
if current_situation_kind == * SITUATION_KIND_GROUND {
39
- let reset_speed_2f = smash :: phx :: Vector2f { x : 0.0 , y : 0.0 } ;
40
- let reset_speed_3f = smash :: phx :: Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ;
39
+ let reset_speed_2f = Vector2f { x : 0.0 , y : 0.0 } ;
40
+ let reset_speed_3f = Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ;
41
41
smash:: app:: lua_bind:: KineticEnergy :: reset_energy ( motion_energy, * ENERGY_MOTION_RESET_TYPE_GROUND_TRANS_IGNORE_NORMAL , & reset_speed_2f, & reset_speed_3f, fighter. module_accessor ) ;
42
42
smash:: app:: lua_bind:: KineticEnergy :: enable ( motion_energy) ;
43
43
smash:: app:: lua_bind:: KineticModule :: unable_energy ( fighter. module_accessor , * FIGHTER_KINETIC_ENERGY_ID_STOP ) ;
@@ -52,9 +52,9 @@ pub unsafe extern "C" fn special_s_init(fighter: &mut L2CFighterCommon) -> L2CVa
52
52
else {
53
53
aerial_y_speed = 0.0 ;
54
54
}
55
- let reset_speed_2f = smash :: phx :: Vector2f { x : aerial_x_speed, y : 0.0 } ;
56
- let reset_speed_gravity_2f = smash :: phx :: Vector2f { x : 0.0 , y : aerial_y_speed } ;
57
- let reset_speed_3f = smash :: phx :: Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ;
55
+ let reset_speed_2f = Vector2f { x : aerial_x_speed, y : 0.0 } ;
56
+ let reset_speed_gravity_2f = Vector2f { x : 0.0 , y : aerial_y_speed } ;
57
+ let reset_speed_3f = Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ;
58
58
smash:: app:: lua_bind:: KineticEnergy :: reset_energy ( stop_energy, * ENERGY_STOP_RESET_TYPE_AIR , & reset_speed_2f, & reset_speed_3f, fighter. module_accessor ) ;
59
59
smash:: app:: lua_bind:: KineticEnergy :: reset_energy ( gravity_energy, * ENERGY_GRAVITY_RESET_TYPE_GRAVITY , & reset_speed_gravity_2f, & reset_speed_3f, fighter. module_accessor ) ;
60
60
smash:: app:: lua_bind:: KineticEnergy :: enable ( stop_energy) ;
@@ -64,16 +64,16 @@ pub unsafe extern "C" fn special_s_init(fighter: &mut L2CFighterCommon) -> L2CVa
64
64
}
65
65
if [ * FIGHTER_ROY_STATUS_KIND_SPECIAL_S3 , * FIGHTER_ROY_STATUS_KIND_SPECIAL_S4 ] . contains ( & current_status_kind) {
66
66
if current_situation_kind == * SITUATION_KIND_GROUND {
67
- let reset_speed_2f = smash :: phx :: Vector2f { x : 0.0 , y : 0.0 } ;
68
- let reset_speed_3f = smash :: phx :: Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ;
67
+ let reset_speed_2f = Vector2f { x : 0.0 , y : 0.0 } ;
68
+ let reset_speed_3f = Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ;
69
69
smash:: app:: lua_bind:: KineticEnergy :: reset_energy ( motion_energy, * ENERGY_MOTION_RESET_TYPE_GROUND_TRANS_IGNORE_NORMAL , & reset_speed_2f, & reset_speed_3f, fighter. module_accessor ) ;
70
70
smash:: app:: lua_bind:: KineticEnergy :: enable ( motion_energy) ;
71
71
smash:: app:: lua_bind:: KineticModule :: unable_energy ( fighter. module_accessor , * FIGHTER_KINETIC_ENERGY_ID_STOP ) ;
72
72
smash:: app:: lua_bind:: KineticModule :: unable_energy ( fighter. module_accessor , * FIGHTER_KINETIC_ENERGY_ID_GRAVITY ) ;
73
73
}
74
74
else if current_situation_kind == * SITUATION_KIND_AIR {
75
- let reset_speed_2f = smash :: phx :: Vector2f { x : 0.0 , y : 0.0 } ;
76
- let reset_speed_3f = smash :: phx :: Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ;
75
+ let reset_speed_2f = Vector2f { x : 0.0 , y : 0.0 } ;
76
+ let reset_speed_3f = Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ;
77
77
smash:: app:: lua_bind:: KineticEnergy :: reset_energy ( stop_energy, * ENERGY_STOP_RESET_TYPE_AIR , & reset_speed_2f, & reset_speed_3f, fighter. module_accessor ) ;
78
78
smash:: app:: lua_bind:: KineticEnergy :: reset_energy ( gravity_energy, * ENERGY_GRAVITY_RESET_TYPE_GRAVITY , & reset_speed_2f, & reset_speed_3f, fighter. module_accessor ) ;
79
79
smash:: app:: lua_bind:: KineticEnergy :: enable ( stop_energy) ;
0 commit comments