crank_recharge ![code/datums/components/crank_recharge.dm 2](git.png)
Vars | |
charge_amount | How much charge we give our cell on each crank |
---|---|
charge_move | Should you be able to move while charging, use IGNORE_USER_LOC_CHANGE if you want to move and crank |
charge_sound | The sound used when charging, renember to adjust the cooldown time to keep it sensible |
charge_sound_cooldown_time | How long is the cooldown between charging sounds |
charging_cell | Our cell to charge |
cooldown_time | How long is the cooldown time between each charge |
is_charging | Are we currently charging |
spin_to_win | Whether we spin our gun to reload (and therefore need the relevant trait) |
Var Details
charge_amount ![code/datums/components/crank_recharge.dm 8](git.png)
How much charge we give our cell on each crank
charge_move ![code/datums/components/crank_recharge.dm 18](git.png)
Should you be able to move while charging, use IGNORE_USER_LOC_CHANGE if you want to move and crank
charge_sound ![code/datums/components/crank_recharge.dm 12](git.png)
The sound used when charging, renember to adjust the cooldown time to keep it sensible
charge_sound_cooldown_time ![code/datums/components/crank_recharge.dm 14](git.png)
How long is the cooldown between charging sounds
charging_cell ![code/datums/components/crank_recharge.dm 4](git.png)
Our cell to charge
cooldown_time ![code/datums/components/crank_recharge.dm 10](git.png)
How long is the cooldown time between each charge
is_charging ![code/datums/components/crank_recharge.dm 16](git.png)
Are we currently charging
spin_to_win ![code/datums/components/crank_recharge.dm 6](git.png)
Whether we spin our gun to reload (and therefore need the relevant trait)