Skip to content

Commit

Permalink
force transmit of worm trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Nov 1, 2023
1 parent 2afb854 commit 6117fd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/game/server/triggers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,14 @@ void CTriggerHurt::NavThink( void )
}
}

int CTriggerHurt::UpdateTransmitState()
{
// HACK! Cull the worm trigger against the PVS rather than hiding it due to EF_NODRAW
if ( !V_stricmp( STRING( gpGlobals->mapname ), "rd-reduction2" ) && !V_stricmp( GetEntityNameAsCStr(), "trigger_pitworm_hitbox" ) )
return SetTransmitState( FL_EDICT_PVSCHECK );

return BaseClass::UpdateTransmitState();
}

//-----------------------------------------------------------------------------
// Purpose: Trigger hurt that causes radiation will do a radius check and set
Expand Down
1 change: 1 addition & 0 deletions src/game/server/triggers.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ class CTriggerHurt : public CBaseTrigger
int HurtAllTouchers( float dt );

void NavThink( void );
int UpdateTransmitState() override;

DECLARE_DATADESC();

Expand Down

0 comments on commit 6117fd6

Please sign in to comment.