mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 23:41:57 +00:00
Cult visual network.
Implementation of a cult visual network, similar to the original camera network. Includes the "eye" itself and the initial construction of a mob that can control one.
This commit is contained in:
7
code/_onclick/eye.dm
Normal file
7
code/_onclick/eye.dm
Normal file
@@ -0,0 +1,7 @@
|
||||
/mob/living/simple_animal/shade/narsie/DblClickOn(var/atom/A, params)
|
||||
if(client.buildmode) // comes after object.Click to allow buildmode gui objects to be clicked
|
||||
build_click(src, client.buildmode, params, A)
|
||||
return
|
||||
|
||||
sanity_check_eye()
|
||||
eyeobj.setLoc(A)
|
||||
@@ -33,7 +33,7 @@ var/list/global_huds = list(
|
||||
screen.screen_loc = "1,1"
|
||||
screen.icon = 'icons/obj/hud_full.dmi'
|
||||
screen.icon_state = icon_state
|
||||
screen.layer = 17
|
||||
screen.layer = SCREEN_LAYER
|
||||
screen.mouse_opacity = 0
|
||||
|
||||
return screen
|
||||
@@ -259,11 +259,11 @@ datum/hud/New(mob/owner)
|
||||
if(!hud_used)
|
||||
usr << "\red This mob type does not use a HUD."
|
||||
return
|
||||
|
||||
|
||||
if(!ishuman(src))
|
||||
usr << "\red Inventory hiding is currently only supported for human mobs, sorry."
|
||||
return
|
||||
|
||||
|
||||
if(!client) return
|
||||
if(client.view != world.view)
|
||||
return
|
||||
@@ -325,7 +325,7 @@ datum/hud/New(mob/owner)
|
||||
return
|
||||
if(client.view != world.view)
|
||||
return
|
||||
|
||||
|
||||
if(hud_used.hud_shown)
|
||||
hud_used.hud_shown = 0
|
||||
if(src.hud_used.adding)
|
||||
|
||||
Reference in New Issue
Block a user