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.

43 lines
901 B

5 years ago
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef HL1_BASEGRENADE_H
#define HL1_BASEGRENADE_H
#ifdef _WIN32
#pragma once
#endif
#include "basegrenade_shared.h"
class CHL1BaseGrenade : public CBaseGrenade
{
DECLARE_CLASS( CHL1BaseGrenade, CBaseGrenade );
public:
virtual void Precache();
void Explode( trace_t *pTrace, int bitsDamageType );
unsigned int PhysicsSolidMaskForEntity( void ) const;
};
class CHandGrenade : public CHL1BaseGrenade
{
public:
DECLARE_CLASS( CHandGrenade, CHL1BaseGrenade );
DECLARE_DATADESC();
void Spawn( void );
void Precache( void );
void BounceSound( void );
void BounceTouch( CBaseEntity *pOther );
void ShootTimed( CBaseCombatCharacter *pOwner, Vector vecVelocity, float flTime );
};
#endif // HL1_BASEGRENADE_H