Define new weapons.

This commit is contained in:
Night Owl 2017-06-20 04:09:23 +05:00
parent ce3de0fc0f
commit da064cf60c
2 changed files with 8 additions and 4 deletions

View File

@ -338,9 +338,6 @@ void W_Precache( void )
// tripmine
UTIL_PrecacheOtherWeapon( "weapon_tripmine" );
// hand grenade
UTIL_PrecacheOtherWeapon("weapon_handgrenade");
// squeak grenade
UTIL_PrecacheOtherWeapon( "weapon_snark" );
@ -404,6 +401,9 @@ void W_Precache( void )
UTIL_PrecacheOtherWeapon( "weapon_rifle" );
UTIL_PrecacheOther( "ammo_rifleclip" );
// H&K G36
UTIL_PrecacheOtherWeapon( "weapon_g36" );
// railgun/hallucegon
UTIL_PrecacheOtherWeapon( "weapon_railgun" );
UTIL_PrecacheOther( "ammo_railslug" );
@ -439,6 +439,9 @@ void W_Precache( void )
UTIL_PrecacheOtherWeapon( "weapon_nuke" );
UTIL_PrecacheOther( "ammo_nukeclip" );
// hand grenade
UTIL_PrecacheOtherWeapon( "weapon_handgrenade" );
// cluster grenade
UTIL_PrecacheOtherWeapon( "weapon_clustergrenade" );

View File

@ -97,7 +97,8 @@ public:
#define WEAPON_DOUBLEMAC 25
#define WEAPON_NAILGUN 26
#define WEAPON_SATCHEL 27
#define WEAPON_UNKNOWN 28
#define WEAPON_HANDGRENADE 28
#define WEAPON_HKG36 29
#define WEAPON_ALLWEAPONS (~(1<<WEAPON_SUIT))