intent cleanup (#16825)

This commit is contained in:
Kashargul
2025-01-03 08:14:28 +01:00
committed by GitHub
parent e03fe8c077
commit 3094e65b71
40 changed files with 80 additions and 77 deletions
+6 -6
View File
@@ -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)