Raised This Month: $ Target: $400
 0% 

Increase knife damage for me


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-17-2018 , 06:50   Re: Increase knife damage for me
Reply With Quote #1

Hook TakeDamage function by Ham & check if damage bits is equal to DMG_SLASH. (Not tested)

public [HookedFunctionName](VictimID, InflictorID, AttackerID, Float:Damage, DamageBits)
{
...
}
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 07-17-2018 at 06:52.
Ghosted is offline
LemoNSK
Member
Join Date: Jul 2018
Location: Criminal Underworld
Old 07-17-2018 , 07:01   Re: Increase knife damage for me
Reply With Quote #2

Quote:
Originally Posted by Ghosted View Post
Hook TakeDamage function by Ham & check if damage bits is equal to DMG_SLASH. (Not tested)

public [HookedFunctionName](VictimID, InflictorID, AttackerID, Floatamage, DamageBits)
{
...
}

Well, it doesn't work this way, but thank you for your reply.
LemoNSK is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-17-2018 , 07:19   Re: Increase knife damage for me
Reply With Quote #3

Quote:
Originally Posted by LemoNSK View Post
Well, it doesn't work this way, but thank you for your reply.
Have you tested?
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
LemoNSK
Member
Join Date: Jul 2018
Location: Criminal Underworld
Old 07-17-2018 , 07:39   Re: Increase knife damage for me
Reply With Quote #4

Quote:
Originally Posted by Ghosted View Post
Have you tested?
Yes, nothing happened. I added only what you typed. But it makes no sense to me why this exactly.
LemoNSK is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-17-2018 , 07:40   Re: Increase knife damage for me
Reply With Quote #5

Quote:
Originally Posted by LemoNSK View Post
Yes, nothing happened. I added only what you typed. But it makes no sense to me why this exactly.
Then you should post in plugin requests and not in scripting help section.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted 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 12:47.


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