mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
intent cleanup (#16825)
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
|
||||
// Movespeed delay based on movement mode
|
||||
switch(m_intent)
|
||||
if("run")
|
||||
if(I_RUN)
|
||||
if(drowsyness > 0)
|
||||
. += 6
|
||||
. += CONFIG_GET(number/run_speed)
|
||||
if("walk")
|
||||
if(I_WALK)
|
||||
. += CONFIG_GET(number/walk_speed)
|
||||
|
||||
/client/proc/client_dir(input, direction=-1)
|
||||
@@ -264,10 +264,10 @@
|
||||
//drunk wheelchair driving
|
||||
else if(my_mob.confused)
|
||||
switch(my_mob.m_intent)
|
||||
if("run")
|
||||
if(I_RUN)
|
||||
if(prob(50))
|
||||
direct = turn(direct, pick(90, -90))
|
||||
if("walk")
|
||||
if(I_WALK)
|
||||
if(prob(25))
|
||||
direct = turn(direct, pick(90, -90))
|
||||
total_delay += 3
|
||||
@@ -279,11 +279,11 @@
|
||||
// Confused direction randomization
|
||||
if(my_mob.confused)
|
||||
switch(my_mob.m_intent)
|
||||
if("run")
|
||||
if(I_RUN)
|
||||
if(prob(75))
|
||||
direct = turn(direct, pick(90, -90))
|
||||
n = get_step(my_mob, direct)
|
||||
if("walk")
|
||||
if(I_WALK)
|
||||
if(prob(25))
|
||||
direct = turn(direct, pick(90, -90))
|
||||
n = get_step(my_mob, direct)
|
||||
|
||||
Reference in New Issue
Block a user