1
1
use super :: * ;
2
2
3
- # [ acmd_script ( agent = "trail" , script = "game_attackairn" , category = ACMD_GAME , low_priority ) ]
4
- unsafe fn sora_attack_air_n_game ( fighter : & mut L2CAgentBase ) {
3
+
4
+ unsafe extern "C" fn sora_attack_air_n_game ( fighter : & mut L2CAgentBase ) {
5
5
let lua_state = fighter. lua_state_agent ;
6
6
let boma = fighter. boma ( ) ;
7
7
frame ( lua_state, 1.0 ) ;
@@ -69,8 +69,8 @@ unsafe fn sora_attack_air_n_game(fighter: &mut L2CAgentBase) {
69
69
70
70
}
71
71
72
- # [ acmd_script ( agent = "trail" , script = "effect_attackairn" , category = ACMD_EFFECT , low_priority ) ]
73
- unsafe fn sora_attack_air_n_effect ( fighter : & mut L2CAgentBase ) {
72
+
73
+ unsafe extern "C" fn sora_attack_air_n_effect ( fighter : & mut L2CAgentBase ) {
74
74
let lua_state = fighter. lua_state_agent ;
75
75
let boma = fighter. boma ( ) ;
76
76
frame ( lua_state, 5.0 ) ;
@@ -101,8 +101,8 @@ unsafe fn sora_attack_air_n_effect(fighter: &mut L2CAgentBase) {
101
101
102
102
}
103
103
104
- # [ acmd_script ( agent = "trail" , script = "sound_attackairn" , category = ACMD_SOUND , low_priority ) ]
105
- unsafe fn sora_attack_air_n_sound ( fighter : & mut L2CAgentBase ) {
104
+
105
+ unsafe extern "C" fn sora_attack_air_n_sound ( fighter : & mut L2CAgentBase ) {
106
106
let lua_state = fighter. lua_state_agent ;
107
107
let boma = fighter. boma ( ) ;
108
108
frame ( lua_state, 1.0 ) ;
@@ -120,8 +120,8 @@ unsafe fn sora_attack_air_n_sound(fighter: &mut L2CAgentBase) {
120
120
}
121
121
}
122
122
123
- # [ acmd_script ( agent = "trail" , script = "game_attackairf" , category = ACMD_GAME , low_priority ) ]
124
- unsafe fn sora_attack_air_f_game ( fighter : & mut L2CAgentBase ) {
123
+
124
+ unsafe extern "C" fn sora_attack_air_f_game ( fighter : & mut L2CAgentBase ) {
125
125
let lua_state = fighter. lua_state_agent ;
126
126
let boma = fighter. boma ( ) ;
127
127
@@ -171,8 +171,8 @@ unsafe fn sora_attack_air_f_game(fighter: &mut L2CAgentBase) {
171
171
172
172
}
173
173
174
- # [ acmd_script ( agent = "trail" , script = "game_attackairf2" , category = ACMD_GAME , low_priority ) ]
175
- unsafe fn sora_attack_air_f2_game ( fighter : & mut L2CAgentBase ) {
174
+
175
+ unsafe extern "C" fn sora_attack_air_f2_game ( fighter : & mut L2CAgentBase ) {
176
176
let lua_state = fighter. lua_state_agent ;
177
177
let boma = fighter. boma ( ) ;
178
178
if is_excute ( fighter) {
@@ -241,8 +241,8 @@ unsafe fn sora_attack_air_f2_game(fighter: &mut L2CAgentBase) {
241
241
242
242
}
243
243
244
- # [ acmd_script ( agent = "trail" , script = "game_attackairf3" , category = ACMD_GAME , low_priority ) ]
245
- unsafe fn sora_attack_air_f3_game ( fighter : & mut L2CAgentBase ) {
244
+
245
+ unsafe extern "C" fn sora_attack_air_f3_game ( fighter : & mut L2CAgentBase ) {
246
246
let lua_state = fighter. lua_state_agent ;
247
247
let boma = fighter. boma ( ) ;
248
248
if is_excute ( fighter) {
@@ -273,8 +273,8 @@ unsafe fn sora_attack_air_f3_game(fighter: &mut L2CAgentBase) {
273
273
}
274
274
}
275
275
276
- # [ acmd_script ( agent = "trail" , script = "effect_attackairf3" , category = ACMD_EFFECT , low_priority ) ]
277
- unsafe fn sora_attack_air_f3_effect ( fighter : & mut L2CAgentBase ) {
276
+
277
+ unsafe extern "C" fn sora_attack_air_f3_effect ( fighter : & mut L2CAgentBase ) {
278
278
let lua_state = fighter. lua_state_agent ;
279
279
let boma = fighter. boma ( ) ;
280
280
frame ( lua_state, 6.0 ) ;
@@ -289,8 +289,8 @@ unsafe fn sora_attack_air_f3_effect(fighter: &mut L2CAgentBase) {
289
289
}
290
290
}
291
291
292
- # [ acmd_script ( agent = "trail" , script = "game_attackairb" , category = ACMD_GAME , low_priority ) ]
293
- unsafe fn sora_attack_air_b_game ( fighter : & mut L2CAgentBase ) {
292
+
293
+ unsafe extern "C" fn sora_attack_air_b_game ( fighter : & mut L2CAgentBase ) {
294
294
let lua_state = fighter. lua_state_agent ;
295
295
let boma = fighter. boma ( ) ;
296
296
frame ( lua_state, 1.0 ) ;
@@ -331,8 +331,8 @@ unsafe fn sora_attack_air_b_game(fighter: &mut L2CAgentBase) {
331
331
332
332
}
333
333
334
- # [ acmd_script ( agent = "trail" , script = "game_attackairhi" , category = ACMD_GAME , low_priority ) ]
335
- unsafe fn sora_attack_air_hi_game ( fighter : & mut L2CAgentBase ) {
334
+
335
+ unsafe extern "C" fn sora_attack_air_hi_game ( fighter : & mut L2CAgentBase ) {
336
336
let lua_state = fighter. lua_state_agent ;
337
337
let boma = fighter. boma ( ) ;
338
338
frame ( lua_state, 1.0 ) ;
@@ -383,8 +383,8 @@ unsafe fn sora_attack_air_hi_game(fighter: &mut L2CAgentBase) {
383
383
384
384
}
385
385
386
- # [ acmd_script ( agent = "trail" , script = "effect_attackairhi" , category = ACMD_EFFECT , low_priority ) ]
387
- unsafe fn sora_attack_air_hi_effect ( fighter : & mut L2CAgentBase ) {
386
+
387
+ unsafe extern "C" fn sora_attack_air_hi_effect ( fighter : & mut L2CAgentBase ) {
388
388
let lua_state = fighter. lua_state_agent ;
389
389
let boma = fighter. boma ( ) ;
390
390
frame ( lua_state, 8.0 ) ;
@@ -399,8 +399,8 @@ unsafe fn sora_attack_air_hi_effect(fighter: &mut L2CAgentBase) {
399
399
}
400
400
}
401
401
402
- # [ acmd_script ( agent = "trail" , script = "game_attackairlw" , category = ACMD_GAME , low_priority ) ]
403
- unsafe fn sora_attack_air_lw_game ( fighter : & mut L2CAgentBase ) {
402
+
403
+ unsafe extern "C" fn sora_attack_air_lw_game ( fighter : & mut L2CAgentBase ) {
404
404
let lua_state = fighter. lua_state_agent ;
405
405
let boma = fighter. boma ( ) ;
406
406
let attack_start_frame = 15.5 ;
@@ -488,8 +488,8 @@ unsafe fn sora_attack_air_lw_game(fighter: &mut L2CAgentBase) {
488
488
489
489
}
490
490
491
- # [ acmd_script ( agent = "trail" , script = "effect_attackairlw" , category = ACMD_EFFECT , low_priority ) ]
492
- unsafe fn sora_attack_air_lw_effect ( fighter : & mut L2CAgentBase ) {
491
+
492
+ unsafe extern "C" fn sora_attack_air_lw_effect ( fighter : & mut L2CAgentBase ) {
493
493
let lua_state = fighter. lua_state_agent ;
494
494
let boma = fighter. boma ( ) ;
495
495
frame ( lua_state, 10.0 ) ;
@@ -509,8 +509,8 @@ unsafe fn sora_attack_air_lw_effect(fighter: &mut L2CAgentBase) {
509
509
}
510
510
}
511
511
512
- # [ acmd_script ( agent = "trail" , script = "sound_attackairlw" , category = ACMD_SOUND , low_priority ) ]
513
- unsafe fn sora_attack_air_lw_sound ( fighter : & mut L2CAgentBase ) {
512
+
513
+ unsafe extern "C" fn sora_attack_air_lw_sound ( fighter : & mut L2CAgentBase ) {
514
514
let lua_state = fighter. lua_state_agent ;
515
515
let boma = fighter. boma ( ) ;
516
516
frame ( lua_state, 12.0 ) ;
@@ -520,8 +520,8 @@ unsafe fn sora_attack_air_lw_sound(fighter: &mut L2CAgentBase) {
520
520
}
521
521
}
522
522
523
- # [ acmd_script ( agent = "trail" , script = "expression_attackairlw" , category = ACMD_EXPRESSION , low_priority ) ]
524
- unsafe fn sora_attack_air_lw_expression ( fighter : & mut L2CAgentBase ) {
523
+
524
+ unsafe extern "C" fn sora_attack_air_lw_expression ( fighter : & mut L2CAgentBase ) {
525
525
let lua_state = fighter. lua_state_agent ;
526
526
let boma = fighter. boma ( ) ;
527
527
frame ( lua_state, 13.5 ) ;
@@ -534,23 +534,23 @@ unsafe fn sora_attack_air_lw_expression(fighter: &mut L2CAgentBase) {
534
534
}
535
535
}
536
536
537
- # [ acmd_script ( agent = "trail" , script = "game_landingairlw" , category = ACMD_GAME , low_priority ) ]
538
- unsafe fn sora_landing_air_lw_game ( fighter : & mut L2CAgentBase ) {
537
+
538
+ unsafe extern "C" fn sora_landing_air_lw_game ( fighter : & mut L2CAgentBase ) {
539
539
let lua_state = fighter. lua_state_agent ;
540
540
let boma = fighter. boma ( ) ;
541
541
}
542
542
543
- # [ acmd_script ( agent = "trail" , script = "effect_landingairlw" , category = ACMD_EFFECT , low_priority ) ]
544
- unsafe fn sora_landing_air_lw_effect ( fighter : & mut L2CAgentBase ) {
543
+
544
+ unsafe extern "C" fn sora_landing_air_lw_effect ( fighter : & mut L2CAgentBase ) {
545
545
let lua_state = fighter. lua_state_agent ;
546
546
let boma = fighter. boma ( ) ;
547
547
if is_excute ( fighter) {
548
548
LANDING_EFFECT ( fighter, Hash40 :: new ( "sys_landing_smoke" ) , Hash40 :: new ( "top" ) , 0 , 0 , 0 , 0 , 0 , 0 , 0.9 , 0 , 0 , 0 , 0 , 0 , 0 , false ) ;
549
549
}
550
550
}
551
551
552
- # [ acmd_script ( agent = "trail" , script = "sound_landingairlw" , category = ACMD_SOUND , low_priority ) ]
553
- unsafe fn sora_landing_air_lw_sound ( fighter : & mut L2CAgentBase ) {
552
+
553
+ unsafe extern "C" fn sora_landing_air_lw_sound ( fighter : & mut L2CAgentBase ) {
554
554
let lua_state = fighter. lua_state_agent ;
555
555
let boma = fighter. boma ( ) ;
556
556
frame ( lua_state, 2.0 ) ;
@@ -559,8 +559,8 @@ unsafe fn sora_landing_air_lw_sound(fighter: &mut L2CAgentBase) {
559
559
}
560
560
}
561
561
562
- # [ acmd_script ( agent = "trail" , script = "expression_landingairlw" , category = ACMD_EXPRESSION , low_priority ) ]
563
- unsafe fn sora_landing_air_lw_expression ( fighter : & mut L2CAgentBase ) {
562
+
563
+ unsafe extern "C" fn sora_landing_air_lw_expression ( fighter : & mut L2CAgentBase ) {
564
564
let lua_state = fighter. lua_state_agent ;
565
565
let boma = fighter. boma ( ) ;
566
566
if is_excute ( fighter) {
@@ -584,26 +584,28 @@ unsafe fn sora_landing_air_lw_expression(fighter: &mut L2CAgentBase) {
584
584
}
585
585
586
586
587
+
588
+
589
+
587
590
pub fn install ( ) {
588
- install_acmd_scripts ! (
589
- sora_attack_air_n_game ,
590
- sora_attack_air_n_effect ,
591
- sora_attack_air_n_sound ,
592
- sora_attack_air_f_game ,
593
- sora_attack_air_f2_game ,
594
- sora_attack_air_f3_game ,
595
- sora_attack_air_f3_effect ,
596
- sora_attack_air_b_game ,
597
- sora_attack_air_hi_game ,
598
- sora_attack_air_hi_effect ,
599
- sora_attack_air_lw_game ,
600
- sora_attack_air_lw_effect ,
601
- sora_attack_air_lw_sound ,
602
- sora_attack_air_lw_expression ,
603
- sora_landing_air_lw_game ,
604
- sora_landing_air_lw_effect ,
605
- sora_landing_air_lw_sound ,
606
- sora_landing_air_lw_expression ,
607
- ) ;
591
+ smashline :: Agent :: new ( "trail" )
592
+ . acmd ( "game_attackairn" , sora_attack_air_n_game )
593
+ . acmd ( "effect_attackairn" , sora_attack_air_n_effect )
594
+ . acmd ( "sound_attackairn" , sora_attack_air_n_sound )
595
+ . acmd ( "game_attackairf" , sora_attack_air_f_game )
596
+ . acmd ( "game_attackairf2" , sora_attack_air_f2_game )
597
+ . acmd ( "game_attackairf3" , sora_attack_air_f3_game )
598
+ . acmd ( "effect_attackairf3" , sora_attack_air_f3_effect )
599
+ . acmd ( "game_attackairb" , sora_attack_air_b_game )
600
+ . acmd ( "game_attackairhi" , sora_attack_air_hi_game )
601
+ . acmd ( "effect_attackairhi" , sora_attack_air_hi_effect )
602
+ . acmd ( "game_attackairlw" , sora_attack_air_lw_game )
603
+ . acmd ( "effect_attackairlw" , sora_attack_air_lw_effect )
604
+ . acmd ( "sound_attackairlw" , sora_attack_air_lw_sound )
605
+ . acmd ( "expression_attackairlw" , sora_attack_air_lw_expression )
606
+ . acmd ( "game_landingairlw" , sora_landing_air_lw_game )
607
+ . acmd ( "effect_landingairlw" , sora_landing_air_lw_effect )
608
+ . acmd ( "sound_landingairlw" , sora_landing_air_lw_sound )
609
+ . acmd ( "expression_landingairlw" , sora_landing_air_lw_expression )
610
+ . install ( ) ;
608
611
}
609
-
0 commit comments