Server: Fix bug where holding down +use will make you pass through player

clips.
This commit is contained in:
Marco Cawthorne 2021-12-14 10:36:39 -08:00
parent 094e87f957
commit 840a4e32bd
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 2 additions and 0 deletions

View File

@ -48,8 +48,10 @@ Player_UseDown(void)
makevectors(self.v_angle);
vecSrc = self.origin + self.view_ofs;
int oldmask = self.hitcontentsmaski;
self.hitcontentsmaski = CONTENTBITS_POINTSOLID;
traceline(vecSrc, vecSrc + (v_forward * 64), MOVE_HITMODEL, self);
self.hitcontentsmaski = oldmask;
if (trace_ent.PlayerUse) {