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.
46 lines
1.1 KiB
46 lines
1.1 KiB
8 years ago
|
/***
|
||
|
*
|
||
|
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
|
||
|
*
|
||
|
* This product contains software technology licensed from Id
|
||
|
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
|
||
|
* All Rights Reserved.
|
||
|
*
|
||
|
* Use, distribution, and modification of this source code and/or resulting
|
||
|
* object code is restricted to non-commercial enhancements to products from
|
||
|
* Valve LLC. All other use, distribution, or modification is prohibited
|
||
|
* without written permission from Valve LLC.
|
||
|
*
|
||
|
****/
|
||
|
#pragma once
|
||
6 years ago
|
#ifndef XSBEAM_H
|
||
|
#define XSBEAM_H
|
||
8 years ago
|
|
||
6 years ago
|
#define XENSQUASHER_MAX_BEAMS 4
|
||
|
|
||
|
class CXSBeam : public CBaseEntity
|
||
8 years ago
|
{
|
||
|
public:
|
||
6 years ago
|
void Spawn();
|
||
|
void Precache();
|
||
8 years ago
|
|
||
6 years ago
|
static CXSBeam* CXSBeamCreate( float flDamage );
|
||
|
void Init();
|
||
|
void EXPORT BeamTouch(CBaseEntity *pOther);
|
||
|
void EXPORT FlyThink();
|
||
|
void EXPORT RemoveThink();
|
||
8 years ago
|
|
||
6 years ago
|
int Save(CSave &save);
|
||
|
int Restore(CRestore &restore);
|
||
8 years ago
|
static TYPEDESCRIPTION m_SaveData[];
|
||
|
|
||
6 years ago
|
int m_iTrail;
|
||
|
int m_iBeamCount;
|
||
|
float m_flDmg;
|
||
|
float m_flDeflectionDist;
|
||
|
float m_flDeflectionDot[XENSQUASHER_MAX_BEAMS];
|
||
|
Vector m_vecOldOrigin;
|
||
|
CSprite *m_pBeam[XENSQUASHER_MAX_BEAMS];
|
||
8 years ago
|
};
|
||
6 years ago
|
#endif // XSBEAM_H
|