porta_turret ![code/game/machinery/porta_turret/portable_turret.dm 27](git.png)
Vars | |
always_up | Will stay active |
---|---|
base | For turrets inside other objects |
controllock | If the turret responds to control panels |
cover | The cover that is covering this turret |
disabled_time | While the cooldown is still going on, it cannot be re-enabled. |
gun_charge | The charge of the gun when retrieved from wreckage |
has_cover | Hides the cover |
ignore_faction | Determines if our projectiles hit our faction |
installation | The type of weapon installed by default |
last_fired | World.time the turret last fired |
lethal_projectile | Lethal mode projectile type |
lethal_projectile_sound | Sound of lethal projectile |
locked | If the turret's behaviour control access is locked |
manual_control | If the turret is manually controlled |
mode | In which mode is turret in, stun or lethal |
on | Determines if the turret is on |
power_channel | Only people with Security access |
quit_action | Action button holder for quitting manual control |
raised | If the turret cover is "open" and the turret is raised |
raising | If the turret is currently opening or closing its cover |
remote_controller | Mob that is remotely controlling the turret |
reqpower | Power needed per shot |
scan_range | Scan range of the turret for locating targets |
shot_delay | Ticks until next shot (1.5 ?) |
spark_system | The spark system, used for generating... sparks? |
stored_gun | What stored gun is in the turret |
stun_projectile | Stun mode projectile type |
stun_projectile_sound | Sound of stun projectile |
toggle_action | Action button holder for switching between turret modes when manually controlling |
turret_flags | Turret flags about who is turret allowed to shoot |
uses_stored | if TRUE this will cause the turret to stop working if the stored_gun var is null in process() |
wall_turret_direction | The turret will try to shoot from a turf in that direction when in a wall |
Procs | |
null_gun | destroys reference to stored_gun to prevent hard deletions |
set_disabled | Prevents turned from being turned on for a duration, then restarts them after that if the second ard is true. |
toggle_on | Toggles the turret on or off depending on the value of the turn_on arg. |
Var Details
always_up ![code/game/machinery/porta_turret/portable_turret.dm 79](git.png)
Will stay active
base ![code/game/machinery/porta_turret/portable_turret.dm 51](git.png)
For turrets inside other objects
controllock ![code/game/machinery/porta_turret/portable_turret.dm 59](git.png)
If the turret responds to control panels
cover ![code/game/machinery/porta_turret/portable_turret.dm 83](git.png)
The cover that is covering this turret
disabled_time ![code/game/machinery/porta_turret/portable_turret.dm 107](git.png)
While the cooldown is still going on, it cannot be re-enabled.
gun_charge ![code/game/machinery/porta_turret/portable_turret.dm 65](git.png)
The charge of the gun when retrieved from wreckage
has_cover ![code/game/machinery/porta_turret/portable_turret.dm 81](git.png)
Hides the cover
ignore_faction ![code/game/machinery/porta_turret/portable_turret.dm 93](git.png)
Determines if our projectiles hit our faction
installation ![code/game/machinery/porta_turret/portable_turret.dm 61](git.png)
The type of weapon installed by default
last_fired ![code/game/machinery/porta_turret/portable_turret.dm 85](git.png)
World.time the turret last fired
lethal_projectile ![code/game/machinery/porta_turret/portable_turret.dm 73](git.png)
Lethal mode projectile type
lethal_projectile_sound ![code/game/machinery/porta_turret/portable_turret.dm 75](git.png)
Sound of lethal projectile
locked ![code/game/machinery/porta_turret/portable_turret.dm 57](git.png)
If the turret's behaviour control access is locked
manual_control ![code/game/machinery/porta_turret/portable_turret.dm 99](git.png)
If the turret is manually controlled
mode ![code/game/machinery/porta_turret/portable_turret.dm 67](git.png)
In which mode is turret in, stun or lethal
on ![code/game/machinery/porta_turret/portable_turret.dm 91](git.png)
Determines if the turret is on
power_channel ![code/game/machinery/porta_turret/portable_turret.dm 36](git.png)
Only people with Security access
quit_action ![code/game/machinery/porta_turret/portable_turret.dm 101](git.png)
Action button holder for quitting manual control
raised ![code/game/machinery/porta_turret/portable_turret.dm 53](git.png)
If the turret cover is "open" and the turret is raised
raising ![code/game/machinery/porta_turret/portable_turret.dm 55](git.png)
If the turret is currently opening or closing its cover
remote_controller ![code/game/machinery/porta_turret/portable_turret.dm 105](git.png)
Mob that is remotely controlling the turret
reqpower ![code/game/machinery/porta_turret/portable_turret.dm 77](git.png)
Power needed per shot
scan_range ![code/game/machinery/porta_turret/portable_turret.dm 49](git.png)
Scan range of the turret for locating targets
shot_delay ![code/game/machinery/porta_turret/portable_turret.dm 87](git.png)
Ticks until next shot (1.5 ?)
spark_system ![code/game/machinery/porta_turret/portable_turret.dm 95](git.png)
The spark system, used for generating... sparks?
stored_gun ![code/game/machinery/porta_turret/portable_turret.dm 63](git.png)
What stored gun is in the turret
stun_projectile ![code/game/machinery/porta_turret/portable_turret.dm 69](git.png)
Stun mode projectile type
stun_projectile_sound ![code/game/machinery/porta_turret/portable_turret.dm 71](git.png)
Sound of stun projectile
toggle_action ![code/game/machinery/porta_turret/portable_turret.dm 103](git.png)
Action button holder for switching between turret modes when manually controlling
turret_flags ![code/game/machinery/porta_turret/portable_turret.dm 89](git.png)
Turret flags about who is turret allowed to shoot
uses_stored ![code/game/machinery/porta_turret/portable_turret.dm 47](git.png)
if TRUE this will cause the turret to stop working if the stored_gun var is null in process()
wall_turret_direction ![code/game/machinery/porta_turret/portable_turret.dm 97](git.png)
The turret will try to shoot from a turf in that direction when in a wall
Proc Details
null_gun
destroys reference to stored_gun to prevent hard deletions
set_disabled
Prevents turned from being turned on for a duration, then restarts them after that if the second ard is true.
toggle_on
Toggles the turret on or off depending on the value of the turn_on arg.