Raised This Month: $ Target: $400
 0% 

Boost Knife attack damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-19-2009 , 00:28   Re: Boost Knife attack damage
Reply With Quote #1

Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
	if(g_superknife[attacker])
	{
		SetHamParamFloat(4, get_pcvar_float(g_knifedamage))
		return HAM_IGNORED;
	}
	
	return HAM_SUPERCEDE;
}

Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
	if(g_superknife[attacker])
	{
		SetHamParamFloat(4, get_pcvar_float(g_knifedamage))
		return HAM_HANDLED;
	}
	
	return HAM_IGNORED;
}
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-19-2009 , 01:04   Re: Boost Knife attack damage
Reply With Quote #2

Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
	if(attacker == inflictor && is_user_alive(attacker) && get_user_weapon(attacker) == CSW_KNIFE && g_superknife[attacker])
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-19-2009 , 12:14   Re: Boost Knife attack damage
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
	if(attacker == inflictor && is_user_alive(attacker) && get_user_weapon(attacker) == CSW_KNIFE && g_superknife[attacker])
How did I miss that?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode