Permalink
Browse files

Forgot to disable debug overlay

  • Loading branch information...
1 parent 3ff9984 commit c282fdcc3fc3f871e70c25068803e9a6b5c7013d @NicknineTheEagle NicknineTheEagle committed Jul 14, 2016
@@ -128,7 +128,7 @@ void CTFProjectile_Flare::Explode( trace_t *pTrace, CBaseEntity *pOther )
{
// Hit world, do the explosion effect.
CPVSFilter filter( vecOrigin );
- TE_TFExplosion( filter, 0.0f, vecOrigin, pTrace->plane.normal, GetWeaponID(), pOther->entindex(), ToBasePlayer( pAttacker), GetTeamNumber(), m_bCritical );
+ TE_TFExplosion( filter, 0.0f, vecOrigin, pTrace->plane.normal, GetWeaponID(), pOther->entindex(), ToBasePlayer( pAttacker ), GetTeamNumber(), m_bCritical );
}
CTakeDamageInfo info( this, pAttacker, m_hLauncher.Get(), GetDamage(), GetDamageType(), TF_DMG_CUSTOM_BURNING );
@@ -16,6 +16,8 @@
#define TF_WEAPON_PLASMA_MODEL "models/weapons/w_models/w_rocket.mdl"
+ConVar tf_debug_plasma( "tf_debug_plasma", "0", FCVAR_CHEAT );
+
IMPLEMENT_NETWORKCLASS_ALIASED( TFProjectile_Plasma, DT_TFProjectile_Plasma );
BEGIN_NETWORK_TABLE( CTFProjectile_Plasma, DT_TFProjectile_Plasma )
END_NETWORK_TABLE()
@@ -100,7 +102,10 @@ void CTFProjectile_Plasma::Explode( trace_t *pTrace, CBaseEntity *pOther )
pBomb->SetAbsVelocity( vecDir * RandomFloat( 250, 750 ) );
pBomb->SetAbsAngles( angles );
- NDebugOverlay::Line( pBomb->GetAbsOrigin(), pBomb->GetAbsOrigin() + vecDir * 50.0f, 0, 255, 0, true, 10.0f );
+ if ( tf_debug_plasma.GetBool() )
+ {
+ NDebugOverlay::Line( pBomb->GetAbsOrigin(), pBomb->GetAbsOrigin() + vecDir * 50.0f, 0, 255, 0, true, 10.0f );
+ }
pBomb->SetDamage( GetDamage() / 3 );
pBomb->SetCritical( m_bCritical );
@@ -451,7 +451,7 @@ void CTFBaseRocket::Explode( trace_t *pTrace, CBaseEntity *pOther )
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
-int CTFBaseRocket::GetDamageType()
+int CTFBaseRocket::GetDamageType( void )
{
int iDmgType = g_aWeaponDamageTypes[GetWeaponID()];
if ( m_bCritical )
@@ -26,10 +26,9 @@
//
// TF Base Rocket.
//
+class CTFBaseRocket : public CBaseProjectile
#ifdef GAME_DLL
-class CTFBaseRocket : public CBaseProjectile, public IScorer
-#else
-class C_TFBaseRocket : public C_BaseProjectile
+ , public IScorer
#endif
{
@@ -95,8 +94,8 @@ class C_TFBaseRocket : public C_BaseProjectile
virtual void Explode( trace_t *pTrace, CBaseEntity *pOther );
void SetCritical( bool bCritical ) { m_bCritical = bCritical; }
- virtual float GetDamage() { return m_flDamage; }
- virtual int GetDamageType();
+ virtual float GetDamage( void ) { return m_flDamage; }
+ virtual int GetDamageType( void );
virtual void SetDamage(float flDamage) { m_flDamage = flDamage; }
virtual bool UseStockSelfDamage( void ) { return true; }
virtual float GetRadius( void );

0 comments on commit c282fdc

Please sign in to comment.