nuclide/Source/gs-entbase/server/multisource.cpp
Marco Hladik 5fa7002844 - Added everything needed for networked sprays
- Switched to custom pmove code (early, WIP) instead of the engine one, again
- Made nightvision compatible with splitscreen modes
- Player animation fixes
- Prediction fixes
- Fixed radius damage, so grenades and bombs should apply proper damage now
- Added func_wall_toggle
- Small entity fixes
2019-01-03 02:26:39 +01:00

44 lines
853 B
C++

/***
*
* Copyright (c) 2016-2019 Marco 'eukara' Hladik. All rights reserved.
*
* See the file LICENSE attached with the sources for usage details.
*
****/
class multisource : CBaseTrigger
{
void() multisource;
virtual int() GetValue;
virtual void() Trigger;
};
int multisource :: GetValue ( void )
{
int iWillTrigger = TRUE;
for ( entity eTemp = world; ( eTemp = find( eTemp, CBaseTrigger::m_strTarget, m_strTargetName ) ); ) {
CBaseTrigger tTemp = (CBaseTrigger) eTemp;
if ( tTemp.GetValue() == FALSE ) {
iWillTrigger = FALSE;
break;
}
}
return iWillTrigger;
}
void multisource :: Trigger ( void )
{
if ( GetValue() == FALSE ) {
return;
}
//dprint( sprintf( "multisource: Trigger of %s\n", m_strTarget ) );
CBaseTrigger::UseTargets();
}
void multisource :: multisource ( void )
{
CBaseTrigger::CBaseTrigger();
}