import GameOptionsDispatch from 'yolkbot/dispatches/GameOptionsDispatch';
bot.dispatch(new GameOptionsDispatch({ gravity: 0.5, disableRPG: true }));
changes (object) - all the changes to make; can have the following props:
gravity (number) - the gravity of the game (0.25, 0.5, 0.75, or 1.0)damage (number) - the damage of the game (0.25, to 2.0 in increments of 0.25)healthRegen (number) - the health regen of the game (0.25, to 4.0 in increments of 0.25)locked (boolean) - if the game should be lockednoTeamChange (boolean) - if the game should not allow team changesnoTeamShuffle (boolean) - if the game should not shuffle teams after kotc endsdisableEggk (boolean) - if the eggk should be disableddisableScrambler (boolean) - if the scrambler should be disableddisableFreeRanger (boolean) - if the free ranger should be disableddisableRPG (boolean) - if the rpg should be disableddisableWhipper (boolean) - if the whipper should be disableddisableCrackshot (boolean) - if the crackshot should be disableddisableTriHard (boolean) - if the trihard should be disabledtoDisable (array of numbers) - an array of gun IDs to disabletoEnable (array of numbers) - an array of gun IDs to enablerawWeaponsDisabled (array of booleans) - an array of 7 booleans that specifies if each of the guns is enabled (false) or disabled (true) in the order of GunList. This is a raw version of the toDisable and toEnable options, and is not recommended to use.changes object must be validYou are not supposed to mix disable<gun>, toDisable/toEnable, and rawWeaponsDisabled. Use one of them, not all of them. You should use whichever option is best for your program - for automated weapon disabling, use something like toEnable and toDisable, though if you just want to do something like one-off turn off RPG, something like disableRPG is better.
import GameOptionsDispatch from 'yolkbot/dispatches/GameOptionsDispatch';
bot.dispatch(new GameOptionsDispatch({ gravity: 0.5, disableRPG: true }));
changes (object) - all the changes to make; can have the following props:
gravity (number) - the gravity of the game (0.25, 0.5, 0.75, or 1.0)damage (number) - the damage of the game (0.25, to 2.0 in increments of 0.25)healthRegen (number) - the health regen of the game (0.25, to 4.0 in increments of 0.25)locked (boolean) - if the game should be lockednoTeamChange (boolean) - if the game should not allow team changesnoTeamShuffle (boolean) - if the game should not shuffle teams after kotc endsdisableEggk (boolean) - if the eggk should be disableddisableScrambler (boolean) - if the scrambler should be disableddisableFreeRanger (boolean) - if the free ranger should be disableddisableRPG (boolean) - if the rpg should be disableddisableWhipper (boolean) - if the whipper should be disableddisableCrackshot (boolean) - if the crackshot should be disableddisableTriHard (boolean) - if the trihard should be disabledtoDisable (array of numbers) - an array of gun IDs to disabletoEnable (array of numbers) - an array of gun IDs to enablerawWeaponsDisabled (array of booleans) - an array of 7 booleans that specifies if each of the guns is enabled (false) or disabled (true) in the order of GunList. This is a raw version of the toDisable and toEnable options, and is not recommended to use.changes object must be validYou are not supposed to mix disable<gun>, toDisable/toEnable, and rawWeaponsDisabled. Use one of them, not all of them. You should use whichever option is best for your program - for automated weapon disabling, use something like toEnable and toDisable, though if you just want to do something like one-off turn off RPG, something like disableRPG is better.