Skip to content

Commit

Permalink
don't precache incendiary and stun grenades on client
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Aug 2, 2024
1 parent 76da497 commit 77ffb5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ END_NETWORK_TABLE()
BEGIN_PREDICTION_DATA( CASW_Weapon_Incendiary_Grenades )
END_PREDICTION_DATA()

LINK_ENTITY_TO_CLASS( asw_weapon_Incendiary_grenades, CASW_Weapon_Incendiary_Grenades );
PRECACHE_WEAPON_REGISTER( asw_weapon_Incendiary_grenades );
LINK_ENTITY_TO_CLASS( asw_weapon_incendiary_grenades, CASW_Weapon_Incendiary_Grenades );
PRECACHE_WEAPON_REGISTER( asw_weapon_incendiary_grenades );

#ifndef CLIENT_DLL
BEGIN_DATADESC( CASW_Weapon_Incendiary_Grenades )
Expand All @@ -39,7 +39,9 @@ void CASW_Weapon_Incendiary_Grenades::Precache()
{
BaseClass::Precache();

#ifndef CLIENT_DLL
UTIL_PrecacheOther( "asw_grenade_vindicator" );
#endif
}

void CASW_Weapon_Incendiary_Grenades::DelayedAttack( void )
Expand Down
2 changes: 2 additions & 0 deletions src/game/shared/swarm/asw_weapon_stun_grenades_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ void CASW_Weapon_Stun_Grenades::Precache()
{
BaseClass::Precache();

#ifndef CLIENT_DLL
UTIL_PrecacheOther( "asw_grenade_prifle" );
#endif
}

void CASW_Weapon_Stun_Grenades::DelayedAttack( void )
Expand Down

0 comments on commit 77ffb5a

Please sign in to comment.