mirror of
https://github.com/nzp-team/quakec.git
synced 2025-01-19 07:40:51 +00:00
SERVER: Fix STANDARD progs not having weapon skin update properly
This commit is contained in:
parent
4ac95c5be1
commit
c8e5a75ed9
2 changed files with 4 additions and 7 deletions
|
@ -248,6 +248,8 @@ void Weapon_SwapWeapons(float play_animation)
|
|||
|
||||
#ifndef FTE
|
||||
|
||||
self.weaponskin = self.weapons[0].weapon_skin;
|
||||
self.weapon2skin = self.weapons[0].weapon_skin;
|
||||
self.Weapon_Name = GetWeaponName(self.weapon);
|
||||
self.Flash_Offset = GetWeaponFlash_Offset(self.weapon);
|
||||
self.Flash_Size = GetWeaponFlash_Size(self.weapon);
|
||||
|
@ -280,6 +282,8 @@ void Weapon_SetActiveInSlot(float slot, float play_first_raise)
|
|||
|
||||
#ifndef FTE
|
||||
|
||||
self.weaponskin = self.weapons[0].weapon_skin;
|
||||
self.weapon2skin = self.weapons[0].weapon_skin;
|
||||
self.Weapon_Name = GetWeaponName(self.weapon);
|
||||
self.Flash_Offset = GetWeaponFlash_Offset(self.weapon);
|
||||
self.Flash_Size = GetWeaponFlash_Size(self.weapon);
|
||||
|
|
|
@ -2252,11 +2252,4 @@ void () Weapon_Logic =
|
|||
self.currentammo = self.weapons[0].weapon_reserve;
|
||||
self.currentmag = self.weapons[0].weapon_magazine;
|
||||
self.currentmag2 = self.weapons[0].weapon_magazine_left;
|
||||
self.weaponskin = self.weapons[0].weapon_skin;
|
||||
|
||||
#ifndef FTE
|
||||
|
||||
self.weapon2skin = self.weapons[0].weapon_skin;
|
||||
|
||||
#endif // FTE
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue