//////////////////////////ON GAME EVENTS function OnGameEvent_player_spawn(params) { local player = GetPlayerFromUserID(params.userid); local playerScope = player.GetScriptScope() local wep = PopExtUtil.GetItemInSlot(player, 2) local getwepID = NetProps.GetPropInt(wep, "m_AttributeManager.m_Item.m_iItemDefinitionIndex") //the scripts override each other for some reason, call both here if (player != null && player.IsBotOfType(TF_BOT_TYPE)) { EntFireByHandle(player, "CallScriptFunction", "TeleEnable", 0.1, null, null); // need to keep at 0.1 or else bots will charge first before being given the no charge cond } if (player != null && player.IsBotOfType(TF_BOT_TYPE)) { EntFireByHandle(player, "CallScriptFunction", "ShieldEnable", 0.1, null, null); } if (player != null && player.IsBotOfType(TF_BOT_TYPE)) { EntFireByHandle(player, "CallScriptFunction", "BaseballEnable", 0.1, null, null); } player.SetModelSimple("models/bots/demo/marauder.mdl") } __CollectGameEventCallbacks(this);