baton
Vars | |
cooldown | the initial cooldown tracks the time between swings. tracks the world.time when the baton is usable again. |
---|---|
hitcost | How much power does it cost to stun someone |
knockdown_delay | the time it takes before the target falls over |
knockdown_duration | How many seconds does the knockdown last for? |
stam_damage | how much stamina damage does this baton do? |
turned_on | Is the baton currently turned on |
Procs | |
baton_stun | returning false results in no baton attack animation, returning true results in an animation. If ignore_shield_check is true, the baton will not run check shields, and will hit if not on cooldown. |
deductcharge | Removes the specified amount of charge from the batons power cell. |
link_new_cell | Updates the linked power cell on the baton. |
Var Details
cooldown
the initial cooldown tracks the time between swings. tracks the world.time when the baton is usable again.
hitcost
How much power does it cost to stun someone
knockdown_delay
the time it takes before the target falls over
knockdown_duration
How many seconds does the knockdown last for?
stam_damage
how much stamina damage does this baton do?
turned_on
Is the baton currently turned on
Proc Details
baton_stun
returning false results in no baton attack animation, returning true results in an animation. If ignore_shield_check is true, the baton will not run check shields, and will hit if not on cooldown.
deductcharge
Removes the specified amount of charge from the batons power cell.
If src
is a cyborg baton, this removes the charge from the borg's internal power cell instead.
Arguments:
- amount - The amount of battery charge to be used.
link_new_cell
Updates the linked power cell on the baton.
If the baton is held by a cyborg, link it to their internal cell. Else, spawn a new cell and use that instead. Arguments:
- unlink - If TRUE, sets the
cell
variable tonull
rather than linking it to a new one.