mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 05:31:53 +00:00
H/E pipes once again do H/E things
Missed a line on the flashes, they will once again stun cyborgs Few adminverbs changed by request of the heads Roburgers will only provide 2 nanites down from 10 The random round spawn code now checks jobbans Players with a Cyborg jobban cannot become a cyborg normally Re added the old power armor typepaths as there seem to be a few of them in the .dmm and the thing's autocorrect/remove items seems to just fuck up the rest of the map when used. I have no idea where they are located and don't like leaving errors in the code, so if someone could remove them and the old typepaths it would be great. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2024 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -11,8 +11,6 @@ Starting up. [time2text(world.timeofday, "hh:mm.ss")]
|
||||
|
||||
jobban_loadbanfile()
|
||||
jobban_updatelegacybans()
|
||||
// goon_loadfile() Somehow I doubt we need this anymore
|
||||
// beta_tester_loadfile()
|
||||
LoadBans()
|
||||
process_teleport_locs() //Sets up the wizard teleport locations
|
||||
process_ghost_teleport_locs() //Sets up ghost teleport locations.
|
||||
@@ -20,33 +18,19 @@ Starting up. [time2text(world.timeofday, "hh:mm.ss")]
|
||||
|
||||
if (config.kick_inactive)
|
||||
spawn(30)
|
||||
//EXPERIMENTAL
|
||||
Optimize()
|
||||
//EXPERIMENTAL
|
||||
KickInactiveClients()
|
||||
|
||||
|
||||
|
||||
/// EXPERIMENTAL STUFF
|
||||
var/opt_inactive = null
|
||||
/world/proc/Optimize()
|
||||
if(!opt_inactive) opt_inactive = world.timeofday
|
||||
|
||||
if(world.timeofday - opt_inactive >= 600)
|
||||
KickInactiveClients()
|
||||
opt_inactive = world.timeofday
|
||||
|
||||
spawn(100) Optimize()
|
||||
|
||||
/world/proc/KickInactiveClients()
|
||||
for(var/client/C)
|
||||
if(!C.holder && ((C.inactivity/10)/60) >= 10) // Used to be 15 -- TLE
|
||||
//C << "\red You have been inactive for more than 10 minutes and have been disconnected."
|
||||
if(!C.holder && ((C.inactivity/10)/60) >= 10)
|
||||
if(C.mob)
|
||||
if(!istype(C.mob, /mob/dead/))
|
||||
log_access("AFK: [key_name(C)]")
|
||||
C << "\red You have been inactive for more than 10 minutes and have been disconnected."
|
||||
C.mob.logged_in = 0
|
||||
del(C)
|
||||
spawn(3000) KickInactiveClients()//more or less five minutes
|
||||
|
||||
/// EXPERIMENTAL STUFF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user