mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 01:57:01 +00:00
Added a configuration option that disables OOC during the round automatically. Defaults to allowing OOC during the round.
This commit is contained in:
@@ -99,6 +99,7 @@
|
||||
var/revival_brain_life = -1
|
||||
|
||||
var/rename_cyborg = 0
|
||||
var/ooc_during_round = 0
|
||||
|
||||
//Used for modifying movement speed for mobs.
|
||||
//Unversal modifiers
|
||||
@@ -281,6 +282,8 @@
|
||||
config.revival_brain_life = text2num(value)
|
||||
if("rename_cyborg")
|
||||
config.rename_cyborg = 1
|
||||
if("ooc_during_round")
|
||||
config.ooc_during_round = 1
|
||||
if("run_delay")
|
||||
config.run_speed = text2num(value)
|
||||
if("walk_delay")
|
||||
|
||||
@@ -142,6 +142,7 @@ var/global/datum/controller/gameticker/ticker
|
||||
|
||||
if(!admins.len)
|
||||
send2irc("Server", "Round just started with no admins online!")
|
||||
auto_toggle_ooc(0) // Turn it off
|
||||
|
||||
if(config.sql_enabled)
|
||||
spawn(3000)
|
||||
@@ -156,7 +157,7 @@ var/global/datum/controller/gameticker/ticker
|
||||
//Plus it provides an easy way to make cinematics for other events. Just use this as a template
|
||||
proc/station_explosion_cinematic(var/station_missed=0, var/override = null)
|
||||
if( cinematic ) return //already a cinematic in progress!
|
||||
|
||||
auto_toggle_ooc(1) // Turn it on
|
||||
//initialise our cinematic screen object
|
||||
cinematic = new(src)
|
||||
cinematic.icon = 'icons/effects/station_explosion.dmi'
|
||||
@@ -286,7 +287,7 @@ var/global/datum/controller/gameticker/ticker
|
||||
|
||||
if(!mode.explosion_in_progress && mode.check_finished())
|
||||
current_state = GAME_STATE_FINISHED
|
||||
|
||||
auto_toggle_ooc(1) // Turn it on
|
||||
spawn
|
||||
declare_completion()
|
||||
|
||||
|
||||
@@ -56,6 +56,17 @@
|
||||
else
|
||||
C << "<font color='[normal_ooc_colour]'><span class='ooc'><span class='prefix'>OOC:</span> <EM>[keyname]:</EM> <span class='message'>[msg]</span></span></font>"
|
||||
|
||||
/proc/toggle_ooc()
|
||||
ooc_allowed = !( ooc_allowed )
|
||||
if (ooc_allowed)
|
||||
world << "<B>The OOC channel has been globally enabled!</B>"
|
||||
else
|
||||
world << "<B>The OOC channel has been globally disabled!</B>"
|
||||
|
||||
/proc/auto_toggle_ooc(var/on)
|
||||
if(!config.ooc_during_round && ooc_allowed != on)
|
||||
toggle_ooc()
|
||||
|
||||
var/global/normal_ooc_colour = "#002eb8"
|
||||
|
||||
/client/proc/set_ooc(newColor as color)
|
||||
|
||||
@@ -566,11 +566,7 @@ var/global/floorIsLava = 0
|
||||
set category = "Server"
|
||||
set desc="Toggle dis bitch"
|
||||
set name="Toggle OOC"
|
||||
ooc_allowed = !( ooc_allowed )
|
||||
if (ooc_allowed)
|
||||
world << "<B>The OOC channel has been globally enabled!</B>"
|
||||
else
|
||||
world << "<B>The OOC channel has been globally disabled!</B>"
|
||||
toggle_ooc()
|
||||
log_admin("[key_name(usr)] toggled OOC.")
|
||||
message_admins("[key_name_admin(usr)] toggled OOC.", 1)
|
||||
feedback_add_details("admin_verb","TOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
@@ -23,6 +23,10 @@ REVIVAL_BRAIN_LIFE -1
|
||||
#Uncomment to allow cyborgs to rename themselves at roundstart. Has no effect on roboticists renaming cyborgs the normal way.
|
||||
#RENAME_CYBORG
|
||||
|
||||
### OOC DURING ROUND ###
|
||||
#Comment this out if you want OOC to be automatically disabled during the round, it will be enabled during the lobby and after the round end results.
|
||||
OOC_DURING_ROUND
|
||||
|
||||
### MOB MOVEMENT ###
|
||||
|
||||
## We suggest editing these variables ingame to find a good speed for your server.
|
||||
|
||||
Reference in New Issue
Block a user