View Single Post
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-11-2012 , 01:10   Re: Module: Half-Life Weapon Mod (v0.5)
Reply With Quote #24

Quote:
Originally Posted by KORD_12.7 View Post
Because in Half-Life we can add new weapons by adding their info to ItemInfo array:
PHP Code:
#define MAX_WEAPONS            32

ItemInfo CBasePlayerItem::ItemInfoArray[MAX_WEAPONS]; 
HL have only 15 weapons and so we have 16 empty positions in array to store information about our new weapons. In my module i'm using small hack with hlsdk function
PHP Code:
// Precaches the weapon and queues the weapon info for sending to clients
void UTIL_PrecacheOtherWeapon( const char *szClassname 
to insert info about new weapons to infoarray.
Ah ok that's why you distinguish CS from HL. I was thinking that just you didnt care about CS in favor of HL.
joaquimandrade is offline