mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
32 lines
838 B
C++
32 lines
838 B
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose: Entity that simulates bullets that are underwater.
|
|
//
|
|
//=============================================================================//
|
|
|
|
#ifndef WEAPON_WATERBULLET_H
|
|
#define WEAPON_WATERBULLET_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#define WATER_BULLET_BUBBLES_PER_INCH 0.05f
|
|
|
|
//=========================================================
|
|
//=========================================================
|
|
class CWaterBullet : public CBaseAnimating
|
|
{
|
|
DECLARE_CLASS( CWaterBullet, CBaseAnimating );
|
|
|
|
public:
|
|
void Precache();
|
|
void Spawn( const Vector &vecOrigin, const Vector &vecDir );
|
|
void Touch( CBaseEntity *pOther );
|
|
void BulletThink();
|
|
|
|
DECLARE_DATADESC();
|
|
DECLARE_SERVERCLASS();
|
|
};
|
|
|
|
#endif // WEAPON_WATERBULLET_H
|