Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
1.5 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef TF_OBJ_MANNED_MISSILELAUNCHER_H
#define TF_OBJ_MANNED_MISSILELAUNCHER_H
#ifdef _WIN32
#pragma once
#endif
#include "tf_obj_base_manned_gun.h"
// ------------------------------------------------------------------------ //
// A stationary gun that players can man that's built by the player
// ------------------------------------------------------------------------ //
class CObjectMannedMissileLauncher : public CObjectBaseMannedGun
{
DECLARE_CLASS( CObjectMannedMissileLauncher, CObjectBaseMannedGun );
public:
DECLARE_SERVERCLASS();
DECLARE_DATADESC();
static CObjectMannedMissileLauncher* Create(const Vector &vOrigin, const QAngle &vAngles);
CObjectMannedMissileLauncher();
virtual void Spawn();
virtual void Precache();
virtual void FinishedBuilding( void );
virtual void SetupTeamModel( void );
void MissileRechargeThink( void );
#if defined( CLIENT_DLL )
virtual bool ShouldPredict( void )
{
if ( GetOwner() == C_BasePlayer::GetLocalPlayer() )
return true;
return BaseClass::ShouldPredict();
}
virtual void PreDataUpdate( DataUpdateType_t updateType );
virtual void PostDataUpdate( DataUpdateType_t updateType );
#endif
protected:
// Fire the weapon
virtual void Fire( void );
int m_nPreviousTeam;
int m_nMaxAmmoCount;
};
#endif // TF_OBJ_MANNED_MISSILELAUNCHER_H