Skip to content

Commit

Permalink
Server: Solve Bowie purchase logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed May 18, 2022
1 parent 6b33819 commit f25b8db
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions source/server/entities/map_entities.qc
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,18 @@ void () buy_weapon_touch =
useprint(other, 3, self.cost2, self.weapon);
if (other.button7)
{
other.ach_tracker_coll++;
entity tempz;
tempz = self;
self = other;
Set_W_Frame(15, 30, 0, 0, 0, ReturnWeaponModel, "models/weapons/knife/v_bowie.mdl", false, S_BOTH);
self.bowie = 1;
if (other.points < self.cost2) {
centerprint(other, STR_NOTENOUGHPOINTS);
return;
} else {
addmoney(other, -self.cost2, FALSE);
other.ach_tracker_coll++;
entity tempz;
tempz = self;
self = other;
Set_W_Frame(15, 30, 0, 0, 0, ReturnWeaponModel, "models/weapons/knife/v_bowie.mdl", false, S_BOTH);
self.bowie = 1;
}
}
}
}
Expand Down

0 comments on commit f25b8db

Please sign in to comment.