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
1 changed files with 1 additions and 1 deletions

View File

@ -1339,7 +1339,7 @@ void SV_Physics_Walk(edict_t *ent)
trace_t downtrace; trace_t downtrace;
vec3_t groundlocation; vec3_t groundlocation;
VectorCopy(ent->v.origin,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); downtrace = SV_Move(ent->v.origin,ent->v.mins,ent->v.maxs,groundlocation, MOVE_NOMONSTERS,ent);