Fix downward velocity on monster MOVETYPE_WALK being constant

This commit is contained in:
cypress 2023-12-27 15:40:22 -05:00 committed by GitHub
parent e9eff1fd0d
commit f044d12ce5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1324,7 +1324,7 @@ void SV_Physics_Walk(edict_t *ent)
trace_t downtrace;
vec3_t groundlocation;
VectorCopy(ent->v.origin,groundlocation);
groundlocation[2] = -STEPSIZE + ent->v.velocity[2]*host_frametime;
groundlocation[2] += -STEPSIZE + ent->v.velocity[2]*host_frametime;
downtrace = SV_Move(ent->v.origin,ent->v.mins,ent->v.maxs,groundlocation, MOVE_NOMONSTERS,ent);