remove true shot on scoutzknivez

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
whosyourdaddy
Spell Breaker
Posts: 398
Joined: Sun Apr 27, 2008 10:11 pm

remove true shot on scoutzknivez

Post by whosyourdaddy » Mon Jun 16, 2008 7:30 pm

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 );
	}
}

User avatar
Geesu
<b>King of the world!</b>
Posts: 3159
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu » Tue Jun 17, 2008 3:05 pm

correct
No Support via PM

Post Reply