void AutoAttackTester::Load () { for( PlayerHandler::const_iterator it ( PlayerHandler::begin () ); it != PlayerHandler::end (); ++it ) { ResetPlayerDataStructByIndex ( it.GetIndex () ); } PlayerRunCommandHookListener::RegisterPlayerRunCommandHookListener ( this, SystemPriority::UserCmdHookListener::AutoAttackTester ); }
void EyeAnglesTester::Load () { for( PlayerHandler::const_iterator it ( PlayerHandler::begin () ); it != PlayerHandler::end (); ++it ) { ResetPlayerDataStructByIndex ( it.GetIndex () ); } SourceSdk::InterfacesProxy::GetGameEventManager ()->AddListener ( this, "round_end", true ); PlayerRunCommandHookListener::RegisterPlayerRunCommandHookListener ( this, SystemPriority::UserCmdHookListener::EyeAnglesTester ); }
void AntiSmokeBlocker::Load () { for( PlayerHandler::const_iterator it ( PlayerHandler::begin () ); it != PlayerHandler::end (); ++it ) { ResetPlayerDataStructByIndex ( it.GetIndex () ); } SourceSdk::InterfacesProxy::GetGameEventManager ()->AddListener ( this, "smokegrenade_detonate", true ); SourceSdk::InterfacesProxy::GetGameEventManager ()->AddListener ( this, "round_start", true ); OnTickListener::RegisterOnTickListener ( this ); SetTransmitHookListener::RegisterSetTransmitHookListener ( this, 1 ); }
void ConCommandTester::Load () { for( PlayerHandler::iterator it ( PlayerHandler::begin () ); it != PlayerHandler::end (); ++it ) { ResetPlayerDataStructByIndex ( it.GetIndex () ); } AddCommandInfo ( "ai_test_los", false ); AddCommandInfo ( "changelevel", false, true ); AddCommandInfo ( "cl_fullupdate", false ); AddCommandInfo ( "dbghist_addline", false ); AddCommandInfo ( "dbghist_dump", false ); AddCommandInfo ( "drawcross", false ); AddCommandInfo ( "drawline", false ); AddCommandInfo ( "dump_entity_sizes", false ); AddCommandInfo ( "dump_globals", false ); AddCommandInfo ( "dump_panels", false ); AddCommandInfo ( "dump_terrain", false ); AddCommandInfo ( "dumpcountedstrings", false ); AddCommandInfo ( "dumpentityfactories", false ); AddCommandInfo ( "dumpeventqueue", false ); AddCommandInfo ( "dumpgamestringtable", false ); AddCommandInfo ( "editdemo", false ); AddCommandInfo ( "endround", false ); AddCommandInfo ( "groundlist", false ); AddCommandInfo ( "listdeaths", false ); AddCommandInfo ( "listmodels", false ); AddCommandInfo ( "map_showspawnpoints", false ); AddCommandInfo ( "mem_dump", false ); AddCommandInfo ( "mp_dump_timers", false ); AddCommandInfo ( "npc_ammo_deplete", false ); AddCommandInfo ( "npc_heal", false ); AddCommandInfo ( "npc_speakall", false ); AddCommandInfo ( "npc_thinknow", false ); AddCommandInfo ( "physics_budget", false ); AddCommandInfo ( "physics_debug_entity", false ); AddCommandInfo ( "physics_highlight_active", false ); AddCommandInfo ( "physics_report_active", false ); AddCommandInfo ( "physics_select", false ); AddCommandInfo ( "q_sndrcn", false, true ); AddCommandInfo ( "report_entities", false ); AddCommandInfo ( "report_touchlinks", false ); AddCommandInfo ( "report_simthinklist", false ); AddCommandInfo ( "respawn_entities", false ); AddCommandInfo ( "rr_reloadresponsesystems", false ); AddCommandInfo ( "scene_flush", false ); AddCommandInfo ( "send_me_rcon", false, true ); AddCommandInfo ( "snd_digital_surround", false ); AddCommandInfo ( "snd_restart", false ); AddCommandInfo ( "soundlist", false ); AddCommandInfo ( "soundscape_flush", false ); AddCommandInfo ( "speed.toggle", false, true ); AddCommandInfo ( "sv_benchmark_force_start", false ); AddCommandInfo ( "sv_findsoundname", false ); AddCommandInfo ( "sv_soundemitter_filecheck", false ); AddCommandInfo ( "sv_soundemitter_flush", false ); AddCommandInfo ( "sv_soundscape_printdebuginfo", false ); AddCommandInfo ( "wc_update_entity", false ); AddCommandInfo ( "buy", true ); AddCommandInfo ( "buyammo1", true ); AddCommandInfo ( "buyammo2", true ); AddCommandInfo ( "spec_mode", true ); AddCommandInfo ( "spec_next", true ); AddCommandInfo ( "spec_prev", true ); AddCommandInfo ( "use", true ); AddCommandInfo ( "vmodenable", true ); AddCommandInfo ( "vban", true ); m_mycommands.AddToTail ( SourceSdk::InterfacesProxy::ICvar_FindCommand ( "ent_create" ) ); m_mycommands.AddToTail ( SourceSdk::InterfacesProxy::ICvar_FindCommand ( "ent_fire" ) ); m_mycommands.AddToTail ( SourceSdk::InterfacesProxy::ICvar_FindCommand ( "say" ) ); m_mycommands.AddToTail ( SourceSdk::InterfacesProxy::ICvar_FindCommand ( "say_team" ) ); ConCommandHookListener::RegisterConCommandHookListener ( this ); }