Raised This Month: $32 Target: $400
 8% 

Increase knife damage for me


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LemoNSK
Member
Join Date: Jul 2018
Location: Criminal Underworld
Old 07-17-2018 , 05:49   Increase knife damage for me
Reply With Quote #1

Hello,

I'd like to ask you if anyone knows how to increase knife damage ONLY for the 'id' (for the people who choose that they want their damage increased).

I have done this before but when I clicked it, it automatically increased the damage to all the server.


Thanks forwardly.
LemoNSK is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-17-2018 , 05:57   Re: Increase knife damage for me
Reply With Quote #2

Search , and you are in the wrong forum, for suggestion and request please post in the suggestion and requests forum.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
LemoNSK
Member
Join Date: Jul 2018
Location: Criminal Underworld
Old 07-17-2018 , 06:26   Re: Increase knife damage for me
Reply With Quote #3

You could at least give me a suggestion for that .. I've been looking for that for hours..

Last edited by LemoNSK; 07-17-2018 at 06:26.
LemoNSK is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-17-2018 , 06:50   Re: Increase knife damage for me
Reply With Quote #4

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 #5

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 #6

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 #7

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 #8

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
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-17-2018 , 08:41   Re: Increase knife damage for me
Reply With Quote #9

Instead of checking if the dmg contain dmg_slash check if the attacker is valid, he is not the victim and hes holding a knife.

Also hook takedmg pre, use HamSetParamFloat to change the amount of dmg...
HamSetParamFloat(4, newdmg)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 07-17-2018 at 08:45.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-17-2018 , 08:45   Re: Increase knife damage for me
Reply With Quote #10

Quote:
Originally Posted by Natsheh View Post
Instead of checking if the dmg contain dmg_slash check if the attacker is valid, he is not the victim and hes holding a knife.

Also hook takedmg pre, use HamSetParamFloat to change the amount of dmg...
HamSetParamFloat(4, newdmg)
And if the inflictor is the same as the attacker.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 23:36.


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