blob: e1ba43368b8030f112424b95c6c48d6c2a8e4900 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: A stationary gun that players can man
//
// $NoKeywords: $
//=============================================================================//
#ifndef TF_VEHICLE_WAGON_H
#define TF_VEHICLE_WAGON_H
#ifdef _WIN32
#pragma once
#endif
#include "tf_basefourwheelvehicle.h"
#include "vphysics/vehicles.h"
// ------------------------------------------------------------------------ //
// A wagon that players can build one object on the back of
// ------------------------------------------------------------------------ //
class CVehicleWagon: public CBaseTFFourWheelVehicle
{
DECLARE_CLASS( CVehicleWagon, CBaseTFFourWheelVehicle );
public:
DECLARE_SERVERCLASS();
static CVehicleWagon* Create(const Vector &vOrigin, const QAngle &vAngles);
CVehicleWagon();
virtual void Spawn();
virtual void Precache();
virtual void GetControlPanelInfo( int nPanelIndex, const char *&pPanelName );
virtual bool CanTakeEMPDamage( void ) { return true; }
// Vehicle overrides
virtual bool IsPassengerVisible( int nRole ) { return true; }
};
#endif // TF_VEHICLE_WAGON_H
|