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

4
dlls/CMakeLists.txt

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

1
dlls/coldice/cluster_grenade.cpp

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

2
dlls/coldice/tnt.cpp

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

2
dlls/skill.h

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

4
dlls/weapons.cpp

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

12
dlls/weapons.h

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

Loading…
Cancel
Save