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 |
base_icon_state | Base turret icon state |
controllock | If the turret responds to control panels |
cover | The cover that is covering this turret |
cp | Linked turret control panel of the turret |
faction | Same faction mobs will never be shot at, no matter the other settings |
gun_charge | The charge of the gun when retrieved from wreckage |
has_cover | Hides the cover |
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 |
nonlethal_projectile | Projectile to use in stun mode when the target is resting, if any |
nonlethal_projectile_sound | Sound of stun projectile wen the target is resting, optional |
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 (2 ?) |
shot_stagger | MISSING: |
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 |
wall_turret_direction | The turret will try to shoot from a turf in that direction when in a wall |
Var Details
always_up ![code/game/machinery/porta_turret/portable_turret.dm 80](git.png)
Will stay active
base ![code/game/machinery/porta_turret/portable_turret.dm 48](git.png)
For turrets inside other objects
base_icon_state ![code/game/machinery/porta_turret/portable_turret.dm 44](git.png)
Base turret icon state
controllock ![code/game/machinery/porta_turret/portable_turret.dm 56](git.png)
If the turret responds to control panels
cover ![code/game/machinery/porta_turret/portable_turret.dm 84](git.png)
The cover that is covering this turret
cp ![code/game/machinery/porta_turret/portable_turret.dm 98](git.png)
Linked turret control panel of the turret
faction ![code/game/machinery/porta_turret/portable_turret.dm 94](git.png)
Same faction mobs will never be shot at, no matter the other settings
gun_charge ![code/game/machinery/porta_turret/portable_turret.dm 62](git.png)
The charge of the gun when retrieved from wreckage
has_cover ![code/game/machinery/porta_turret/portable_turret.dm 82](git.png)
Hides the cover
installation ![code/game/machinery/porta_turret/portable_turret.dm 58](git.png)
The type of weapon installed by default
last_fired ![code/game/machinery/porta_turret/portable_turret.dm 86](git.png)
World.time the turret last fired
lethal_projectile ![code/game/machinery/porta_turret/portable_turret.dm 74](git.png)
Lethal mode projectile type
lethal_projectile_sound ![code/game/machinery/porta_turret/portable_turret.dm 76](git.png)
Sound of lethal projectile
locked ![code/game/machinery/porta_turret/portable_turret.dm 54](git.png)
If the turret's behaviour control access is locked
manual_control ![code/game/machinery/porta_turret/portable_turret.dm 102](git.png)
If the turret is manually controlled
mode ![code/game/machinery/porta_turret/portable_turret.dm 64](git.png)
In which mode is turret in, stun or lethal
nonlethal_projectile ![code/game/machinery/porta_turret/portable_turret.dm 70](git.png)
Projectile to use in stun mode when the target is resting, if any
nonlethal_projectile_sound ![code/game/machinery/porta_turret/portable_turret.dm 72](git.png)
Sound of stun projectile wen the target is resting, optional
on ![code/game/machinery/porta_turret/portable_turret.dm 92](git.png)
Determines if the turret is on
power_channel ![code/game/machinery/porta_turret/portable_turret.dm 39](git.png)
Only people with Security access
quit_action ![code/game/machinery/porta_turret/portable_turret.dm 104](git.png)
Action button holder for quitting manual control
raised ![code/game/machinery/porta_turret/portable_turret.dm 50](git.png)
If the turret cover is "open" and the turret is raised
raising ![code/game/machinery/porta_turret/portable_turret.dm 52](git.png)
If the turret is currently opening or closing its cover
remote_controller ![code/game/machinery/porta_turret/portable_turret.dm 108](git.png)
Mob that is remotely controlling the turret
reqpower ![code/game/machinery/porta_turret/portable_turret.dm 78](git.png)
Power needed per shot
scan_range ![code/game/machinery/porta_turret/portable_turret.dm 46](git.png)
Scan range of the turret for locating targets
shot_delay ![code/game/machinery/porta_turret/portable_turret.dm 88](git.png)
Ticks until next shot (2 ?)
shot_stagger ![code/game/machinery/porta_turret/portable_turret.dm 110](git.png)
MISSING:
spark_system ![code/game/machinery/porta_turret/portable_turret.dm 96](git.png)
The spark system, used for generating... sparks?
stored_gun ![code/game/machinery/porta_turret/portable_turret.dm 60](git.png)
What stored gun is in the turret
stun_projectile ![code/game/machinery/porta_turret/portable_turret.dm 66](git.png)
Stun mode projectile type
stun_projectile_sound ![code/game/machinery/porta_turret/portable_turret.dm 68](git.png)
Sound of stun projectile
toggle_action ![code/game/machinery/porta_turret/portable_turret.dm 106](git.png)
Action button holder for switching between turret modes when manually controlling
turret_flags ![code/game/machinery/porta_turret/portable_turret.dm 90](git.png)
Turret flags about who is turret allowed to shoot
wall_turret_direction ![code/game/machinery/porta_turret/portable_turret.dm 100](git.png)
The turret will try to shoot from a turf in that direction when in a wall