Space Station 13 - Modules - TypesVar Details - Proc Details

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_siliconWhether the baton can stun silicon mobs
cooldownCooldown in seconds between two knockdowns
knockdown_durationThe stun time (in seconds) for non-silicons
onWhether the baton is toggled on (to allow attacking)
on_cooldownWhether the baton is on cooldown
stamina_armour_penHow much melee armour is ignored by the stamina damage
stamina_damageThe amount of stamina damage the baton does per swing
stun_soundSound to play when knocking someone down
stun_time_siliconThe stun time (in seconds) for silicons

Procs

baton_knockdownCalled when a target is about to be hit non-lethally.
on_non_silicon_stunCalled when a non-silicon has been stunned.
on_silicon_stunCalled 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:

on_non_silicon_stun

Called when a non-silicon has been stunned.

Arguments:

on_silicon_stun

Called when a silicon has been stunned.

Arguments: