Files
Bubberstation/code/modules/mob/camera/camera.dm
SmArtKar 19aa36b791 Post-godmode refactor cleanup (#86718)
## About The Pull Request

Adds some flags that went missing after #86596
Closes #86709

## Changelog
🆑
fix: Snow bears are no longer impervious to all sources of damage
fix: Cameras, living floors and ghost of poly no longer can be pushed
around
/🆑
2024-09-18 11:48:41 +02:00

55 lines
1.5 KiB
Plaintext

// Camera mob, used by AI camera and blob.
/mob/camera
name = "camera mob"
density = FALSE
move_force = INFINITY
move_resist = INFINITY
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
invisibility = INVISIBILITY_ABSTRACT // No one can see us
sight = SEE_SELF
status_flags = NONE
/// Toggles if the camera can move on shuttles
var/move_on_shuttle = FALSE
/// Toggles if the camera can use emotes
var/has_emotes = FALSE
/mob/camera/Initialize(mapload)
. = ..()
ADD_TRAIT(src, TRAIT_GODMODE, INNATE_TRAIT)
SSpoints_of_interest.make_point_of_interest(src)
if(!move_on_shuttle)
ADD_TRAIT(src, TRAIT_BLOCK_SHUTTLE_MOVEMENT, INNATE_TRAIT)
/mob/camera/experience_pressure_difference()
return
/mob/camera/canUseStorage()
return FALSE
/mob/camera/up()
set name = "Move Upwards"
set category = "IC"
if(zMove(UP, z_move_flags = ZMOVE_FEEDBACK))
to_chat(src, span_notice("You move upwards."))
/mob/camera/down()
set name = "Move Down"
set category = "IC"
if(zMove(DOWN, z_move_flags = ZMOVE_FEEDBACK))
to_chat(src, span_notice("You move down."))
/mob/camera/can_z_move(direction, turf/start, turf/destination, z_move_flags = NONE, mob/living/rider)
z_move_flags |= ZMOVE_IGNORE_OBSTACLES //cameras do not respect these FLOORS you speak so much of
return ..()
/mob/camera/emote(act, m_type=1, message = null, intentional = FALSE, force_silence = FALSE)
if(has_emotes)
return ..()
return FALSE
/mob/camera/update_sight()
lighting_color_cutoffs = list(lighting_cutoff_red, lighting_cutoff_green, lighting_cutoff_blue)
return ..()