Fixes for the grav gen

No face planting at round start anymore
This commit is contained in:
SoundScopes
2014-11-24 16:49:28 +00:00
parent 20e93c5fb0
commit 3c8da91913
2 changed files with 7 additions and 9 deletions
+2 -5
View File
@@ -146,9 +146,6 @@ var/list/gravity_field_generators = list() // We will keep track of this by addi
middle.overlays += "activated"
log_debug("Gravity Generator spawned: initialize()")
update_list()
spawn(100)
if(round_start >= 1)
round_start--
//
// Generator an admin can spawn
@@ -462,8 +459,8 @@ var/list/gravity_field_generators = list() // We will keep track of this by addi
A.gravitychange(A.has_gravity,A,1)
else
A.gravitychange(A.has_gravity,A)
if(round_start == 1)
round_start = 0
if(round_start >= 1)
round_start--
gravity_field_generators["[T.z]"] |= src
else
msg_scopes("Here is a lovely list of floaty people")
+5 -4
View File
@@ -328,16 +328,17 @@
L << sound(sound, repeat = 0, wait = 0, volume = musVolume, channel = 1)
L.client.played = world.time
/area/proc/gravitychange(var/gravitystate = 0, var/area/A)
/area/proc/gravitychange(var/gravitystate = 0, var/area/A, var/bypass_thunk = 0)
A.has_gravity = gravitystate
for(var/area/SubA in A.related)
SubA.has_gravity = gravitystate
if(gravitystate)
for(var/mob/living/carbon/human/M in SubA)
thunk(M)
if(!bypass_thunk)
if(gravitystate)
for(var/mob/living/carbon/human/M in SubA)
thunk(M)
/area/proc/thunk(mob)
if(istype(mob,/mob/living/carbon/human/)) // Only humans can wear magboots, so we give them a chance to.