Server: Fix bug where holding down +use will make you pass through player
clips.
This commit is contained in:
parent
094e87f957
commit
840a4e32bd
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue