Altering ham parameters
I am trying to alter Ham_TakeDamage parameters with SetHamParam*.
This is how far I've got: PHP Code:
Code:
Victim killed Attacker with playerAlso, do I need that temp, or can I change those parameters directly? I will test, but answer from somebody who know for sure would help :) EDIT: Also, what I'm trying to do is swap attacker and victim, so team damage would do damage to attacker. |
Re: Altering ham parameters
Try putting second param same as third, I heard that when you are being attack by a gun, both attacker and inflictor are one player entity. Or try putting them to attacker's gun entity, or just inflictor to gun entity. :D
|
Re: Altering ham parameters
Setting to attacker didn't work. Will test weapons ent.
|
Re: Altering ham parameters
Just for testing purposes
PHP Code:
|
Re: Altering ham parameters
Quote:
|
Re: Altering ham parameters
Attackers weapon instead of message "player".
EDIT: Victim killed Attacker with "attackerweap" |
Re: Altering ham parameters
Try leaving attacker as it is, and just swap first(this) and second(inflictor) parameter. :)
|
Re: Altering ham parameters
Quote:
Quote:
|
Re: Altering ham parameters
Create a dummy entity, set the classname to whatever weapon the attacker is using. Replace the inflictor parameter with this entity.
Don't create the entity with every event. Make one global and just change the classname. |
| All times are GMT -4. The time now is 21:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.