mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-20 15:12:57 +00:00
Moved the spacecraft folder into the unused section, moved syndiebeacon into machinery. Research moved into Modules. Virus2 moved into WIP - is anyone even working on this, it looks almost done? Computer2,optics,pda2,experimental moved unto unused. WIP Chemistry things moved into Chemical Module Cameras.dm moved into weapons GameKit.dm moved into unused BrokenInHands.dm moved into unused Removed Grillify.dm Moved all of the files listed as unused in the mining module to unused Removed several empty folders in modules Moved cloning.dm into machinery Moved NewBan.dm into admin Changed humanoid aliens new_life.dm into life.dm Moved beast mob into unused Moved hivebot into unused Moved carpedexplosion.dm into unused Moved ai_lockdown.dm verb into unused and removed it from the AIs verb list as it didn't actually do anything. Removed mastercontroler2.dm Moved savefile.dm from human to new_player Bugfix People spawning on the starting screen on rev/cult should be fixed. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1964 316c924e-a436-60f5-8080-3fe189b3f50e
73 lines
1.4 KiB
Plaintext
73 lines
1.4 KiB
Plaintext
// A laser pointer. Emits a (tunable) low-power laser beam
|
|
// Used for alignment and testing of the optics system
|
|
|
|
/obj/item/device/laser_pointer
|
|
name = "laser pointer"
|
|
desc = "A portable low-power laser used for optical system alignment. The label reads: 'Danger: Class IIIa laser device. Avoid direct eye exposure."
|
|
icon = 'optics.dmi'
|
|
icon_state = "pointer0"
|
|
var/on = 0 // true if operating
|
|
var/wavelength = 632 // operation wavelength (nm)
|
|
|
|
var/gain_peak = 632 // gain peak (nm)
|
|
var/gain_width = 35 // gain bandwidth (nm)
|
|
var/peak_output = 0.005 // max output 5 mW
|
|
layer = OBJ_LAYER + 0.1
|
|
|
|
w_class = 4
|
|
m_amt = 500
|
|
g_amt = 100
|
|
w_amt = 200
|
|
|
|
var/obj/beam/laser/beam // the created beam
|
|
|
|
flags = FPRINT | CONDUCT | TABLEPASS
|
|
|
|
attack_ai()
|
|
return
|
|
|
|
attack_paw()
|
|
return
|
|
|
|
attack_self(var/mob/user)
|
|
|
|
|
|
on = !on
|
|
if(on)
|
|
turn_on()
|
|
else
|
|
turn_off()
|
|
|
|
updateicon()
|
|
|
|
verb/rotate()
|
|
set name = "Rotate"
|
|
set src in view(1)
|
|
turn_off()
|
|
dir = turn(dir, -90)
|
|
if(on) turn_on()
|
|
|
|
Move(var/atom/newloc,var/newdir)
|
|
. = ..(newloc,newdir)
|
|
if(on && . && isturf(newloc))
|
|
turn_off()
|
|
turn_on()
|
|
return .
|
|
|
|
proc/turn_on()
|
|
if(!isturf(loc))
|
|
return
|
|
|
|
beam = new(loc, dir, wavelength, 1, 1)
|
|
beam.master = src
|
|
|
|
proc/turn_off()
|
|
if(beam)
|
|
beam.remove()
|
|
|
|
dropped()
|
|
turn_off()
|
|
turn_on()
|
|
|
|
proc/updateicon()
|
|
icon_state = "pointer[on]" |