summaryrefslogtreecommitdiff
path: root/game/shared/hl1/hl1mp_weapon_rpg.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/hl1/hl1mp_weapon_rpg.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/hl1/hl1mp_weapon_rpg.h')
-rw-r--r--game/shared/hl1/hl1mp_weapon_rpg.h135
1 files changed, 135 insertions, 0 deletions
diff --git a/game/shared/hl1/hl1mp_weapon_rpg.h b/game/shared/hl1/hl1mp_weapon_rpg.h
new file mode 100644
index 0000000..8e57e03
--- /dev/null
+++ b/game/shared/hl1/hl1mp_weapon_rpg.h
@@ -0,0 +1,135 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: RPG
+//
+//=============================================================================//
+
+
+#ifndef WEAPON_RPG_H
+#define WEAPON_RPG_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include "hl1mp_basecombatweapon_shared.h"
+
+#ifdef CLIENT_DLL
+#include "iviewrender_beams.h"
+#include "c_smoke_trail.h"
+#endif
+
+#ifndef CLIENT_DLL
+#include "smoke_trail.h"
+#include "Sprite.h"
+#include "npcevent.h"
+#include "beam_shared.h"
+#include "hl1_basegrenade.h"
+
+class CWeaponRPG;
+
+//###########################################################################
+// CRpgRocket
+//###########################################################################
+class CRpgRocket : public CHL1BaseGrenade
+{
+ DECLARE_CLASS( CRpgRocket, CHL1BaseGrenade );
+ DECLARE_SERVERCLASS();
+
+public:
+ CRpgRocket();
+
+ Class_T Classify( void ) { return CLASS_NONE; }
+
+ void Spawn( void );
+ void Precache( void );
+ void RocketTouch( CBaseEntity *pOther );
+ void IgniteThink( void );
+ void SeekThink( void );
+
+ virtual void Detonate( void );
+
+ static CRpgRocket *Create( const Vector &vecOrigin, const QAngle &angAngles, CBasePlayer *pentOwner = NULL );
+
+ CHandle<CWeaponRPG> m_hOwner;
+ float m_flIgniteTime;
+ int m_iTrail;
+
+ DECLARE_DATADESC();
+};
+
+
+#endif
+
+#ifdef CLIENT_DLL
+#define CLaserDot C_LaserDot
+#endif
+
+class CLaserDot;
+
+#ifdef CLIENT_DLL
+#define CWeaponRPG C_WeaponRPG
+#endif
+
+//-----------------------------------------------------------------------------
+// CWeaponRPG
+//-----------------------------------------------------------------------------
+class CWeaponRPG : public CBaseHL1MPCombatWeapon
+{
+ DECLARE_CLASS( CWeaponRPG, CBaseHL1MPCombatWeapon );
+public:
+
+ CWeaponRPG( void );
+ ~CWeaponRPG();
+
+ void ItemPostFrame( void );
+ void Precache( void );
+ bool Deploy( void );
+ void PrimaryAttack( void );
+ void WeaponIdle( void );
+ bool Holster( CBaseCombatWeapon *pSwitchingTo = NULL );
+ void NotifyRocketDied( void );
+ bool Reload( void );
+
+ void Drop( const Vector &vecVelocity );
+
+ virtual int GetDefaultClip1( void ) const;
+
+// DECLARE_SERVERCLASS();
+ DECLARE_DATADESC();
+ DECLARE_NETWORKCLASS();
+ DECLARE_PREDICTABLE();
+
+private:
+ void CreateLaserPointer( void );
+ void UpdateSpot( void );
+ bool IsGuiding( void );
+ void StartGuiding( void );
+ void StopGuiding( void );
+
+#ifndef CLIENT_DLL
+// DECLARE_ACTTABLE();
+#endif
+
+private:
+// bool m_bGuiding;
+// CHandle<CLaserDot> m_hLaserDot;
+// CHandle<CRpgRocket> m_hMissile;
+// bool m_bIntialStateUpdate;
+// bool m_bLaserDotSuspended;
+// float m_flLaserDotReviveTime;
+
+ CNetworkVar( bool, m_bGuiding );
+ CNetworkVar( bool, m_bIntialStateUpdate );
+ CNetworkVar( bool, m_bLaserDotSuspended );
+ CNetworkVar( float, m_flLaserDotReviveTime );
+
+ CNetworkHandle( CBaseEntity, m_hMissile );
+
+#ifndef CLIENT_DLL
+ CHandle<CLaserDot> m_hLaserDot;
+#endif
+};
+
+
+#endif // WEAPON_RPG_H