View Full Version : Making the Impact Hammer Heal
ridley075
02-20-2010, 11:32 AM
So, the title says it basically. I want to make the Impact Hammer heal damage instead of do damage. I want to do in all in Unreal script, to apply it to a mutator. I've tried making the damage amounts for the Impact Hammer negative, but that does not seem to work. Any ideas?
J_Gau
02-20-2010, 01:30 PM
Look at UTWeap_ImpactHammer. Mod simulated function ProcessInstantHit to add health to the P = UTPawn(Impact.HitActor); instead of calling Takedamage. Should be easy enough. Or just completely override takedamage and call a new function similar to it that will add health to the pawn. Just depends on how elegant you would like the code to be. Have fun.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.