Skip to content

Commit

Permalink
more dizzy code fix mob.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenDarkness55 authored Jul 25, 2023
1 parent 44eb093 commit b13634c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -612,12 +612,12 @@ note dizziness decrements automatically in the mob's Life() proc.
if(buckled || resting)
client.pixel_x = 0
client.pixel_y = 0
else
var/amplitude = dizziness*(sin(dizziness * 0.044 * world.time) + 1) / 70
client.pixel_x = amplitude * sin(0.008 * dizziness * world.time)
client.pixel_y = amplitude * cos(0.008 * dizziness * world.time)
if(prob(1))
to_chat(src, "The dizziness is becoming unbearable! It should pass faster if you lie down.")
else
var/amplitude = dizziness*(sin(dizziness * 0.044 * world.time) + 1) / 70
client.pixel_x = amplitude * sin(0.008 * dizziness * world.time)
client.pixel_y = amplitude * cos(0.008 * dizziness * world.time)
if(prob(1))
to_chat(src, "The dizziness is becoming unbearable! It should pass faster if you lie down.")
sleep(1)
//endwhile - reset the pixel offsets to zero
is_dizzy = 0
Expand Down

0 comments on commit b13634c

Please sign in to comment.