mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-05 10:10:42 +03:00
Merge pull request #237 from AgentAgrimar/master
Assign Held Physcannon Entity to Pass into Commander Goal Trace
This commit is contained in:
commit
8280197df3
@ -1814,7 +1814,7 @@ bool CHL2_Player::CommanderFindGoal( commandgoal_t *pGoal )
|
|||||||
// Get either our +USE entity or the gravity gun entity
|
// Get either our +USE entity or the gravity gun entity
|
||||||
CBaseEntity *pHeldEntity = GetPlayerHeldEntity(this);
|
CBaseEntity *pHeldEntity = GetPlayerHeldEntity(this);
|
||||||
if ( !pHeldEntity )
|
if ( !pHeldEntity )
|
||||||
PhysCannonGetHeldEntity( GetActiveWeapon() );
|
pHeldEntity = PhysCannonGetHeldEntity( GetActiveWeapon() );
|
||||||
|
|
||||||
CTraceFilterSkipTwoEntities filter( this, pHeldEntity, COLLISION_GROUP_INTERACTIVE_DEBRIS );
|
CTraceFilterSkipTwoEntities filter( this, pHeldEntity, COLLISION_GROUP_INTERACTIVE_DEBRIS );
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user