flashlight
![code/game/objects/items/devices/flashlight.dm 6](git.png)
Vars | |
disabled_time | If we've been forcibly disabled for a temporary amount of time. |
---|---|
sound_off | The sound the light makes when it's turned off |
sound_on | The sound the light makes when it's turned on |
start_on | Should the flashlight start turned on? |
toggle_context | Can we toggle this light on and off (used for contexual screentips only) |
Procs | |
dropped | for directional sprites - so when we drop the flashlight, it drops facing the same way the user is facing |
equipped | for directional sprites - so we get the same sprite in the inventory each time we pick one up |
on_saboteur | when hit by a light disruptor - turns the light off, forces the light to be disabled for a few seconds |
Var Details
disabled_time
![code/game/objects/items/devices/flashlight.dm 28](git.png)
If we've been forcibly disabled for a temporary amount of time.
sound_off
![code/game/objects/items/devices/flashlight.dm 34](git.png)
The sound the light makes when it's turned off
sound_on
![code/game/objects/items/devices/flashlight.dm 32](git.png)
The sound the light makes when it's turned on
start_on
![code/game/objects/items/devices/flashlight.dm 36](git.png)
Should the flashlight start turned on?
toggle_context
![code/game/objects/items/devices/flashlight.dm 30](git.png)
Can we toggle this light on and off (used for contexual screentips only)
Proc Details
dropped
for directional sprites - so when we drop the flashlight, it drops facing the same way the user is facing
equipped
for directional sprites - so we get the same sprite in the inventory each time we pick one up
on_saboteur
when hit by a light disruptor - turns the light off, forces the light to be disabled for a few seconds