why would this not ignore players
This commit is contained in:
parent
e8f9133764
commit
3ee9703317
@ -1,4 +1,4 @@
|
|||||||
/*
|
fixi/*
|
||||||
* trace.cpp
|
* trace.cpp
|
||||||
*
|
*
|
||||||
* Created on: Oct 10, 2016
|
* Created on: Oct 10, 2016
|
||||||
@ -42,6 +42,8 @@ bool trace::FilterDefault::ShouldHitEntity(IHandleEntity *handle, int mask)
|
|||||||
switch (clazz->m_ClassID)
|
switch (clazz->m_ClassID)
|
||||||
{
|
{
|
||||||
// TODO magic numbers: invisible entity ids
|
// TODO magic numbers: invisible entity ids
|
||||||
|
case 246:
|
||||||
|
case 248:
|
||||||
case 64:
|
case 64:
|
||||||
case 225:
|
case 225:
|
||||||
case 55:
|
case 55:
|
||||||
@ -79,7 +81,6 @@ void trace::FilterNoPlayer::SetSelf(IClientEntity *self)
|
|||||||
|
|
||||||
bool trace::FilterNoPlayer::ShouldHitEntity(IHandleEntity *handle, int mask)
|
bool trace::FilterNoPlayer::ShouldHitEntity(IHandleEntity *handle, int mask)
|
||||||
{
|
{
|
||||||
return false;
|
|
||||||
IClientEntity *entity;
|
IClientEntity *entity;
|
||||||
ClientClass *clazz;
|
ClientClass *clazz;
|
||||||
|
|
||||||
@ -91,6 +92,7 @@ bool trace::FilterNoPlayer::ShouldHitEntity(IHandleEntity *handle, int mask)
|
|||||||
switch (clazz->m_ClassID)
|
switch (clazz->m_ClassID)
|
||||||
{
|
{
|
||||||
// TODO magic numbers: invisible entity ids
|
// TODO magic numbers: invisible entity ids
|
||||||
|
case
|
||||||
case 64:
|
case 64:
|
||||||
case 225:
|
case 225:
|
||||||
case 55:
|
case 55:
|
||||||
|
Reference in New Issue
Block a user