SERVER: Fix Pack-A-Punch not showing weapon name

This commit is contained in:
cypress 2023-09-02 11:44:15 -04:00
parent 19f176ebd1
commit f0e1a9c4f4

View file

@ -1243,7 +1243,14 @@ void touch_pap() {
sound(other, 0, "sounds/misc/denybuy.wav", 1, 1); sound(other, 0, "sounds/misc/denybuy.wav", 1, 1);
} }
} else if (self.papState == 2) { } else if (self.papState == 2) {
useprint (other, 7, 0, 0);
#ifndef FTE
other.Weapon_Name_Touch = GetWeaponName(EqualPapWeapon(self.weapon));
#endif // FTE
useprint (other, 7, 0, EqualPapWeapon(self.weapon));
if (other.button7) { if (other.button7) {
// Back-up current weapon into second slot, it's getting replaced. // Back-up current weapon into second slot, it's getting replaced.