Raised This Month: $62 Target: $400
 15% 

Dmgmult only on right click (knife)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 10-27-2010 , 12:01   Dmgmult only on right click (knife)
Reply With Quote #1

Hey there,

So, I have the hero Grim Reaper on my server, and I feel that it is getting rather troublesome to manage it. The thing is, that currently the maxhp on my server is 400. After several months of nagging the players on my server convinced me to increase it to 600, and this brings up a problem with the hero Grim Reaper. I want people to be able to OHKO people with 600hp using Right Click, but to be unable to OHKO 400Hper's with left click. I have not found a dmgmult wich fits this so I don't know.

So, I came up with the solution to make the hero only give dmgmult on right click. Is this possible? If so, how do I do it?

Thanks,
Exploited

Edit: P.S Grim Reaper still does not work on my server, neither mine or Jelles version.. Guess I'd better go bump that post.
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 10-27-2010 , 13:25   Re: Dmgmult only on right click (knife)
Reply With Quote #2

To check if the player is hitting right or left click, simply make a check:

if ( IN_ATTACK2 )

Which is right click. Then make a multiplier using sh_extra_damage instead of sh_set_hero_dmgmult.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 10-27-2010 , 14:00   Re: Dmgmult only on right click (knife)
Reply With Quote #3

The reason I asked for a recoded version of Grim Reaper was because the players on my server got really pissed cause knifekills didn't count on rankings, and iirc sh_extra_damage doesn't do that :/
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
[email protected]
Veteran Member
Join Date: May 2008
Location: France Marne
Old 10-27-2010 , 16:33   Re: Dmgmult only on right click (knife)
Reply With Quote #4

use Ham_TakeDamage method.

i'm not sure of the compatibility with sh_set_hero_dmgmult if you have another knife hero.
(cause core use the same damage method)

Last edited by [email protected]; 10-27-2010 at 16:39.
Fr33m@n is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 10-27-2010 , 16:42   Re: Dmgmult only on right click (knife)
Reply With Quote #5

If you use hamTakeDamage like freeman says, the kill will count on ranks.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 10-28-2010 , 10:24   Re: Dmgmult only on right click (knife)
Reply With Quote #6

How do I use that? I searched, and the best I found was this:

http://forums.alliedmods.net/showpos...8&postcount=71

And I don't really understand that..
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 10-28-2010 , 11:10   Re: Dmgmult only on right click (knife)
Reply With Quote #7

It seems to be explained very simple. It will be hard to explain it simpler. What about it don't you understand?
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
[email protected]
Veteran Member
Join Date: May 2008
Location: France Marne
Old 10-28-2010 , 11:55   Re: Dmgmult only on right click (knife)
Reply With Quote #8

i will show an example
Fr33m@n is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 10-28-2010 , 13:15   Re: Dmgmult only on right click (knife)
Reply With Quote #9

I have never used HAM before so I don't really know what the different things do.
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 10-28-2010 , 13:17   Re: Dmgmult only on right click (knife)
Reply With Quote #10

The link you provided yourself explain everything, you don't even have to look in the include file.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Reply


Thread Tools
Display Modes

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 11:13.


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