Police Baton
Knocks down the hit mob when not on harm intent and when /obj/item/melee/classic_baton/var/on is TRUE
.
A non-lethal attack has a cooldown to avoid spamming
Vars | |
affect_silicon | Whether the baton can stun silicon mobs |
---|---|
cooldown | Cooldown in seconds between two knockdowns |
knockdown_duration | The stun time (in seconds) for non-silicons |
on | Whether the baton is toggled on (to allow attacking) |
on_cooldown | Whether the baton is on cooldown |
stamina_armour_pen | How much melee armour is ignored by the stamina damage |
stamina_damage | The amount of stamina damage the baton does per swing |
stun_sound | Sound to play when knocking someone down |
stun_time_silicon | The stun time (in seconds) for silicons |
Procs | |
baton_knockdown | Called when a target is about to be hit non-lethally. |
on_non_silicon_stun | Called when a non-silicon has been stunned. |
on_silicon_stun | Called when a silicon has been stunned. |
Var Details
affect_silicon
Whether the baton can stun silicon mobs
cooldown
Cooldown in seconds between two knockdowns
knockdown_duration
The stun time (in seconds) for non-silicons
on
Whether the baton is toggled on (to allow attacking)
on_cooldown
Whether the baton is on cooldown
stamina_armour_pen
How much melee armour is ignored by the stamina damage
stamina_damage
The amount of stamina damage the baton does per swing
stun_sound
Sound to play when knocking someone down
stun_time_silicon
The stun time (in seconds) for silicons
Proc Details
baton_knockdown
Called when a target is about to be hit non-lethally.
Arguments:
- target - The mob about to be hit
- user - The attacking user
on_non_silicon_stun
Called when a non-silicon has been stunned.
Arguments:
- target - The hit mob
- user - The attacking user
on_silicon_stun
Called when a silicon has been stunned.
Arguments:
- target - The hit mob
- user - The attacking user