mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-21 19:19:12 +01:00
Stunned In Object View Decouple fix (#18748)
* decouple is safer * disable stun ending object views * ghostize needs to end remote views
This commit is contained in:
@@ -474,7 +474,7 @@
|
||||
spawn(0)
|
||||
// Decouple the view to the turf on drop, or we'll be stuck on the mob that dropped us forever
|
||||
if(!QDELETED(cache_mob))
|
||||
cache_mob.AddComponent(/datum/component/remote_view, release_turf)
|
||||
cache_mob.AddComponent(/datum/component/remote_view, focused_on = release_turf, vconfig_path = /datum/remote_view_config/turf_decoupling)
|
||||
cache_mob.client.eye = release_turf // Yes--
|
||||
cache_mob.client.perspective = EYE_PERSPECTIVE // --this is required too.
|
||||
if(!isturf(cache_mob.loc)) // For stuff like paicards
|
||||
|
||||
@@ -76,6 +76,26 @@
|
||||
will_sleep = FALSE
|
||||
will_blind = FALSE
|
||||
|
||||
/// Remote view that handles being inside of an object. This ignores stuns and other effects, as you are remaining within the object anyway.
|
||||
/datum/remote_view_config/inside_object
|
||||
forbid_movement = TRUE
|
||||
will_death = TRUE
|
||||
will_stun = FALSE
|
||||
will_weaken = FALSE
|
||||
will_paralyze = FALSE
|
||||
will_sleep = FALSE
|
||||
will_blind = FALSE
|
||||
|
||||
/// Remote view that only allows decoupling a turf view by movement. Seperate from effect_immune to allow for easier removal in the future if the underlying issue that makes this needed is someday fixed
|
||||
/datum/remote_view_config/turf_decoupling
|
||||
forbid_movement = TRUE
|
||||
will_death = TRUE
|
||||
will_stun = FALSE
|
||||
will_weaken = FALSE
|
||||
will_paralyze = FALSE
|
||||
will_sleep = FALSE
|
||||
will_blind = FALSE
|
||||
|
||||
/// Remote view that relays movement to the remote_view_target
|
||||
/datum/remote_view_config/relay_movement
|
||||
relay_movement = TRUE
|
||||
|
||||
Reference in New Issue
Block a user