Fix downward velocity on monster MOVETYPE_WALK being constant

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

View file

@ -1339,7 +1339,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);