SERVER: Reset player zoom state when drinking Perk-A-Cola

This commit is contained in:
Steam Deck User 2023-03-09 15:01:29 -05:00
parent caaca9b4ae
commit 73dc723a70

View file

@ -135,8 +135,11 @@ void DrinkPerk(float perk) {
entity tempe = self; entity tempe = self;
self = other; self = other;
if (self.sprinting) if (self.sprinting) {
self.sprinting = 0; self.sprinting = 0;
self.zoom = 0;
}
self.maxspeed *= GetWeaponWalkSpeed(self.perks, self.weapon); self.maxspeed *= GetWeaponWalkSpeed(self.perks, self.weapon);