mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-29 07:02:08 +00:00
39 lines
464 B
Text
39 lines
464 B
Text
|
|
||
|
dead state flag for no user input
|
||
|
|
||
|
|
||
|
floor = under feet test
|
||
|
onground?
|
||
|
|
||
|
feet = wading test
|
||
|
|
||
|
waist = swimming test
|
||
|
|
||
|
head = submerged test
|
||
|
|
||
|
|
||
|
if ( floor == solid)
|
||
|
if (head == water)
|
||
|
friction = 0.8;
|
||
|
else if (waist == water)
|
||
|
friction =
|
||
|
else if (feet == water)
|
||
|
friction =
|
||
|
else
|
||
|
friction =
|
||
|
walk code
|
||
|
return;
|
||
|
|
||
|
if (floor == water)
|
||
|
if (head == water)
|
||
|
total underwater
|
||
|
if (waist == water)
|
||
|
treading water
|
||
|
drifting down
|
||
|
|
||
|
if (floor == air)
|
||
|
falling
|
||
|
|
||
|
|
||
|
|
||
|
|