Lifesteal Choke
Posted: Tue Apr 08, 2014 6:50 pm
Is there any line to add to a default Force Choke ODF that makes it not only take damage from an enemy, but add it to the player's own health?
Code: Select all
OnObjectDamage(
function(object, damager)
if GetObjectLastHitWeaponClass(object) == "choke_weapon_name" then
SetProperty(damager, "AddHealth", *number*)
end
end
)