SERVER: Fix STANDARD progs not having weapon skin update properly

This commit is contained in:
MotoLegacy 2023-11-05 09:56:29 -05:00
parent 4ac95c5be1
commit c8e5a75ed9
2 changed files with 4 additions and 7 deletions

View file

@ -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);

View file

@ -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
}