mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-19 15:16:33 +01:00
cleans up config adds new role time.tracking system adds new panic bunker adds new VPN detection system unfucks the automated age gate does a bunch more cleanups refactors client security checks a little --------- Co-authored-by: VM_USER <VM_USER> Co-authored-by: silicons <no@you.cat>
24 lines
608 B
Plaintext
24 lines
608 B
Plaintext
/**
|
|
* switch perspective - null will cause us to shunt our eye to nullspace!
|
|
*/
|
|
/client/proc/set_perspective(datum/perspective/P)
|
|
if(using_perspective)
|
|
using_perspective.remove_client(src, TRUE)
|
|
if(using_perspective)
|
|
stack_trace("using perspective didn't clear")
|
|
using_perspective = null
|
|
if(!P)
|
|
eye = null
|
|
lazy_eye = 0
|
|
perspective = EYE_PERSPECTIVE
|
|
return
|
|
P.add_client(src)
|
|
if(using_perspective != P)
|
|
stack_trace("using perspective didn't set")
|
|
|
|
/**
|
|
* reset perspective to default - usually to our mob's
|
|
*/
|
|
/client/proc/reset_perspective()
|
|
set_perspective(mob.get_perspective())
|