Skip to content

ultimate-research/params-hook-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Param hook plugin

A plugin allowing for centralized hooking of parameter files, allowing multiple plugins to all hook param file loads.

Usage

use smash::params::*;

fn params_main(params_info: &ParamsInfo<'_>) {
    if let Ok(common) = params_info.get::<CommonParams>() {
        common.shield_damage_mul = 0.0;
        common.precede = 3;
        common.cliff_max_count = 0;
        common.invalid_capture_frame = 900;
    }
    
    if let Ok(fighter_param) = params_info.get::<FighterParams>() {
        let ganon_params = &mut fighter_param[*FIGHTER_KIND_GANON];
        ganon_params.walk_speed_max = 30.0;
    }
}

// in main
smash::params::add_hook(params_main).unwrap();

Install

Note: Requires cargo-skyline to be installed

To install, simply run:

   cargo skyline install

Or, if your IP isn't configured yet, use

   cargo skyline install --ip X.X.X.X

Where X.X.X.X is your switch's IP address