mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-13 17:18:22 +00:00
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//=============================================================================
|
|
|
|
#include "cbase.h"
|
|
#include "tf_weapon_fireaxe.h"
|
|
|
|
//=============================================================================
|
|
//
|
|
// Weapon FireAxe tables.
|
|
//
|
|
IMPLEMENT_NETWORKCLASS_ALIASED( TFFireAxe, DT_TFWeaponFireAxe )
|
|
|
|
BEGIN_NETWORK_TABLE( CTFFireAxe, DT_TFWeaponFireAxe )
|
|
END_NETWORK_TABLE()
|
|
|
|
BEGIN_PREDICTION_DATA( CTFFireAxe )
|
|
END_PREDICTION_DATA()
|
|
|
|
LINK_ENTITY_TO_CLASS( tf_weapon_fireaxe, CTFFireAxe );
|
|
PRECACHE_WEAPON_REGISTER( tf_weapon_fireaxe );
|
|
|
|
#ifdef GAME_DLL
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
//-----------------------------------------------------------------------------
|
|
float CTFFireAxe::GetInitialAfterburnDuration() const
|
|
{
|
|
int iAddBurningDamageType = 0;
|
|
CALL_ATTRIB_HOOK_INT( iAddBurningDamageType, set_dmgtype_ignite );
|
|
if ( iAddBurningDamageType )
|
|
{
|
|
return 7.5f;
|
|
}
|
|
|
|
return BaseClass::GetInitialAfterburnDuration();
|
|
}
|
|
#endif
|
|
|