emitter ![code/modules/power/singularity/emitter.dm 1](git.png)
Vars | |
active | Is the machine active? |
---|---|
allow_switch_interact | Used to stop interactions with the object (mainly in the wabbajack statue) |
charge | Amount of power inside |
fire_delay | Seconds before the next shot |
gun | Stores the type of gun we are using inside the emitter |
gun_properties | List of all the properties of the inserted gun |
icon_state_on | The icon state used by the emitter when it's on. |
icon_state_underpowered | The icon state used by the emitter when it's on and low on power. |
last_projectile_params | stores the direction and orientation of the last projectile |
last_shot | When was the last shot |
locked | Is the emitter id locked? |
manual | manual shooting? (basically you hop onto the emitter and choose the shooting direction, is very janky since you can only shoot at the 8 directions and i don't think is ever used since you can't build those) |
maximum_fire_delay | Max delay before firing |
minimum_fire_delay | Min delay before firing |
powered | Does the machine have power? |
projectile_sound | What's the projectile sound? |
projectile_type | What projectile type are we shooting? |
shot_number | Number of shots made (gets reset every few shots) |
sparks | Sparks emitted with every shot |
welded | if it's welded down to the ground or not. the emitter will not fire while unwelded. if set to true, the emitter will start anchored as well. |
Procs | |
togglelock | Attempt to toggle the controls lock of the emitter |
Var Details
active ![code/modules/power/singularity/emitter.dm 21](git.png)
Is the machine active?
allow_switch_interact ![code/modules/power/singularity/emitter.dm 39](git.png)
Used to stop interactions with the object (mainly in the wabbajack statue)
charge ![code/modules/power/singularity/emitter.dm 57](git.png)
Amount of power inside
fire_delay ![code/modules/power/singularity/emitter.dm 25](git.png)
Seconds before the next shot
gun ![code/modules/power/singularity/emitter.dm 47](git.png)
Stores the type of gun we are using inside the emitter
gun_properties ![code/modules/power/singularity/emitter.dm 49](git.png)
List of all the properties of the inserted gun
icon_state_on ![code/modules/power/singularity/emitter.dm 17](git.png)
The icon state used by the emitter when it's on.
icon_state_underpowered ![code/modules/power/singularity/emitter.dm 19](git.png)
The icon state used by the emitter when it's on and low on power.
last_projectile_params ![code/modules/power/singularity/emitter.dm 61](git.png)
stores the direction and orientation of the last projectile
last_shot ![code/modules/power/singularity/emitter.dm 31](git.png)
When was the last shot
locked ![code/modules/power/singularity/emitter.dm 37](git.png)
Is the emitter id locked?
manual ![code/modules/power/singularity/emitter.dm 55](git.png)
manual shooting? (basically you hop onto the emitter and choose the shooting direction, is very janky since you can only shoot at the 8 directions and i don't think is ever used since you can't build those)
maximum_fire_delay ![code/modules/power/singularity/emitter.dm 27](git.png)
Max delay before firing
minimum_fire_delay ![code/modules/power/singularity/emitter.dm 29](git.png)
Min delay before firing
powered ![code/modules/power/singularity/emitter.dm 23](git.png)
Does the machine have power?
projectile_sound ![code/modules/power/singularity/emitter.dm 43](git.png)
What's the projectile sound?
projectile_type ![code/modules/power/singularity/emitter.dm 41](git.png)
What projectile type are we shooting?
shot_number ![code/modules/power/singularity/emitter.dm 33](git.png)
Number of shots made (gets reset every few shots)
sparks ![code/modules/power/singularity/emitter.dm 45](git.png)
Sparks emitted with every shot
welded ![code/modules/power/singularity/emitter.dm 35](git.png)
if it's welded down to the ground or not. the emitter will not fire while unwelded. if set to true, the emitter will start anchored as well.
Proc Details
togglelock
Attempt to toggle the controls lock of the emitter