@@ -37,7 +37,7 @@ unsafe fn status_CliffCatchMove(fighter: &mut L2CFighterCommon) -> L2CValue {
37
37
#[ skyline:: hook( replace = smash:: lua2cpp:: L2CFighterCommon_status_end_CliffCatchMove ) ]
38
38
unsafe fn status_end_CliffCatchMove ( fighter : & mut L2CFighterCommon ) -> L2CValue {
39
39
if StatusModule :: status_kind_next ( fighter. module_accessor ) != * FIGHTER_STATUS_KIND_CLIFF_CATCH {
40
- VarModule :: set_vec3 ( fighter. object ( ) , vars:: common:: instance:: LEDGE_POS , Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ) ;
40
+ VarModule :: set_int ( fighter. object ( ) , vars:: common:: instance:: LEDGE_ID , - 1 ) ;
41
41
HitModule :: set_xlu_frame_global ( fighter. module_accessor , 0 , 0 ) ;
42
42
}
43
43
call_original ! ( fighter)
@@ -46,7 +46,7 @@ unsafe fn status_end_CliffCatchMove(fighter: &mut L2CFighterCommon) -> L2CValue
46
46
#[ skyline:: hook( replace = smash:: lua2cpp:: L2CFighterCommon_status_end_CliffCatch ) ]
47
47
unsafe fn status_end_CliffCatch ( fighter : & mut L2CFighterCommon ) -> L2CValue {
48
48
if StatusModule :: status_kind_next ( fighter. module_accessor ) != * FIGHTER_STATUS_KIND_CLIFF_WAIT {
49
- VarModule :: set_vec3 ( fighter. object ( ) , vars:: common:: instance:: LEDGE_POS , Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ) ;
49
+ VarModule :: set_int ( fighter. object ( ) , vars:: common:: instance:: LEDGE_ID , - 1 ) ;
50
50
}
51
51
call_original ! ( fighter)
52
52
}
@@ -57,48 +57,48 @@ unsafe fn status_end_CliffWait(fighter: &mut L2CFighterCommon) -> L2CValue {
57
57
* FIGHTER_STATUS_KIND_CLIFF_CLIMB ,
58
58
* FIGHTER_STATUS_KIND_CLIFF_ESCAPE ,
59
59
* FIGHTER_STATUS_KIND_CLIFF_JUMP1 ] . contains ( & StatusModule :: status_kind_next ( fighter. module_accessor ) ) {
60
- VarModule :: set_vec3 ( fighter. object ( ) , vars:: common:: instance:: LEDGE_POS , Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ) ;
60
+ VarModule :: set_int ( fighter. object ( ) , vars:: common:: instance:: LEDGE_ID , - 1 ) ;
61
61
}
62
62
call_original ! ( fighter)
63
63
}
64
64
65
65
#[ skyline:: hook( replace = smash:: lua2cpp:: L2CFighterCommon_status_end_CliffAttack ) ]
66
66
unsafe fn status_end_CliffAttack ( fighter : & mut L2CFighterCommon ) -> L2CValue {
67
- VarModule :: set_vec3 ( fighter. object ( ) , vars:: common:: instance:: LEDGE_POS , Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ) ;
67
+ VarModule :: set_int ( fighter. object ( ) , vars:: common:: instance:: LEDGE_ID , - 1 ) ;
68
68
call_original ! ( fighter)
69
69
}
70
70
71
71
#[ skyline:: hook( replace = smash:: lua2cpp:: L2CFighterCommon_status_end_CliffClimb ) ]
72
72
unsafe fn status_end_CliffClimb ( fighter : & mut L2CFighterCommon ) -> L2CValue {
73
- VarModule :: set_vec3 ( fighter. object ( ) , vars:: common:: instance:: LEDGE_POS , Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ) ;
73
+ VarModule :: set_int ( fighter. object ( ) , vars:: common:: instance:: LEDGE_ID , - 1 ) ;
74
74
call_original ! ( fighter)
75
75
}
76
76
77
77
#[ skyline:: hook( replace = smash:: lua2cpp:: L2CFighterCommon_status_end_CliffEscape ) ]
78
78
unsafe fn status_end_CliffEscape ( fighter : & mut L2CFighterCommon ) -> L2CValue {
79
- VarModule :: set_vec3 ( fighter. object ( ) , vars:: common:: instance:: LEDGE_POS , Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ) ;
79
+ VarModule :: set_int ( fighter. object ( ) , vars:: common:: instance:: LEDGE_ID , - 1 ) ;
80
80
call_original ! ( fighter)
81
81
}
82
82
83
83
#[ skyline:: hook( replace = smash:: lua2cpp:: L2CFighterCommon_status_end_CliffJump1 ) ]
84
84
unsafe fn status_end_CliffJump1 ( fighter : & mut L2CFighterCommon ) -> L2CValue {
85
85
if StatusModule :: status_kind_next ( fighter. module_accessor ) != * FIGHTER_STATUS_KIND_CLIFF_JUMP2 {
86
- VarModule :: set_vec3 ( fighter. object ( ) , vars:: common:: instance:: LEDGE_POS , Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ) ;
86
+ VarModule :: set_int ( fighter. object ( ) , vars:: common:: instance:: LEDGE_ID , - 1 ) ;
87
87
}
88
88
call_original ! ( fighter)
89
89
}
90
90
91
91
#[ skyline:: hook( replace = smash:: lua2cpp:: L2CFighterCommon_status_end_CliffJump2 ) ]
92
92
unsafe fn status_end_CliffJump2 ( fighter : & mut L2CFighterCommon ) -> L2CValue {
93
93
if StatusModule :: status_kind_next ( fighter. module_accessor ) != * FIGHTER_STATUS_KIND_CLIFF_JUMP3 {
94
- VarModule :: set_vec3 ( fighter. object ( ) , vars:: common:: instance:: LEDGE_POS , Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ) ;
94
+ VarModule :: set_int ( fighter. object ( ) , vars:: common:: instance:: LEDGE_ID , - 1 ) ;
95
95
}
96
96
call_original ! ( fighter)
97
97
}
98
98
99
99
#[ skyline:: hook( replace = smash:: lua2cpp:: L2CFighterCommon_status_end_CliffJump3 ) ]
100
100
unsafe fn status_end_CliffJump3 ( fighter : & mut L2CFighterCommon ) -> L2CValue {
101
- VarModule :: set_vec3 ( fighter. object ( ) , vars:: common:: instance:: LEDGE_POS , Vector3f { x : 0.0 , y : 0.0 , z : 0.0 } ) ;
101
+ VarModule :: set_int ( fighter. object ( ) , vars:: common:: instance:: LEDGE_ID , - 1 ) ;
102
102
call_original ! ( fighter)
103
103
}
104
104
0 commit comments