-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b836daf
commit 94108fe
Showing
6 changed files
with
55 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mod specials; | ||
|
||
pub fn install(agent: &mut smashline::Agent) { | ||
specials::install(agent); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use { | ||
smash::{ | ||
lua2cpp::*, | ||
phx::*, | ||
app::{sv_animcmd::*, lua_bind::*}, | ||
lib::lua_const::* | ||
}, | ||
smash_script::* | ||
}; | ||
|
||
use crate::vars::FIGHTER_KIRBY_GENERATE_ARTICLE_EXPLOSIVEFLAME; | ||
use crate::vars::FIGHTER_KIRBY_GENERATE_ARTICLE_REFLECTIONBOARD; | ||
use crate::vars::FIGHTER_KIRBY_GENERATE_ARTICLE_FIREBALL; | ||
|
||
|
||
unsafe extern "C" fn kirby_attacks3(agent: &mut L2CAgentBase) { | ||
macros::FT_MOTION_RATE(agent, 1.2); | ||
frame(agent.lua_state_agent, 16.0); | ||
if macros::is_excute(agent) { | ||
ArticleModule::generate_article(agent.module_accessor, FIGHTER_KIRBY_GENERATE_ARTICLE_FIREBALL, false, -1); | ||
} | ||
} | ||
|
||
pub fn install(agent: &mut smashline::Agent) { | ||
agent.game_acmd("game_attacks3", kirby_attacks3); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
use smashline; | ||
|
||
mod acmd; | ||
|
||
pub fn install() { | ||
|
||
let agent = &mut smashline::Agent::new("kirby"); | ||
acmd::install(agent); | ||
agent.install(); | ||
|
||
smashline::clone_weapon("palutena", "explosiveflame", "kirby", "explosiveflame",true); | ||
smashline::clone_weapon("mario", "fireball", "kirby", "fireball",true); | ||
smashline::clone_weapon("palutena", "explosiveflame_reserve", "kirby", "explosiveflame_reserve",true); | ||
smashline::clone_weapon("palutena", "reflectionboard", "kirby", "reflectionboard",true); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pub const FIGHTER_KIRBY_GENERATE_ARTICLE_EXPLOSIVEFLAME: i32 = 40; | ||
pub const FIGHTER_KIRBY_GENERATE_ARTICLE_REFLECTIONBOARD: i32 = 41; | ||
pub const FIGHTER_KIRBY_GENERATE_ARTICLE_FIREBALL: i32 = 42; |