1
-
2
1
use super :: * ;
3
2
4
-
5
3
#[ acmd_script( agent = "edge" , script = "game_attacks3hi" , category = ACMD_GAME , low_priority) ]
6
- unsafe fn sephiroth_attack_s3_hi_game ( fighter : & mut L2CAgentBase ) {
4
+ unsafe fn edge_attack_s3_hi_game ( fighter : & mut L2CAgentBase ) {
7
5
let lua_state = fighter. lua_state_agent ;
8
6
let boma = fighter. boma ( ) ;
9
7
frame ( lua_state, 1.0 ) ;
@@ -40,7 +38,7 @@ unsafe fn sephiroth_attack_s3_hi_game(fighter: &mut L2CAgentBase) {
40
38
}
41
39
42
40
#[ acmd_script( agent = "edge" , script = "effect_attacks3hi" , category = ACMD_EFFECT , low_priority) ]
43
- unsafe fn sephiroth_attack_s3_hi_effect ( fighter : & mut L2CAgentBase ) {
41
+ unsafe fn edge_attack_s3_hi_effect ( fighter : & mut L2CAgentBase ) {
44
42
let lua_state = fighter. lua_state_agent ;
45
43
let boma = fighter. boma ( ) ;
46
44
frame ( lua_state, 3.0 ) ;
@@ -90,7 +88,7 @@ unsafe fn sephiroth_attack_s3_hi_effect(fighter: &mut L2CAgentBase) {
90
88
}
91
89
92
90
#[ acmd_script( agent = "edge" , script = "game_attacks3" , category = ACMD_GAME , low_priority) ]
93
- unsafe fn sephiroth_attack_s3_s_game ( fighter : & mut L2CAgentBase ) {
91
+ unsafe fn edge_attack_s3_s_game ( fighter : & mut L2CAgentBase ) {
94
92
let lua_state = fighter. lua_state_agent ;
95
93
let boma = fighter. boma ( ) ;
96
94
frame ( lua_state, 1.0 ) ;
@@ -127,7 +125,7 @@ unsafe fn sephiroth_attack_s3_s_game(fighter: &mut L2CAgentBase) {
127
125
}
128
126
129
127
#[ acmd_script( agent = "edge" , script = "effect_attacks3" , category = ACMD_EFFECT , low_priority) ]
130
- unsafe fn sephiroth_attack_s3_s_effect ( fighter : & mut L2CAgentBase ) {
128
+ unsafe fn edge_attack_s3_s_effect ( fighter : & mut L2CAgentBase ) {
131
129
let lua_state = fighter. lua_state_agent ;
132
130
let boma = fighter. boma ( ) ;
133
131
frame ( lua_state, 3.0 ) ;
@@ -177,7 +175,7 @@ unsafe fn sephiroth_attack_s3_s_effect(fighter: &mut L2CAgentBase) {
177
175
}
178
176
179
177
#[ acmd_script( agent = "edge" , script = "game_attacks3lw" , category = ACMD_GAME , low_priority) ]
180
- unsafe fn sephiroth_attack_s3_lw_game ( fighter : & mut L2CAgentBase ) {
178
+ unsafe fn edge_attack_s3_lw_game ( fighter : & mut L2CAgentBase ) {
181
179
let lua_state = fighter. lua_state_agent ;
182
180
let boma = fighter. boma ( ) ;
183
181
frame ( lua_state, 1.0 ) ;
@@ -214,7 +212,7 @@ unsafe fn sephiroth_attack_s3_lw_game(fighter: &mut L2CAgentBase) {
214
212
}
215
213
216
214
#[ acmd_script( agent = "edge" , script = "effect_attacks3lw" , category = ACMD_EFFECT , low_priority) ]
217
- unsafe fn sephiroth_attack_s3_lw_effect ( fighter : & mut L2CAgentBase ) {
215
+ unsafe fn edge_attack_s3_lw_effect ( fighter : & mut L2CAgentBase ) {
218
216
let lua_state = fighter. lua_state_agent ;
219
217
let boma = fighter. boma ( ) ;
220
218
frame ( lua_state, 3.0 ) ;
@@ -268,7 +266,7 @@ unsafe fn sephiroth_attack_s3_lw_effect(fighter: &mut L2CAgentBase) {
268
266
}
269
267
270
268
#[ acmd_script( agent = "edge" , script = "game_attackhi3" , category = ACMD_GAME , low_priority) ]
271
- unsafe fn sephiroth_attack_hi3_game ( fighter : & mut L2CAgentBase ) {
269
+ unsafe fn edge_attack_hi3_game ( fighter : & mut L2CAgentBase ) {
272
270
let lua_state = fighter. lua_state_agent ;
273
271
let boma = fighter. boma ( ) ;
274
272
frame ( lua_state, 1.0 ) ;
@@ -304,10 +302,10 @@ unsafe fn sephiroth_attack_hi3_game(fighter: &mut L2CAgentBase) {
304
302
}
305
303
306
304
#[ acmd_script( agent = "edge" , script = "effect_attackhi3" , category = ACMD_EFFECT , low_priority) ]
307
- unsafe extern "C" fn sephiroth_attack_hi3_effect ( fighter : & mut L2CAgentBase ) {
305
+ unsafe extern "C" fn edge_attack_hi3_effect ( fighter : & mut L2CAgentBase ) {
308
306
let lua_state = fighter. lua_state_agent ;
309
307
let boma = fighter. boma ( ) ;
310
- frame ( lua_state, 12.0 ) ;
308
+ frame ( lua_state, 12.5 ) ;
311
309
if is_excute ( fighter) {
312
310
EFFECT_FOLLOW ( fighter, Hash40 :: new ( "edge_sword_flare" ) , Hash40 :: new ( "swordl2" ) , 0 , 0 , 0 , 0 , 180 , -90 , 1 , true ) ;
313
311
EFFECT_FOLLOW ( fighter, Hash40 :: new ( "edge_sword_light3" ) , Hash40 :: new ( "swordl2" ) , 0 , 0 , 0 , 0 , 180 , -90 , 1 , true ) ;
@@ -340,8 +338,44 @@ unsafe extern "C" fn sephiroth_attack_hi3_effect(fighter: &mut L2CAgentBase) {
340
338
}
341
339
}
342
340
341
+ #[ acmd_script( agent = "edge" , script = "sound_attackhi3" , category = ACMD_SOUND , low_priority) ]
342
+ unsafe fn edge_attack_hi3_sound ( fighter : & mut L2CAgentBase ) {
343
+ let lua_state = fighter. lua_state_agent ;
344
+ let boma = fighter. boma ( ) ;
345
+ frame ( lua_state, 1.0 ) ;
346
+ if is_excute ( fighter) {
347
+ PLAY_SE ( fighter, Hash40 :: new ( "se_edge_attackair_h01" ) ) ;
348
+ PLAY_SE ( fighter, Hash40 :: new ( "se_common_throw_01" ) ) ;
349
+ }
350
+ frame ( lua_state, 12.5 ) ;
351
+ if is_excute ( fighter) {
352
+ PLAY_SEQUENCE ( fighter, Hash40 :: new ( "seq_edge_rnd_attack_hard" ) ) ;
353
+ }
354
+ frame ( lua_state, 13.0 ) ;
355
+ if is_excute ( fighter) {
356
+ PLAY_SE ( fighter, Hash40 :: new ( "se_edge_attackair_h02" ) ) ;
357
+ }
358
+ }
359
+
360
+ #[ acmd_script( agent = "edge" , script = "expression_attackhi3" , category = ACMD_EXPRESSION , low_priority) ]
361
+ unsafe fn edge_attack_hi3_expression ( fighter : & mut L2CAgentBase ) {
362
+ let lua_state = fighter. lua_state_agent ;
363
+ let boma = fighter. boma ( ) ;
364
+ if is_excute ( fighter) {
365
+ slope ! ( fighter, * MA_MSC_CMD_SLOPE_SLOPE , * SLOPE_STATUS_LR ) ;
366
+ }
367
+ frame ( lua_state, 12.5 ) ;
368
+ if is_excute ( fighter) {
369
+ ControlModule :: set_rumble ( boma, Hash40 :: new ( "rbkind_78_slash" ) , 28 , false , * BATTLE_OBJECT_ID_INVALID as u32 ) ;
370
+ }
371
+ frame ( lua_state, 20.0 ) ;
372
+ if is_excute ( fighter) {
373
+ ControlModule :: set_rumble ( boma, Hash40 :: new ( "rbkind_nohitm" ) , 0 , false , * BATTLE_OBJECT_ID_INVALID as u32 ) ;
374
+ }
375
+ }
376
+
343
377
#[ acmd_script( agent = "edge" , script = "game_attacklw3" , category = ACMD_GAME , low_priority) ]
344
- unsafe fn sephiroth_attack_lw3_game ( fighter : & mut L2CAgentBase ) {
378
+ unsafe fn edge_attack_lw3_game ( fighter : & mut L2CAgentBase ) {
345
379
let lua_state = fighter. lua_state_agent ;
346
380
let boma = fighter. boma ( ) ;
347
381
frame ( lua_state, 7.0 ) ;
@@ -368,7 +402,7 @@ unsafe fn sephiroth_attack_lw3_game(fighter: &mut L2CAgentBase) {
368
402
}
369
403
370
404
#[ acmd_script( agent = "edge" , script = "effect_attacklw3" , category = ACMD_EFFECT , low_priority) ]
371
- unsafe fn sephiroth_attack_lw3_effect ( fighter : & mut L2CAgentBase ) {
405
+ unsafe fn edge_attack_lw3_effect ( fighter : & mut L2CAgentBase ) {
372
406
let lua_state = fighter. lua_state_agent ;
373
407
let boma = fighter. boma ( ) ;
374
408
frame ( lua_state, 9.0 ) ;
@@ -405,16 +439,17 @@ unsafe fn sephiroth_attack_lw3_effect(fighter: &mut L2CAgentBase) {
405
439
406
440
pub fn install ( ) {
407
441
install_acmd_scripts ! (
408
- sephiroth_attack_s3_hi_game,
409
- sephiroth_attack_s3_hi_effect,
410
- sephiroth_attack_s3_s_game,
411
- sephiroth_attack_s3_s_effect,
412
- sephiroth_attack_s3_lw_game,
413
- sephiroth_attack_s3_lw_effect,
414
- sephiroth_attack_hi3_game,
415
- sephiroth_attack_hi3_effect,
416
- sephiroth_attack_lw3_game,
417
- sephiroth_attack_lw3_effect,
442
+ edge_attack_s3_hi_game,
443
+ edge_attack_s3_hi_effect,
444
+ edge_attack_s3_s_game,
445
+ edge_attack_s3_s_effect,
446
+ edge_attack_s3_lw_game,
447
+ edge_attack_s3_lw_effect,
448
+ edge_attack_hi3_game,
449
+ edge_attack_hi3_effect,
450
+ edge_attack_hi3_sound,
451
+ edge_attack_hi3_expression,
452
+ edge_attack_lw3_game,
453
+ edge_attack_lw3_effect,
418
454
) ;
419
- }
420
-
455
+ }
0 commit comments