Browse Source

Fix spore ammo name

opforfixed
Roman Chistokhodov 7 years ago
parent
commit
d89bd8e64a
  1. 4
      dlls/gearbox/sporelauncher.cpp
  2. 2
      dlls/player.cpp

4
dlls/gearbox/sporelauncher.cpp

@ -92,7 +92,7 @@ int CSporelauncher::AddToPlayer(CBasePlayer *pPlayer)
int CSporelauncher::GetItemInfo(ItemInfo *p) int CSporelauncher::GetItemInfo(ItemInfo *p)
{ {
p->pszName = STRING(pev->classname); p->pszName = STRING(pev->classname);
p->pszAmmo1 = "spores"; p->pszAmmo1 = "Spores";
p->iMaxAmmo1 = SPORE_MAX_CARRY; p->iMaxAmmo1 = SPORE_MAX_CARRY;
p->pszAmmo2 = NULL; p->pszAmmo2 = NULL;
p->iMaxAmmo2 = -1; p->iMaxAmmo2 = -1;
@ -407,4 +407,4 @@ class CSporeAmmo : public CBasePlayerAmmo
} }
}; };
LINK_ENTITY_TO_CLASS(ammo_spore, CSporeAmmo); LINK_ENTITY_TO_CLASS(ammo_spore, CSporeAmmo);

2
dlls/player.cpp

@ -1132,7 +1132,7 @@ void CBasePlayer::TabulateAmmo()
ammo_556 = AmmoInventory( GetAmmoIndex( "556" ) ); ammo_556 = AmmoInventory( GetAmmoIndex( "556" ) );
ammo_762 = AmmoInventory( GetAmmoIndex( "762" ) ); ammo_762 = AmmoInventory( GetAmmoIndex( "762" ) );
ammo_shocks = AmmoInventory( GetAmmoIndex( "Shocks" ) ); ammo_shocks = AmmoInventory( GetAmmoIndex( "Shocks" ) );
ammo_spores = AmmoInventory( GetAmmoIndex( "Spore" ) ); ammo_spores = AmmoInventory( GetAmmoIndex( "Spores" ) );
} }
/* /*

Loading…
Cancel
Save