How do I change the head dmg
How can this transformed code, so the impact to the head to take more dmg?
PHP Code:
|
Re: How do I change the head dmg
are you wanting the head damage to deal 50 more damage?
|
Re: How do I change the head dmg
shoot body = 50dmg
shoot head = over 50dmg |
Re: How do I change the head dmg
Quote:
Code:
SetHamParamFloat(4, get_user_weapon(attacker) == CSW_KNIFE ? (damage + get_pcvar_float(CvarFloat)) : damage |
Re: How do I change the head dmg
Currently, wherever it takes targeting 50 damage. I just want to change the headshot to take in more than a certain cvar
|
Re: How do I change the head dmg
You can't get whether it's a headshot or not based on the Ham_TakeDamage forward alone (unless you want to compare the guns with the damage dealt, which would be dumb and ugly). You'll need to use different forwards.
|
Re: How do I change the head dmg
use Ham_TraceAttack in pre(without 1 in the end of the hook in plugin init)
instead Ham_TakeDamage and then get the hitplace from traceline: Code:
hitplace = get_tr2( tr, TR_iHitgroup )I just recenly have an issue that I was needing hitplace in hamsandwich. As far as I remember its the only way. |
| All times are GMT -4. The time now is 03:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.