mirror of
https://github.com/nzp-team/quakec.git
synced 2025-01-19 07:40:51 +00:00
SERVER: Set ADS_Offset on weapon swap, not just when deemed worthy
This commit is contained in:
parent
d3b088fcf0
commit
fdbf7989cc
3 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue