diff --git a/.gitignore b/.gitignore index 7df02a2..d8f0fb8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ scripting/L4D2Testing.sp plugins/L4D2Testing.smx scripting/cancer.sp plugins/sm_give.smx +plugins/l4d2_stats_recorder.smx +scripting/l4d2_stats_recorder.sp \ No newline at end of file diff --git a/plugins/L4D2Tools.smx b/plugins/L4D2Tools.smx index eeeee51..75304d7 100644 Binary files a/plugins/L4D2Tools.smx and b/plugins/L4D2Tools.smx differ diff --git a/scripting/L4D2Tools.sp b/scripting/L4D2Tools.sp index e2c4f7b..7cb8923 100644 --- a/scripting/L4D2Tools.sp +++ b/scripting/L4D2Tools.sp @@ -112,8 +112,6 @@ public Action Event_BotPlayerSwap(Event event, const char[] name, bool dontBroad //Player replaced a bot int client = GetClientOfUserId(event.GetInt("player")); if(botDropMeleeWeapon[bot] > 0) { - //TODO: If entity (weapon) not valid (aka level switched), give them a new one no matter what - //Also possibly prevent players from picking up any dropped weapons (no duplicates then ^) int meleeOwnerEnt = GetEntPropEnt(botDropMeleeWeapon[bot], Prop_Send, "m_hOwnerEntity"); if(meleeOwnerEnt == -1) { EquipPlayerWeapon(client, botDropMeleeWeapon[bot]); @@ -125,7 +123,7 @@ public Action Event_BotPlayerSwap(Event event, const char[] name, bool dontBroad SDKUnhook(bot, SDKHook_WeaponDrop, Event_OnWeaponDrop); } } - +//TODO: Might have to actually check for the bot they control, or possibly the bot will call this itself. public void OnClientDisconnect(int client) { if(botDropMeleeWeapon[client] > -1) { float pos[3];