Raised This Month: $ Target: $400
 0% 

Damage multiplier


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 10-10-2010 , 10:25   Damage multiplier
Reply With Quote #1

Ok i want to do that knife dmg multiple have only CT. Here is my code:
PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damage)
{
    if (
get_user_weapon(attacker) == CSW_KNIFE)
    
SetHamParamFloat(4damage 2)

__________________
Still studying scripting...
zirualas is offline
Send a message via Skype™ to zirualas
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 10-10-2010 , 10:51   Re: Damage multiplier
Reply With Quote #2

if( cs_get_user_team(attacker) != CS_TEAM_CT )
return HAM_IGNORED

Sorry if I was wrong :d
5c0r-|3i0 is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 10-10-2010 , 11:18   Re: Damage multiplier
Reply With Quote #3

Quote:
Originally Posted by 5c0r-|3i0 View Post
if( cs_get_user_team(attacker) != CS_TEAM_CT )
return HAM_IGNORED

Sorry if I was wrong :d
Actually ... Its correct ...
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-10-2010 , 12:54   Re: Damage multiplier
Reply With Quote #4

Not sure about the DMG_BLAST thingie.
PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamagebits)
{
        if (!
attacker || damagebits DMG_BLAST
        
|| cs_get_user_team(attacker) != CS_TEAM_CT
        
|| get_user_weapon(inflictor) != CSW_KNIFE)
                return 
HAM_IGNORED;
 
        
SetHamReturnFloat(4damage 2);
 
        return 
HAM_HANDLED;

__________________

Last edited by hleV; 10-10-2010 at 12:56.
hleV is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 10-10-2010 , 13:18   Re: Damage multiplier
Reply With Quote #5

I used 5c0r-|3i0 code and it helped me ;p
Hlev thanks anyway.
__________________
Still studying scripting...
zirualas is offline
Send a message via Skype™ to zirualas
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 10-11-2010 , 04:42   Re: Damage multiplier
Reply With Quote #6

@hlev :
Quote:
#define DMG_HEGRENADE (1<<24)
Is DMG_BLAST differ to DMG_HEGRENADE ?
I usually use this more than DMG_BLAST ...
5c0r-|3i0 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-11-2010 , 05:11   Re: Damage multiplier
Reply With Quote #7

Quote:
Originally Posted by zirualas View Post
I used 5c0r-|3i0 code and it helped me ;p
Hlev thanks anyway.
What if you deal damage to enemy with a grenade while you're running with a knife?
Quote:
Originally Posted by 5c0r-|3i0 View Post
@hlev :

Is DMG_BLAST differ to DMG_HEGRENADE ?
I usually use this more than DMG_BLAST ...
Yeah, that must be it.
__________________
hleV 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 10:26.


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