Browse Source

Use satchel and handgrenade again.

coldice
Night Owl 8 years ago
parent
commit
9a8c1dd2bf
  1. 11
      cl_dll/hl/hl_weapons.cpp
  2. 4
      dlls/CMakeLists.txt
  3. 1
      dlls/coldice/cluster_grenade.cpp
  4. 2
      dlls/coldice/tnt.cpp
  5. 2
      dlls/skill.h
  6. 4
      dlls/weapons.cpp
  7. 12
      dlls/weapons.h

11
cl_dll/hl/hl_weapons.cpp

@ -63,10 +63,9 @@ CShotgun g_Shotgun; @@ -63,10 +63,9 @@ CShotgun g_Shotgun;
CRpg g_Rpg;
CGauss g_Gauss;
CEgon g_Egon;
CHgun g_HGun;
CHgun g_HGun;*/
CHandGrenade g_HandGren;
CSatchel g_Satchel;
*/
CTripmine g_Tripmine;
//CSqueak g_Snark;
@ -634,9 +633,9 @@ void HUD_InitClientWeapons( void ) @@ -634,9 +633,9 @@ void HUD_InitClientWeapons( void )
HUD_PrepEntity( &g_Rpg, &player );
HUD_PrepEntity( &g_Gauss, &player );
HUD_PrepEntity( &g_Egon, &player );
HUD_PrepEntity( &g_HGun, &player );
HUD_PrepEntity( &g_HGun, &player );*/
HUD_PrepEntity( &g_HandGren, &player );
HUD_PrepEntity( &g_Satchel, &player );*/
HUD_PrepEntity( &g_Satchel, &player );
HUD_PrepEntity( &g_Tripmine, &player );
//HUD_PrepEntity( &g_Snark, &player );
}
@ -731,13 +730,13 @@ void HUD_WeaponsPostThink( local_state_s *from, local_state_s *to, usercmd_t *cm @@ -731,13 +730,13 @@ void HUD_WeaponsPostThink( local_state_s *from, local_state_s *to, usercmd_t *cm
break;
case WEAPON_HORNETGUN:
pWeapon = &g_HGun;
break;
break;*/
case WEAPON_HANDGRENADE:
pWeapon = &g_HandGren;
break;
case WEAPON_SATCHEL:
pWeapon = &g_Satchel;
break;*/
break;
case WEAPON_TRIPMINE:
pWeapon = &g_Tripmine;
break;

4
dlls/CMakeLists.txt

@ -70,7 +70,7 @@ set (SVDLL_SOURCES @@ -70,7 +70,7 @@ set (SVDLL_SOURCES
h_cine.cpp
h_cycler.cpp
h_export.cpp
# handgrenade.cpp
handgrenade.cpp
hassassin.cpp
headcrab.cpp
healthkit.cpp
@ -101,7 +101,7 @@ set (SVDLL_SOURCES @@ -101,7 +101,7 @@ set (SVDLL_SOURCES
rat.cpp
roach.cpp
# rpg.cpp
# satchel.cpp
satchel.cpp
schedule.cpp
scientist.cpp
scripted.cpp

1
dlls/coldice/cluster_grenade.cpp

@ -54,7 +54,6 @@ public: @@ -54,7 +54,6 @@ public:
float m_flReleaseThrow;
};
LINK_ENTITY_TO_CLASS( weapon_clustergrenade, CClusterGrenade );
LINK_ENTITY_TO_CLASS( weapon_handgrenade, CClusterGrenade );
void CClusterGrenade::Spawn( )
{

2
dlls/coldice/tnt.cpp

@ -44,8 +44,6 @@ public: @@ -44,8 +44,6 @@ public:
int m_iExplode;
};
LINK_ENTITY_TO_CLASS( weapon_tnt, CKamikaze );
LINK_ENTITY_TO_CLASS( weapon_satchel, CKamikaze );
void CKamikaze::Spawn( )
{

2
dlls/skill.h

@ -103,6 +103,8 @@ struct skilldata_t @@ -103,6 +103,8 @@ struct skilldata_t
float plrDmgRocket;
float plrDmgRailgun;
float plrDmgPulse;
float plrDmgHandGrenade;
float plrDmgSatchel;
float plrDmgTripmine;
// weapons shared by monsters

4
dlls/weapons.cpp

@ -1679,10 +1679,10 @@ TYPEDESCRIPTION CEgon::m_SaveData[] = @@ -1679,10 +1679,10 @@ TYPEDESCRIPTION CEgon::m_SaveData[] =
};
IMPLEMENT_SAVERESTORE( CEgon, CBasePlayerWeapon )
*/
TYPEDESCRIPTION CSatchel::m_SaveData[] =
{
DEFINE_FIELD( CSatchel, m_chargeReady, FIELD_INTEGER ),
};
IMPLEMENT_SAVERESTORE( CSatchel, CBasePlayerWeapon )*/
IMPLEMENT_SAVERESTORE( CSatchel, CBasePlayerWeapon )

12
dlls/weapons.h

@ -132,6 +132,8 @@ public: @@ -132,6 +132,8 @@ public:
#define CLUSTERGRENADE_WEIGHT 24
#define TNT_WEIGHT 30
#define NUKE_WEIGHT 40
#define HANDGRENADE_WEIGHT 5
#define SATCHEL_WEIGHT -10
// weapon clip/carry ammo capacities
#define PPK_MAX_CARRY 64
@ -155,6 +157,8 @@ public: @@ -155,6 +157,8 @@ public:
#define TRIPMINE_MAX_CARRY 2
#define TNT_MAX_CARRY 1
#define NUKE_MAX_CARRY 2
#define HANDGRENADE_MAX_CARRY 10
#define SATCHEL_MAX_CARRY 5
// the maximum amount of ammo each weapon's clip can hold
#define WEAPON_NOCLIP -1
@ -174,6 +178,8 @@ public: @@ -174,6 +178,8 @@ public:
#define GRENADEL_MAX_CLIP 6
#define ROCKETL_MAX_CLIP 1
#define NUKE_MAX_CLIP 1
#define HANDGRENADE_MAX_CLIP WEAPON_NOCLIP
#define SATCHEL_MAX_CLIP WEAPON_NOCLIP
// the default amount of ammo that comes with each gun when it spawns
#define PPK_DEFAULT_GIVE 72
@ -196,6 +202,8 @@ public: @@ -196,6 +202,8 @@ public:
#define TRIPMINE_DEFAULT_GIVE 2
#define TNT_DEFAULT_GIVE 1
#define NUKE_DEFAULT_GIVE 3
#define HANDGRENADE_DEFAULT_GIVE 5
#define SATCHEL_DEFAULT_GIVE 1
// The amount of ammo given to a player by an ammo item.
#define AMMO_PPKCLIP_GIVE 24
@ -914,7 +922,7 @@ public: @@ -914,7 +922,7 @@ public:
private:
unsigned short m_usHornetFire;
};
*/
class CHandGrenade : public CBasePlayerWeapon
{
public:
@ -972,7 +980,7 @@ public: @@ -972,7 +980,7 @@ public:
#endif
}
};
*/
class CTripmine : public CBasePlayerWeapon
{
public:

Loading…
Cancel
Save