SERVER: Set ADS_Offset on weapon swap, not just when deemed worthy

This commit is contained in:
cypress 2023-12-05 13:00:34 -05:00
parent d3b088fcf0
commit fdbf7989cc
3 changed files with 3 additions and 6 deletions

View file

@ -845,6 +845,7 @@ void() PlayerSpawn =
self.Weapon_Name = GetWeaponName(self.weapon);
self.Flash_Offset = GetWeaponFlash_Offset(self.weapon);
self.Flash_Size = GetWeaponFlash_Size(self.weapon);
self.ADS_Offset = GetWeaponADSOfs_PSP(self.weapon);
#endif // FTE

View file

@ -253,6 +253,7 @@ void Weapon_SwapWeapons(float play_animation)
self.Weapon_Name = GetWeaponName(self.weapon);
self.Flash_Offset = GetWeaponFlash_Offset(self.weapon);
self.Flash_Size = GetWeaponFlash_Size(self.weapon);
self.ADS_Offset = GetWeaponADSOfs_PSP(self.weapon);
#endif // FTE
@ -287,6 +288,7 @@ void Weapon_SetActiveInSlot(float slot, float play_first_raise)
self.Weapon_Name = GetWeaponName(self.weapon);
self.Flash_Offset = GetWeaponFlash_Offset(self.weapon);
self.Flash_Size = GetWeaponFlash_Size(self.weapon);
self.ADS_Offset = GetWeaponADSOfs_PSP(self.weapon);
#endif // FTE

View file

@ -134,12 +134,6 @@ void() W_AimIn =
} else if (self.zoom) {
return;
}
#ifndef FTE
self.ADS_Offset = GetWeaponADSOfs_PSP(self.weapon);
#endif // FTE
if (self.weapon == W_KAR_SCOPE || self.weapon == W_PTRS ||
self.weapon == W_HEADCRACKER || self.weapon == W_PENETRATOR) {