1
1
2
2
use super :: * ;
3
3
4
- # [ acmd_script ( agent = "simon" , script = "game_attackairn" , category = ACMD_GAME , low_priority ) ]
5
- unsafe fn simon_attack_air_n_game ( fighter : & mut L2CAgentBase ) {
4
+
5
+ unsafe extern "C" fn simon_attack_air_n_game ( fighter : & mut L2CAgentBase ) {
6
6
let lua_state = fighter. lua_state_agent ;
7
7
let boma = fighter. boma ( ) ;
8
8
frame ( lua_state, 6.0 ) ;
@@ -38,8 +38,8 @@ unsafe fn simon_attack_air_n_game(fighter: &mut L2CAgentBase) {
38
38
}
39
39
}
40
40
41
- # [ acmd_script ( agent = "simon_whip" , script = "game_attackairn" , category = ACMD_GAME , low_priority ) ]
42
- unsafe fn simon_whip_attack_air_n_game ( fighter : & mut L2CAgentBase ) {
41
+
42
+ unsafe extern "C" fn simon_whip_attack_air_n_game ( fighter : & mut L2CAgentBase ) {
43
43
let lua_state = fighter. lua_state_agent ;
44
44
let boma = fighter. boma ( ) ;
45
45
frame ( lua_state, 6.0 ) ;
@@ -55,16 +55,16 @@ unsafe fn simon_whip_attack_air_n_game(fighter: &mut L2CAgentBase) {
55
55
56
56
}
57
57
58
- # [ acmd_script ( agent = "simon_whip" , script = "game_landingairn" , category = ACMD_GAME , low_priority ) ]
59
- unsafe fn simon_whip_landing_air_n_game ( fighter : & mut L2CAgentBase ) {
58
+
59
+ unsafe extern "C" fn simon_whip_landing_air_n_game ( fighter : & mut L2CAgentBase ) {
60
60
let boma = fighter. boma ( ) ;
61
61
if is_excute ( fighter) {
62
62
AttackModule :: clear_all ( boma) ;
63
63
}
64
64
}
65
65
66
- # [ acmd_script ( agent = "simon" , script = "game_attackairfhi" , category = ACMD_GAME , low_priority ) ]
67
- unsafe fn simon_attack_air_f_hi_game ( fighter : & mut L2CAgentBase ) {
66
+
67
+ unsafe extern "C" fn simon_attack_air_f_hi_game ( fighter : & mut L2CAgentBase ) {
68
68
let lua_state = fighter. lua_state_agent ;
69
69
let boma = fighter. boma ( ) ;
70
70
frame ( lua_state, 1.0 ) ;
@@ -103,8 +103,8 @@ unsafe fn simon_attack_air_f_hi_game(fighter: &mut L2CAgentBase) {
103
103
104
104
}
105
105
106
- # [ acmd_script ( agent = "simon_whip" , script = "game_attackairfhi" , category = ACMD_GAME , low_priority ) ]
107
- unsafe fn simon_whip_attack_air_f_hi_game ( fighter : & mut L2CAgentBase ) {
106
+
107
+ unsafe extern "C" fn simon_whip_attack_air_f_hi_game ( fighter : & mut L2CAgentBase ) {
108
108
let lua_state = fighter. lua_state_agent ;
109
109
let boma = fighter. boma ( ) ;
110
110
frame ( lua_state, 1.0 ) ;
@@ -125,8 +125,8 @@ unsafe fn simon_whip_attack_air_f_hi_game(fighter: &mut L2CAgentBase) {
125
125
126
126
}
127
127
128
- # [ acmd_script ( agent = "simon" , script = "game_attackairf" , category = ACMD_GAME , low_priority ) ]
129
- unsafe fn simon_attack_air_f_game ( fighter : & mut L2CAgentBase ) {
128
+
129
+ unsafe extern "C" fn simon_attack_air_f_game ( fighter : & mut L2CAgentBase ) {
130
130
let lua_state = fighter. lua_state_agent ;
131
131
let boma = fighter. boma ( ) ;
132
132
frame ( lua_state, 1.0 ) ;
@@ -165,8 +165,8 @@ unsafe fn simon_attack_air_f_game(fighter: &mut L2CAgentBase) {
165
165
166
166
}
167
167
168
- # [ acmd_script ( agent = "simon_whip" , script = "game_attackairf" , category = ACMD_GAME , low_priority ) ]
169
- unsafe fn simon_whip_attack_air_f_game ( fighter : & mut L2CAgentBase ) {
168
+
169
+ unsafe extern "C" fn simon_whip_attack_air_f_game ( fighter : & mut L2CAgentBase ) {
170
170
let lua_state = fighter. lua_state_agent ;
171
171
let boma = fighter. boma ( ) ;
172
172
frame ( lua_state, 1.0 ) ;
@@ -187,8 +187,8 @@ unsafe fn simon_whip_attack_air_f_game(fighter: &mut L2CAgentBase) {
187
187
188
188
}
189
189
190
- # [ acmd_script ( agent = "simon" , script = "game_attackairflw" , category = ACMD_GAME , low_priority ) ]
191
- unsafe fn simon_attack_air_f_lw_game ( fighter : & mut L2CAgentBase ) {
190
+
191
+ unsafe extern "C" fn simon_attack_air_f_lw_game ( fighter : & mut L2CAgentBase ) {
192
192
let lua_state = fighter. lua_state_agent ;
193
193
let boma = fighter. boma ( ) ;
194
194
frame ( lua_state, 1.0 ) ;
@@ -227,8 +227,8 @@ unsafe fn simon_attack_air_f_lw_game(fighter: &mut L2CAgentBase) {
227
227
228
228
}
229
229
230
- # [ acmd_script ( agent = "simon_whip" , script = "game_attackairflw" , category = ACMD_GAME , low_priority ) ]
231
- unsafe fn simon_whip_attack_air_f_lw_game ( fighter : & mut L2CAgentBase ) {
230
+
231
+ unsafe extern "C" fn simon_whip_attack_air_f_lw_game ( fighter : & mut L2CAgentBase ) {
232
232
let lua_state = fighter. lua_state_agent ;
233
233
let boma = fighter. boma ( ) ;
234
234
frame ( lua_state, 1.0 ) ;
@@ -249,8 +249,8 @@ unsafe fn simon_whip_attack_air_f_lw_game(fighter: &mut L2CAgentBase) {
249
249
250
250
}
251
251
252
- # [ acmd_script ( agent = "simon" , script = "game_attackairbhi" , category = ACMD_GAME , low_priority ) ]
253
- unsafe fn simon_attack_air_b_hi_game ( fighter : & mut L2CAgentBase ) {
252
+
253
+ unsafe extern "C" fn simon_attack_air_b_hi_game ( fighter : & mut L2CAgentBase ) {
254
254
let lua_state = fighter. lua_state_agent ;
255
255
let boma = fighter. boma ( ) ;
256
256
frame ( lua_state, 1.0 ) ;
@@ -284,8 +284,8 @@ unsafe fn simon_attack_air_b_hi_game(fighter: &mut L2CAgentBase) {
284
284
285
285
}
286
286
287
- # [ acmd_script ( agent = "simon_whip" , script = "game_attackairbhi" , category = ACMD_GAME , low_priority ) ]
288
- unsafe fn simon_whip_attack_air_b_hi_game ( fighter : & mut L2CAgentBase ) {
287
+
288
+ unsafe extern "C" fn simon_whip_attack_air_b_hi_game ( fighter : & mut L2CAgentBase ) {
289
289
let lua_state = fighter. lua_state_agent ;
290
290
let boma = fighter. boma ( ) ;
291
291
frame ( lua_state, 1.0 ) ;
@@ -302,8 +302,8 @@ unsafe fn simon_whip_attack_air_b_hi_game(fighter: &mut L2CAgentBase) {
302
302
303
303
}
304
304
305
- # [ acmd_script ( agent = "simon" , script = "game_attackairb" , category = ACMD_GAME , low_priority ) ]
306
- unsafe fn simon_attack_air_b_game ( fighter : & mut L2CAgentBase ) {
305
+
306
+ unsafe extern "C" fn simon_attack_air_b_game ( fighter : & mut L2CAgentBase ) {
307
307
let lua_state = fighter. lua_state_agent ;
308
308
let boma = fighter. boma ( ) ;
309
309
frame ( lua_state, 1.0 ) ;
@@ -337,8 +337,8 @@ unsafe fn simon_attack_air_b_game(fighter: &mut L2CAgentBase) {
337
337
338
338
}
339
339
340
- # [ acmd_script ( agent = "simon_whip" , script = "game_attackairb" , category = ACMD_GAME , low_priority ) ]
341
- unsafe fn simon_whip_attack_air_b_game ( fighter : & mut L2CAgentBase ) {
340
+
341
+ unsafe extern "C" fn simon_whip_attack_air_b_game ( fighter : & mut L2CAgentBase ) {
342
342
let lua_state = fighter. lua_state_agent ;
343
343
let boma = fighter. boma ( ) ;
344
344
frame ( lua_state, 1.0 ) ;
@@ -355,8 +355,8 @@ unsafe fn simon_whip_attack_air_b_game(fighter: &mut L2CAgentBase) {
355
355
356
356
}
357
357
358
- # [ acmd_script ( agent = "simon" , script = "game_attackairblw" , category = ACMD_GAME , low_priority ) ]
359
- unsafe fn simon_attack_air_b_lw_game ( fighter : & mut L2CAgentBase ) {
358
+
359
+ unsafe extern "C" fn simon_attack_air_b_lw_game ( fighter : & mut L2CAgentBase ) {
360
360
let lua_state = fighter. lua_state_agent ;
361
361
let boma = fighter. boma ( ) ;
362
362
frame ( lua_state, 1.0 ) ;
@@ -390,8 +390,8 @@ unsafe fn simon_attack_air_b_lw_game(fighter: &mut L2CAgentBase) {
390
390
391
391
}
392
392
393
- # [ acmd_script ( agent = "simon_whip" , script = "game_attackairblw" , category = ACMD_GAME , low_priority ) ]
394
- unsafe fn simon_whip_attack_air_b_lw_game ( fighter : & mut L2CAgentBase ) {
393
+
394
+ unsafe extern "C" fn simon_whip_attack_air_b_lw_game ( fighter : & mut L2CAgentBase ) {
395
395
let lua_state = fighter. lua_state_agent ;
396
396
let boma = fighter. boma ( ) ;
397
397
frame ( lua_state, 1.0 ) ;
@@ -408,8 +408,8 @@ unsafe fn simon_whip_attack_air_b_lw_game(fighter: &mut L2CAgentBase) {
408
408
409
409
}
410
410
411
- # [ acmd_script ( agent = "simon" , script = "game_attackairhi" , category = ACMD_GAME , low_priority ) ]
412
- unsafe fn simon_attack_air_hi_game ( fighter : & mut L2CAgentBase ) {
411
+
412
+ unsafe extern "C" fn simon_attack_air_hi_game ( fighter : & mut L2CAgentBase ) {
413
413
let lua_state = fighter. lua_state_agent ;
414
414
let boma = fighter. boma ( ) ;
415
415
frame ( lua_state, 1.0 ) ;
@@ -442,8 +442,8 @@ unsafe fn simon_attack_air_hi_game(fighter: &mut L2CAgentBase) {
442
442
443
443
}
444
444
445
- # [ acmd_script ( agent = "simon_whip" , script = "game_attackairhi" , category = ACMD_GAME , low_priority ) ]
446
- unsafe fn simon_whip_attack_air_hi_game ( fighter : & mut L2CAgentBase ) {
445
+
446
+ unsafe extern "C" fn simon_whip_attack_air_hi_game ( fighter : & mut L2CAgentBase ) {
447
447
let lua_state = fighter. lua_state_agent ;
448
448
let boma = fighter. boma ( ) ;
449
449
frame ( lua_state, 1.0 ) ;
@@ -460,8 +460,8 @@ unsafe fn simon_whip_attack_air_hi_game(fighter: &mut L2CAgentBase) {
460
460
461
461
}
462
462
463
- # [ acmd_script ( agent = "simon" , script = "game_attackairlw" , category = ACMD_GAME , low_priority ) ]
464
- unsafe fn simon_attack_air_lw_game ( fighter : & mut L2CAgentBase ) {
463
+
464
+ unsafe extern "C" fn simon_attack_air_lw_game ( fighter : & mut L2CAgentBase ) {
465
465
let lua_state = fighter. lua_state_agent ;
466
466
let boma = fighter. boma ( ) ;
467
467
if is_excute ( fighter) {
@@ -510,8 +510,8 @@ unsafe fn simon_attack_air_lw_game(fighter: &mut L2CAgentBase) {
510
510
}
511
511
}
512
512
513
- # [ acmd_script ( agent = "simon" , script = "game_attackairlw2" , category = ACMD_GAME , low_priority ) ]
514
- unsafe fn simon_attack_air_lw2_game ( fighter : & mut L2CAgentBase ) {
513
+
514
+ unsafe extern "C" fn simon_attack_air_lw2_game ( fighter : & mut L2CAgentBase ) {
515
515
let lua_state = fighter. lua_state_agent ;
516
516
let boma = fighter. boma ( ) ;
517
517
FT_MOTION_RATE ( fighter, 0.75 ) ;
@@ -527,27 +527,31 @@ unsafe fn simon_attack_air_lw2_game(fighter: &mut L2CAgentBase) {
527
527
}
528
528
}
529
529
530
+
531
+
532
+
530
533
pub fn install ( ) {
531
- install_acmd_scripts ! (
532
- simon_attack_air_n_game,
533
- //simon_whip_attack_air_n_game,
534
- //simon_whip_landing_air_n_game,
535
- simon_attack_air_f_hi_game,
536
- simon_whip_attack_air_f_hi_game,
537
- simon_attack_air_f_game,
538
- simon_whip_attack_air_f_game,
539
- simon_attack_air_f_lw_game,
540
- simon_whip_attack_air_f_lw_game,
541
- simon_attack_air_b_hi_game,
542
- simon_whip_attack_air_b_hi_game,
543
- simon_attack_air_b_game,
544
- simon_whip_attack_air_b_game,
545
- simon_attack_air_b_lw_game,
546
- simon_whip_attack_air_b_lw_game,
547
- simon_attack_air_hi_game,
548
- simon_whip_attack_air_hi_game,
549
- simon_attack_air_lw_game,
550
- simon_attack_air_lw2_game,
551
- ) ;
534
+ smashline:: Agent :: new ( "simon_whip" )
535
+ . acmd ( "game_attackairn" , simon_whip_attack_air_n_game)
536
+ . acmd ( "game_landingairn" , simon_whip_landing_air_n_game)
537
+ . acmd ( "game_attackairfhi" , simon_whip_attack_air_f_hi_game)
538
+ . acmd ( "game_attackairf" , simon_whip_attack_air_f_game)
539
+ . acmd ( "game_attackairflw" , simon_whip_attack_air_f_lw_game)
540
+ . acmd ( "game_attackairbhi" , simon_whip_attack_air_b_hi_game)
541
+ . acmd ( "game_attackairb" , simon_whip_attack_air_b_game)
542
+ . acmd ( "game_attackairblw" , simon_whip_attack_air_b_lw_game)
543
+ . acmd ( "game_attackairhi" , simon_whip_attack_air_hi_game)
544
+ . install ( ) ;
545
+ smashline:: Agent :: new ( "simon" )
546
+ . acmd ( "game_attackairn" , simon_attack_air_n_game)
547
+ . acmd ( "game_attackairfhi" , simon_attack_air_f_hi_game)
548
+ . acmd ( "game_attackairf" , simon_attack_air_f_game)
549
+ . acmd ( "game_attackairflw" , simon_attack_air_f_lw_game)
550
+ . acmd ( "game_attackairbhi" , simon_attack_air_b_hi_game)
551
+ . acmd ( "game_attackairb" , simon_attack_air_b_game)
552
+ . acmd ( "game_attackairblw" , simon_attack_air_b_lw_game)
553
+ . acmd ( "game_attackairhi" , simon_attack_air_hi_game)
554
+ . acmd ( "game_attackairlw" , simon_attack_air_lw_game)
555
+ . acmd ( "game_attackairlw2" , simon_attack_air_lw2_game)
556
+ . install ( ) ;
552
557
}
553
-
0 commit comments