Page 1 of 1

remove true shot on scoutzknivez

Posted: Mon Jun 16, 2008 7:30 pm
by whosyourdaddy
will this remove trueshot from scoutzknivez map but be enabled on all other maps

Code: Select all

NE_SkillsOffensive( iAttacker, iVictim, iWeapon, iDamage, iHitPlace )
{ 
static iSkillLevel
new szMapName[32];
	get_mapname( szMapName, 32 );
iSkillLevel = SM_GetSkillLevel( iAttacker, SKILL_TRUESHOT );

	if ( equali( szMapName, "scoutzknivez" ) )
	{
		iSkillLevel = 0;
	}

	// Trueshot Aura
		if ( iSkillLevel > 0 )
	{
		static iTempDamage;
		iTempDamage = floatround( float( iDamage ) * p_trueshot[iSkillLevel-1] );
		
		// Damage the user
		WC3_Damage( iVictim, iAttacker, iTempDamage, iWeapon, iHitPlace );

		// Make the user glow!
		SHARED_Glow( iVictim, ( 2 * iTempDamage ), 0, 0, 0 );

		// Create a screen fade
		Create_ScreenFade( iVictim, (1<<10), (1<<10), (1<<12), 255, 0, 0, iTempDamage );
	}
}

Posted: Tue Jun 17, 2008 3:05 pm
by Geesu
correct