Skip to content

Commit

Permalink
Merge pull request #1 from FlaminSarge/patch-1
Browse files Browse the repository at this point in the history
Stub accountid setter, causes issues with bot weapons
  • Loading branch information
nosoop committed Dec 29, 2017
2 parents e8f819c + 57c0097 commit 2cb796b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripting/tf_weapon_pickup_responses.sp
Expand Up @@ -51,9 +51,10 @@ public void OnClientPutInServer(int client) {
}

public void OnWeaponEquipPost(int client, int weapon) {
if (IsFakeClient(client)) {
SetEntProp(weapon, Prop_Send, "m_iAccountID", 0);
}
//This breaks first bot weapon equip, so don't do it
// if (IsFakeClient(client)) {
// SetEntProp(weapon, Prop_Send, "m_iAccountID", 0);
// }

int weaponAccountID = GetEntProp(weapon, Prop_Send, "m_iAccountID");

Expand Down

0 comments on commit 2cb796b

Please sign in to comment.