attempting to make medigun hurt players using tf2items.
for various reasons, i need to make the mediguns in tf2 hurt players, as opposed to heal, and after messing with tf2items, specifically the attributes of heal rate penalty (index seven), attributes of heal rate bonus (index eight), and even negative numbers, i cannot figure out how to get it to function in the way i wish. is it possible i am missing something?
|
Re: attempting to make medigun hurt players using tf2items.
TF2Items can generally only do things that are already done in the game.
|
Re: attempting to make medigun hurt players using tf2items.
Quote:
You'd probably have a better chance of hooking the "player_healed" event, and then either trying to set the "amount" to a negative value, or, setting it to 0 and then hurting the patient. PHP Code:
I had an explore of this myself, player_healed does not fire on every heal event, it fires every time that number pops up in the world that says how much you healed, so it's not reliable, it also doesn't consider overheal. The method I ended up using was hooking the players prethink, checking to see if their medigun had a heal target, and if so, damage that heal target. If you need more guidance let me know. |
Re: attempting to make medigun hurt players using tf2items.
Quote:
|
All times are GMT -4. The time now is 15:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.