self.solid = SOLID_SLIDEBOX;\r
else\r
self.solid = SOLID_CORPSE;\r
+ self.dphitcontentsmask = DPCONTENTS_BODY | DPCONTENTS_SOLID;\r
if(cvar("g_playerclip_collisions"))\r
- {\r
- if(clienttype(self) == CLIENTTYPE_BOT && cvar("g_botclip_collisions"))\r
- self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP | DPCONTENTS_BOTCLIP;\r
- else\r
- self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP;\r
- }\r
- else\r
- {\r
- if(clienttype(self) == CLIENTTYPE_BOT && cvar("g_botclip_collisions"))\r
- self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_BOTCLIP;\r
- else\r
- self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY;\r
- }\r
+ self.dphitcontentsmask |= DPCONTENTS_PLAYERCLIP;\r
+ if(clienttype(self) == CLIENTTYPE_BOT && cvar("g_botclip_collisions"))\r
+ self.dphitcontentsmask |= DPCONTENTS_BOTCLIP;\r
self.frags = FRAGS_PLAYER;\r
if(independent_players)\r
MAKE_INDEPENDENT_PLAYER(self);\r