Browse Source

Define new weapons.

coldice
Night Owl 8 years ago
parent
commit
da064cf60c
  1. 9
      dlls/weapons.cpp
  2. 3
      dlls/weapons.h

9
dlls/weapons.cpp

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

3
dlls/weapons.h

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

Loading…
Cancel
Save