Files
Aurora.3/code/modules/mob/abstract/dview.dm
Lohikar 0abc1d2a65 Repath a bunch of things to /mob/abstract childtypes (#4111)
* Repaths eyes, observers, dview, and new_players to /mob/abstract subtypes.

* Adds /mob/abstract, a base type for 'abstract' mobs that aren't meant to be directly affected by the game world.
2018-01-24 11:27:14 +01:00

27 lines
700 B
Plaintext

//DVIEW is a hack that uses a mob with darksight in order to find lists of viewable stuff while ignoring darkness
// Defines for dview are elsewhere.
var/mob/abstract/dview/dview_mob = new
/mob/abstract/dview
see_in_dark = 1e6
/mob/abstract/dview/Initialize()
. = ..()
// We don't want to be in any mob lists; we're a dummy not a mob.
mob_list -= src
if(stat == DEAD)
dead_mob_list -= src
else
living_mob_list -= src
/mob/abstract/dview/Destroy(force = FALSE)
crash_with("Some fuck [force ? "force-" : ""]qdeleted the dview mob.")
if (!force)
return QDEL_HINT_LETMELIVE
world.log << "Dview was force-qdeleted, this should never happen!"
dview_mob = new
return QDEL_HINT_QUEUE