mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
removes the floating code
This commit is contained in:
+1
-27
@@ -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)
|
||||
@@ -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
|
||||
@@ -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++
|
||||
|
||||
|
||||
Reference in New Issue
Block a user