baton

Vars | |
hitcost | How much power does it cost to stun someone |
---|---|
stunforce | How many life ticks does the stun last for |
throw_hit_chance | Chance for the baton to stun when thrown at someone |
turned_on | Is the baton currently turned on |
Procs | |
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
hitcost

How much power does it cost to stun someone
stunforce

How many life ticks does the stun last for
throw_hit_chance

Chance for the baton to stun when thrown at someone
turned_on

Is the baton currently turned on
Proc Details
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.