|
|
@ -281,11 +281,17 @@ class CMP5AmmoClip : public CBasePlayerAmmo |
|
|
|
void Spawn( void ) |
|
|
|
void Spawn( void ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Precache(); |
|
|
|
Precache(); |
|
|
|
|
|
|
|
if( FClassnameIs( pev, "weapon_bloodly_9mmAR" ) ) |
|
|
|
|
|
|
|
SET_MODEL( ENT( pev ), "models/w_bloodly_9mmAR.mdl" ); |
|
|
|
|
|
|
|
else |
|
|
|
SET_MODEL( ENT( pev ), "models/w_9mmARclip.mdl" ); |
|
|
|
SET_MODEL( ENT( pev ), "models/w_9mmARclip.mdl" ); |
|
|
|
CBasePlayerAmmo::Spawn(); |
|
|
|
CBasePlayerAmmo::Spawn(); |
|
|
|
} |
|
|
|
} |
|
|
|
void Precache( void ) |
|
|
|
void Precache( void ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if( FClassnameIs( pev, "weapon_bloodly_9mmAR" ) ) |
|
|
|
|
|
|
|
PRECACHE_MODEL( "models/w_bloodly_9mmAR.mdl" ); |
|
|
|
|
|
|
|
else |
|
|
|
PRECACHE_MODEL( "models/w_9mmARclip.mdl" ); |
|
|
|
PRECACHE_MODEL( "models/w_9mmARclip.mdl" ); |
|
|
|
PRECACHE_SOUND( "items/9mmclip1.wav" ); |
|
|
|
PRECACHE_SOUND( "items/9mmclip1.wav" ); |
|
|
|
} |
|
|
|
} |
|
|
@ -300,6 +306,7 @@ class CMP5AmmoClip : public CBasePlayerAmmo |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LINK_ENTITY_TO_CLASS( weapon_bloodly_9mmAR, CMP5AmmoClip ) |
|
|
|
LINK_ENTITY_TO_CLASS( ammo_mp5clip, CMP5AmmoClip ) |
|
|
|
LINK_ENTITY_TO_CLASS( ammo_mp5clip, CMP5AmmoClip ) |
|
|
|
LINK_ENTITY_TO_CLASS( ammo_9mmAR, CMP5AmmoClip ) |
|
|
|
LINK_ENTITY_TO_CLASS( ammo_9mmAR, CMP5AmmoClip ) |
|
|
|
|
|
|
|
|
|
|
|