mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-07 07:09:17 +01:00
b84d12d949
-Turns out there was already a Gaussian PRNG proc already, used by mechs and turrets. I've replaced it with my one as mine has almost half the cost. (currently broken! still waiting for fixes to be pulled!) -replaced between(min, val, max) with Clamp(val, min, max) -get_turf(thing) now uses var/list/locs to locate its turf, rather than iterating up through loc of its loc of its loc...etc -sign(num) moved to maths.dm -InRange(val, min, max) replaced with IsInRange(val, min, max) (they were identical) -Removed ismultitool() iswrench() iscoil() iswire() iswelder() iscrowbar() etc -removed modulus(num) as abs() performs the same task! *roll-eyes* -removed get_mob_with_client_list() as it is no longer needed (we have var/list/player_list now) -removed get_turf_or_move() as it simply called get_turf -removed get_turf_loc() as it was identical to get_turf() *Additions:* -The "Declare Ready" link in the lobby will automatically become "Join Game" if the round starts before you declare ready, so you don't have to click it twice
77 lines
2.2 KiB
Plaintext
77 lines
2.2 KiB
Plaintext
/client/proc/play_sound(S as sound)
|
|
set category = "Fun"
|
|
set name = "Play Global Sound"
|
|
if(!check_rights(R_SOUNDS)) return
|
|
|
|
var/sound/uploaded_sound = sound(S, repeat = 0, wait = 1, channel = 777)
|
|
uploaded_sound.priority = 250
|
|
|
|
log_admin("[key_name(src)] played sound [S]")
|
|
message_admins("[key_name_admin(src)] played sound [S]", 1)
|
|
for(var/mob/M in player_list)
|
|
if(M.client.prefs.toggles & SOUND_MIDI)
|
|
M << uploaded_sound
|
|
|
|
feedback_add_details("admin_verb","PGS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
|
|
/client/proc/play_local_sound(S as sound)
|
|
set category = "Fun"
|
|
set name = "Play Local Sound"
|
|
if(!check_rights(R_SOUNDS)) return
|
|
|
|
log_admin("[key_name(src)] played a local sound [S]")
|
|
message_admins("[key_name_admin(src)] played a local sound [S]", 1)
|
|
playsound(get_turf(src.mob), S, 50, 0, 0)
|
|
feedback_add_details("admin_verb","PLS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
|
|
/*
|
|
/client/proc/cuban_pete()
|
|
set category = "Fun"
|
|
set name = "Cuban Pete Time"
|
|
|
|
message_admins("[key_name_admin(usr)] has declared Cuban Pete Time!", 1)
|
|
for(var/mob/M in world)
|
|
if(M.client)
|
|
if(M.client.midis)
|
|
M << 'cubanpetetime.ogg'
|
|
|
|
for(var/mob/living/carbon/human/CP in world)
|
|
if(CP.real_name=="Cuban Pete" && CP.key!="Rosham")
|
|
CP << "Your body can't contain the rhumba beat"
|
|
CP.gib()
|
|
|
|
|
|
/client/proc/bananaphone()
|
|
set category = "Fun"
|
|
set name = "Banana Phone"
|
|
|
|
message_admins("[key_name_admin(usr)] has activated Banana Phone!", 1)
|
|
for(var/mob/M in world)
|
|
if(M.client)
|
|
if(M.client.midis)
|
|
M << 'bananaphone.ogg'
|
|
|
|
|
|
client/proc/space_asshole()
|
|
set category = "Fun"
|
|
set name = "Space Asshole"
|
|
|
|
message_admins("[key_name_admin(usr)] has played the Space Asshole Hymn.", 1)
|
|
for(var/mob/M in world)
|
|
if(M.client)
|
|
if(M.client.midis)
|
|
M << 'space_asshole.ogg'
|
|
|
|
|
|
client/proc/honk_theme()
|
|
set category = "Fun"
|
|
set name = "Honk"
|
|
|
|
message_admins("[key_name_admin(usr)] has creeped everyone out with Blackest Honks.", 1)
|
|
for(var/mob/M in world)
|
|
if(M.client)
|
|
if(M.client.midis)
|
|
M << 'honk_theme.ogg'*/
|