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:
@@ -607,6 +607,22 @@ void CGameRules::EndGameFrame( void )
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef MAPBASE
|
||||
void CGameRules::OnSkillLevelChanged( int iNewLevel )
|
||||
{
|
||||
variant_t varNewLevel;
|
||||
varNewLevel.SetInt(iNewLevel);
|
||||
|
||||
// Iterate through all logic_skill entities and fire them
|
||||
CBaseEntity *pEntity = gEntList.FindEntityByClassname(NULL, "logic_skill");
|
||||
while (pEntity)
|
||||
{
|
||||
pEntity->AcceptInput("SkillLevelChanged", UTIL_GetLocalPlayer(), NULL, varNewLevel, 0);
|
||||
pEntity = gEntList.FindEntityByClassname(pEntity, "logic_skill");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// trace line rules
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user