|
1 | 1 |
|
2 | 2 | use super::*;
|
3 | 3 |
|
| 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 | +} |
4 | 26 |
|
5 | 27 | #[acmd_script( agent = "pacman", script = "game_attackairf" , category = ACMD_GAME , low_priority)]
|
6 | 28 | unsafe fn pacman_attack_air_f_game(fighter: &mut L2CAgentBase) {
|
@@ -157,6 +179,7 @@ unsafe fn pacman_attack_air_lw_game(fighter: &mut L2CAgentBase) {
|
157 | 179 |
|
158 | 180 | pub fn install() {
|
159 | 181 | install_acmd_scripts!(
|
| 182 | + pacman_attack_air_n_effect, |
160 | 183 | pacman_attack_air_f_game,
|
161 | 184 | pacman_attack_air_b_game,
|
162 | 185 | pacman_attack_air_hi_game,
|
|
0 commit comments