Skip to content

Commit

Permalink
Fix downward velocity on monster MOVETYPE_WALK being constant
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed Dec 27, 2023
1 parent e9eff1f commit f044d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/sv_phys.c
Expand Up @@ -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);

Expand Down

0 comments on commit f044d12

Please sign in to comment.