mirror of
https://github.com/ENSL/NS.git
synced 2025-03-13 06:03:04 +00:00
o healing spray now works on gorges
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@374 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
0c2c80ad61
commit
c9f916dc78
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -169,7 +169,7 @@ void AvHHealingSpray::FireProjectiles(void)
|
||||||
// if(theCurrentEntity != this->m_pPlayer)
|
// if(theCurrentEntity != this->m_pPlayer)
|
||||||
// {
|
// {
|
||||||
// If entity is in view cone, and within range
|
// If entity is in view cone, and within range
|
||||||
if(this->m_pPlayer->FInViewCone(&theCurrentEntity->pev->origin))
|
if(theCurrentEntity == this->m_pPlayer || this->m_pPlayer->FInViewCone(&theCurrentEntity->pev->origin) )
|
||||||
{
|
{
|
||||||
// UTIL_FindEntityInSphere doesn't seem to take height into account. Make sure the entity is within range.
|
// UTIL_FindEntityInSphere doesn't seem to take height into account. Make sure the entity is within range.
|
||||||
float theMaxEntitySize = max(Length(theCurrentEntity->pev->mins), Length(theCurrentEntity->pev->maxs));
|
float theMaxEntitySize = max(Length(theCurrentEntity->pev->mins), Length(theCurrentEntity->pev->maxs));
|
||||||
|
|
Loading…
Reference in a new issue