mirror of
https://github.com/nzp-team/quakec.git
synced 2025-01-19 07:40:51 +00:00
Server: Solve Bowie purchase logic
This commit is contained in:
parent
6b33819c7b
commit
f25b8dbe19
1 changed files with 12 additions and 6 deletions
|
@ -377,12 +377,18 @@ void () buy_weapon_touch =
|
||||||
useprint(other, 3, self.cost2, self.weapon);
|
useprint(other, 3, self.cost2, self.weapon);
|
||||||
if (other.button7)
|
if (other.button7)
|
||||||
{
|
{
|
||||||
other.ach_tracker_coll++;
|
if (other.points < self.cost2) {
|
||||||
entity tempz;
|
centerprint(other, STR_NOTENOUGHPOINTS);
|
||||||
tempz = self;
|
return;
|
||||||
self = other;
|
} else {
|
||||||
Set_W_Frame(15, 30, 0, 0, 0, ReturnWeaponModel, "models/weapons/knife/v_bowie.mdl", false, S_BOTH);
|
addmoney(other, -self.cost2, FALSE);
|
||||||
self.bowie = 1;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue