comeback item_security, item_suit for custom mods/maps

This commit is contained in:
s1lent 2018-05-22 16:44:53 +07:00
parent 0022272244
commit 8c2dd77220
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C
2 changed files with 0 additions and 13 deletions

View File

@ -42,8 +42,6 @@ ItemInfo itemInfo[] = {
DEFINE_ITEMINFO(ITEM_BATTERY, "item_battery"),
};
// NOTE: useless thing
#ifndef REGAMEDLL_FIXES
LINK_ENTITY_TO_CLASS(world_items, CWorldItem, CCSWorldItem)
void CWorldItem::KeyValue(KeyValueData *pkvd)
@ -90,7 +88,6 @@ void CWorldItem::Spawn()
REMOVE_ENTITY(edict());
}
#endif
void CItem::Spawn()
{
@ -165,8 +162,6 @@ void CItem::Materialize()
SetTouch(&CItem::ItemTouch);
}
// NOTE: useless thing
#ifndef REGAMEDLL_FIXES
void CItemSuit::Spawn()
{
Precache();
@ -194,7 +189,6 @@ BOOL CItemSuit::MyTouch(CBasePlayer *pPlayer)
}
LINK_ENTITY_TO_CLASS(item_suit, CItemSuit, CCSItemSuit)
#endif
void CItemBattery::Spawn()
{
@ -285,8 +279,6 @@ BOOL CItemAntidote::MyTouch(CBasePlayer *pPlayer)
LINK_ENTITY_TO_CLASS(item_antidote, CItemAntidote, CCSItemAntidote)
// NOTE: useless thing
#ifndef REGAMEDLL_FIXES
void CItemSecurity::Spawn()
{
Precache();
@ -306,7 +298,6 @@ BOOL CItemSecurity::MyTouch(CBasePlayer *pPlayer)
}
LINK_ENTITY_TO_CLASS(item_security, CItemSecurity, CCSItemSecurity)
#endif
void CItemLongJump::Spawn()
{

View File

@ -270,14 +270,10 @@ void WeaponsPrecache()
// custom items...
// common world objects
#ifndef REGAMEDLL_FIXES
UTIL_PrecacheOther("item_suit");
#endif
UTIL_PrecacheOther("item_battery");
UTIL_PrecacheOther("item_antidote");
#ifndef REGAMEDLL_FIXES
UTIL_PrecacheOther("item_security");
#endif
UTIL_PrecacheOther("item_longjump");
UTIL_PrecacheOther("item_kevlar");
UTIL_PrecacheOther("item_assaultsuit");