Spin Emote Changes

This commit is contained in:
Fox McCloud
2021-09-02 14:17:21 -04:00
parent db067fabeb
commit 0af3fc340c
2 changed files with 18 additions and 13 deletions
@@ -446,15 +446,14 @@
SpinAnimation(5,1)
if("spin", "spins")
if(!restrained() && !lying)
if(!restrained())
if(prob(5))
spin(30, 1)
message = "<B>[src]</B> spins too much!"
spin(32, 1)
to_chat(usr, "You spin too much!")
Dizzy(12)
Confused(12)
else
spin(20, 1)
message = "<B>[src]</B> spins!"
if("aflap", "aflaps")
if(!restrained())
+15 -9
View File
@@ -1351,17 +1351,23 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
return FALSE //overridden in living.dm
/mob/proc/spin(spintime, speed)
set waitfor = 0
set waitfor = FALSE
if(!spintime || !speed || spintime > 100)
CRASH("Aborted attempted call of /mob/proc/spin with invalid args ([spintime],[speed]) which could have frozen the server.")
var/end_time = world.time + spintime
var/spin_dir = prob(50)
while(world.time <= end_time)
var/D = dir
while(spintime >= speed)
sleep(speed)
if(spin_dir)
dir = turn(dir, 90)
else
dir = turn(dir, -90)
switch(D)
if(NORTH)
D = EAST
if(SOUTH)
D = WEST
if(EAST)
D = SOUTH
if(WEST)
D = NORTH
setDir(D)
spintime -= speed
/mob/proc/is_literate()
return FALSE
@@ -1479,7 +1485,7 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
MA.plane = GAME_PLANE
pic.appearance = MA
flick_overlay(pic, list(client), 10)
GLOBAL_LIST_INIT(holy_areas, typecacheof(list(
/area/chapel