mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-13 00:24:33 +00:00
o Revert range change on +use for hives as it caused issues when using other items.
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@429 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
55ee213145
commit
53fbfdf0aa
1 changed files with 19 additions and 23 deletions
|
@ -92,7 +92,6 @@
|
|||
#include "game.h"
|
||||
#include "common/hltv.h"
|
||||
#include "mod/AvHNetworkMessages.h"
|
||||
#include "util/MathUtil.h"
|
||||
|
||||
// #define DUCKFIX
|
||||
|
||||
|
@ -1779,11 +1778,9 @@ void CBasePlayer::PlayerUse ( void )
|
|||
|
||||
UTIL_MakeVectors ( pev->v_angle );// so we know which way we are facing
|
||||
|
||||
while ((pObject = UTIL_FindEntityInSphere( pObject, pev->origin, PLAYER_SEARCH_RADIUS*2 )) != NULL)
|
||||
while ((pObject = UTIL_FindEntityInSphere( pObject, pev->origin, PLAYER_SEARCH_RADIUS )) != NULL)
|
||||
{
|
||||
float distance=VectorDistance(pObject->pev->origin, pev->origin);
|
||||
|
||||
if ( distance < PLAYER_SEARCH_RADIUS || pObject->pev->iuser3 == AVH_USER3_HIVE ) {
|
||||
if (pObject->ObjectCaps() & (FCAP_IMPULSE_USE | FCAP_CONTINUOUS_USE | FCAP_ONOFF_USE))
|
||||
{
|
||||
// !!!PERFORMANCE- should this check be done on a per case basis AFTER we've determined that
|
||||
|
@ -1805,7 +1802,6 @@ void CBasePlayer::PlayerUse ( void )
|
|||
// ALERT( at_console, "%s : %f\n", STRING( pObject->pev->classname ), flDot );
|
||||
}
|
||||
}
|
||||
}
|
||||
pObject = pClosest;
|
||||
|
||||
// Found an object
|
||||
|
|
Loading…
Reference in a new issue