AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=43)
-   -   Dmgmult only on right click (knife) (https://forums.alliedmods.net/showthread.php?t=141683)

Exploited 10-27-2010 11:01

Dmgmult only on right click (knife)
 
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 10-27-2010 12:25

Re: Dmgmult only on right click (knife)
 
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.

Exploited 10-27-2010 13:00

Re: Dmgmult only on right click (knife)
 
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 :/

Fr33m@n 10-27-2010 15:33

Re: Dmgmult only on right click (knife)
 
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)

Jelle 10-27-2010 15:42

Re: Dmgmult only on right click (knife)
 
If you use hamTakeDamage like freeman says, the kill will count on ranks.

Exploited 10-28-2010 09:24

Re: Dmgmult only on right click (knife)
 
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 10-28-2010 10:10

Re: Dmgmult only on right click (knife)
 
It seems to be explained very simple. It will be hard to explain it simpler. What about it don't you understand?

Fr33m@n 10-28-2010 10:55

Re: Dmgmult only on right click (knife)
 
i will show an example

Exploited 10-28-2010 12:15

Re: Dmgmult only on right click (knife)
 
I have never used HAM before so I don't really know what the different things do.

Jelle 10-28-2010 12:17

Re: Dmgmult only on right click (knife)
 
The link you provided yourself explain everything, you don't even have to look in the include file.


All times are GMT -4. The time now is 09:30.

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