View Single Post
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 06-24-2016 , 07:11   Re: [TF2] A better way to kill
Reply With Quote #4

Quote:
Originally Posted by Powerlord View Post
The problem is that TF2 is designed to give a kill credit to the last player when a player suicides or is killed by the environment. So, even if you used an alternate method like SDKHooks_TakeDamage, it's probably going to give credit to the last player to do damage.

Not sure what would happen if you damage a player twice from the environment (entity 0) though.

Side note: When using SDKHooks_TakeDamage, setting the damageType to DMG_CRUSH should kill a player even when they're ubered.
Yes SDKHooks_TakeDamage gave credit to the last player that did damage. I set inflictor and attacker to clientid and used DMG_ACID. Dont think that damage type matters when it comes to giving credit for the kill.
__________________
luki1412 is offline