removes the floating code

This commit is contained in:
RavingManiac
2012-11-23 02:02:45 +08:00
parent e31e117315
commit e252c47a51
3 changed files with 2 additions and 36 deletions
+1 -27
View File
@@ -689,9 +689,6 @@ note dizziness decrements automatically in the mob's Life() proc.
// Typo from the oriignal coder here, below lies the jitteriness process. So make of his code what you will, the previous comment here was just a copypaste of the above.
/mob/proc/jittery_process()
if (is_floaty) return
var/old_x = pixel_x
var/old_y = pixel_y
is_jittery = 1
@@ -710,29 +707,6 @@ note dizziness decrements automatically in the mob's Life() proc.
pixel_x = old_x
pixel_y = old_y
//Floaty - Makes the mob sprite bob up and down. Also a copypaste of dizziness
/mob/proc/make_floaty()
if(floatiness && !is_floaty)
spawn(0)
floaty_process()
/mob/proc/floaty_process()
if (is_jittery) return
var/old_x = pixel_x
var/old_y = pixel_y
is_floaty = 1
while(floatiness)
pixel_y = 3 * cos(7 * world.time) //May need some tweaking
sleep(1)
//endwhile - reset the pixel offsets to zero
is_floaty = 0
pixel_x = old_x
pixel_y = old_y
/mob/Stat()
..()
@@ -938,4 +912,4 @@ note dizziness decrements automatically in the mob's Life() proc.
return ""
/mob/proc/flash_weak_pain()
flick("weak_pain",pain)
flick("weak_pain",pain)
+1 -3
View File
@@ -94,8 +94,6 @@
var/dizziness = 0//Carbon
var/is_dizzy = 0
var/is_jittery = 0
var/is_floaty = 0
var/floatiness = 0
var/jitteriness = 0//Carbon
var/charges = 0.0
var/nutrition = 400.0//Carbon
@@ -228,4 +226,4 @@
var/has_limbs = 1 //Whether this mob have any limbs he can move with
var/can_stand = 1 //Whether this mob have ability to stand
var/immune_to_ssd = 0
var/immune_to_ssd = 0
-6
View File
@@ -267,8 +267,6 @@
if((istype(mob.loc, /turf/space)) || (mob.lastarea.has_gravity == 0))
if(!mob.Process_Spacemove(0)) return 0
else
mob.floatiness = 0
if(isobj(mob.loc) || ismob(mob.loc))//Inside an object, tell it we moved
@@ -471,10 +469,6 @@
dense_object++
break
//Makes the mob floaty
src.floatiness = 1
src.make_floaty()
if(!dense_object && (locate(/obj/structure/lattice) in oview(1, src)))
dense_object++