mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Initial Mapbase commit (squashed from mapbase-beta)
This commit is contained in:
@@ -30,6 +30,10 @@ public:
|
||||
void InputTurnOff(inputdata_t &inputdata);
|
||||
void InputToggle(inputdata_t &inputdata);
|
||||
void InputHurt(inputdata_t &inputdata);
|
||||
|
||||
#ifdef MAPBASE
|
||||
bool KeyValue( const char *szKeyName, const char *szValue );
|
||||
#endif
|
||||
|
||||
DECLARE_DATADESC();
|
||||
|
||||
@@ -180,3 +184,21 @@ void CPointHurt::InputHurt( inputdata_t &data )
|
||||
HurtThink();
|
||||
}
|
||||
|
||||
#ifdef MAPBASE
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//-----------------------------------------------------------------------------
|
||||
bool CPointHurt::KeyValue( const char *szKeyName, const char *szValue )
|
||||
{
|
||||
// Additional OR flags
|
||||
if (FStrEq( szKeyName, "damageor" ) || FStrEq( szKeyName, "damagepresets" ))
|
||||
{
|
||||
m_bitsDamageType |= atoi(szValue);
|
||||
}
|
||||
else
|
||||
return BaseClass::KeyValue( szKeyName, szValue );
|
||||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user