Merge pull request #12610 from Detective-Google/resting
Lying down now respects the direction you're facing
This commit is contained in:
@@ -96,7 +96,13 @@
|
||||
mobility_flags &= ~MOBILITY_STAND
|
||||
setMovetype(movement_type | CRAWLING)
|
||||
if(!lying) //force them on the ground
|
||||
lying = pick(90, 270)
|
||||
switch(dir)
|
||||
if(NORTH, SOUTH)
|
||||
lying = pick(90, 270)
|
||||
if(EAST)
|
||||
lying = 90
|
||||
else //West
|
||||
lying = 270
|
||||
if(has_gravity() && !buckled)
|
||||
playsound(src, "bodyfall", 20, 1)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user