Skip to content

Commit bfe59a9

Browse files
committed
Update aerials.rs
1 parent 5557080 commit bfe59a9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

fighters/pacman/src/acmd/aerials.rs

+23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11

22
use super::*;
33

4+
#[acmd_script( agent = "pacman", script = "effect_attackairn" , category = ACMD_EFFECT , low_priority)]
5+
unsafe fn pacman_attack_air_n_effect(fighter: &mut L2CAgentBase) {
6+
let lua_state = fighter.lua_state_agent;
7+
let boma = fighter.boma();
8+
frame(lua_state, 2.0);
9+
if is_excute(fighter) {
10+
EFFECT_FOLLOW_NO_STOP(fighter, Hash40::new("pacman_change_start"), Hash40::new("pizzapacman"), 0, 0, 0, 0, 0, 0, 1, true);
11+
}
12+
frame(lua_state, 3.0);
13+
if is_excute(fighter) {
14+
EFFECT_FOLLOW_FLIP_ALPHA(fighter, Hash40::new("sys_spin_wind"), Hash40::new("sys_spin_wind"), Hash40::new("top"), 0, 4, 1, 0, 0, 90, 0.8, true, *EF_FLIP_YZ, 0.4);
15+
}
16+
frame(lua_state, 16.0);
17+
if is_excute(fighter) {
18+
EFFECT_FOLLOW_FLIP_ALPHA(fighter, Hash40::new("sys_spin_wind"), Hash40::new("sys_spin_wind"), Hash40::new("top"), 0, 7, 0, 0, 0, 90, 0.75, true, *EF_FLIP_YZ, 0.4);
19+
}
20+
frame(lua_state, 30.0);
21+
if is_excute(fighter) {
22+
EFFECT_FOLLOW(fighter, Hash40::new("pacman_change_end"), Hash40::new("pizzapacman"), 0, 0, 0, 0, 0, 0, 1, true);
23+
EFFECT_OFF_KIND(fighter, Hash40::new("sys_spin_wind"), true, true);
24+
}
25+
}
426

527
#[acmd_script( agent = "pacman", script = "game_attackairf" , category = ACMD_GAME , low_priority)]
628
unsafe fn pacman_attack_air_f_game(fighter: &mut L2CAgentBase) {
@@ -157,6 +179,7 @@ unsafe fn pacman_attack_air_lw_game(fighter: &mut L2CAgentBase) {
157179

158180
pub fn install() {
159181
install_acmd_scripts!(
182+
pacman_attack_air_n_effect,
160183
pacman_attack_air_f_game,
161184
pacman_attack_air_b_game,
162185
pacman_attack_air_hi_game,

0 commit comments

Comments
 (0)