Page 1 of 1

Lifesteal Choke

Posted: Tue Apr 08, 2014 6:50 pm
by Kingpin
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?

Re: Lifesteal Choke

Posted: Tue Apr 08, 2014 6:51 pm
by MileHighGuy
You have to do it via LUA. I don't know how though.

Re: Lifesteal Choke

Posted: Tue Apr 08, 2014 6:55 pm
by Nedarb7
You could try this:

Code: Select all

OnObjectDamage(
 function(object, damager)
 if GetObjectLastHitWeaponClass(object) == "choke_weapon_name" then
 SetProperty(damager, "AddHealth", *number*)
 end 
end
 )
Obviously *number* would be replaced with the amount of health to add and choke_weapon_name the name of your choke weapon ;)