Files
RoxyandGitHub f1ee0e7427 The vettening (#3937)
## About The Pull Request

Add watermark to unvetted clients, add warning to unvetted clients when
attempting to join the game, eventually locking out access on September
1st. Add warning text to examine for unvetted clients

## Why It's Good For The Game

The time has come

## Proof Of Testing

Tested it extensively last night

## Changelog
🆑 Bubberstation Staff
add: The clock is ticking.
/🆑
2025-06-01 02:00:57 -04:00

40 lines
1.4 KiB
Plaintext

/atom/movable/screen/text/activation_text
screen_loc = "BOTTOM+1,LEFT"
maptext = ""
alpha = 180
maptext_width = 672
plane = SPLASHSCREEN_PLANE
layer = SCREENTIP_LAYER
var/vetted = FALSE
/atom/movable/screen/text/activation_text/Initialize(mapload, datum/hud/hud_owner)
. = ..()
RegisterSignal(hud?.mymob, COMSIG_MOB_LOGIN, PROC_REF(on_mob_login))
update_view()
INVOKE_ASYNC(src, PROC_REF(update_status))
/atom/movable/screen/text/activation_text/on_hud_delete(datum/source)
UnregisterSignal(hud.mymob, list(COMSIG_MOB_LOGIN))
. = ..()
/atom/movable/screen/text/activation_text/proc/on_mob_login(datum/source)
SIGNAL_HANDLER
INVOKE_ASYNC(src, PROC_REF(update_status))
/atom/movable/screen/text/activation_text/proc/update_view()
if(!hud?.mymob?.canon_client?.view_size)
return
maptext_width = view_to_pixels(hud.mymob.canon_client.view_size.getView())[1]
/atom/movable/screen/text/activation_text/proc/update_status()
maptext = ""
if(!CONFIG_GET(flag/check_vetted))
return
if(vetted || !SSplayer_ranks.initialized || !hud?.mymob?.canon_client)
return
if(!SSplayer_ranks.is_vetted(hud.mymob.canon_client, admin_bypass = FALSE))
maptext = MAPTEXT_SELAWIK("<span style='text-align: right; color: #7A7E88'>Activate Bubberstation</span>")
maptext += MAPTEXT_SELAWIK("<span style='text-align: right; color: #7A7E88; font-size: 10pt'>Go to the Discord to get vetted.</span>")
else
vetted = TRUE