Skip to content

Commit

Permalink
comeback item_security, item_suit for custom mods/maps
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed May 22, 2018
1 parent 0022272 commit 8c2dd77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
9 changes: 0 additions & 9 deletions regamedll/dlls/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -90,7 +88,6 @@ void CWorldItem::Spawn()

REMOVE_ENTITY(edict());
}
#endif

void CItem::Spawn()
{
Expand Down Expand Up @@ -165,8 +162,6 @@ void CItem::Materialize()
SetTouch(&CItem::ItemTouch);
}

// NOTE: useless thing
#ifndef REGAMEDLL_FIXES
void CItemSuit::Spawn()
{
Precache();
Expand Down Expand Up @@ -194,7 +189,6 @@ BOOL CItemSuit::MyTouch(CBasePlayer *pPlayer)
}

LINK_ENTITY_TO_CLASS(item_suit, CItemSuit, CCSItemSuit)
#endif

void CItemBattery::Spawn()
{
Expand Down Expand Up @@ -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();
Expand All @@ -306,7 +298,6 @@ BOOL CItemSecurity::MyTouch(CBasePlayer *pPlayer)
}

LINK_ENTITY_TO_CLASS(item_security, CItemSecurity, CCSItemSecurity)
#endif

void CItemLongJump::Spawn()
{
Expand Down
4 changes: 0 additions & 4 deletions regamedll/dlls/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8c2dd77

Please sign in to comment.