Data Realms Fan Forums
http://45.55.195.193/

Negative Damage
http://45.55.195.193/viewtopic.php?f=1&t=25312
Page 1 of 1

Author:  Pantera1993 [ Thu Aug 25, 2011 7:33 pm ]
Post subject:  Negative Damage

How would I go about making an emitter that deals negative damage?

Author:  111herbert111 [ Thu Aug 25, 2011 8:25 pm ]
Post subject:  Re: Negative Damage

You mean you want something that heals? Check out the code for the rejuvinator in soupiest's Combined Forces, is my recommendation, because you need a special script and lua to do negative damage as far as I'm aware.

Author:  Asklar [ Thu Aug 25, 2011 8:50 pm ]
Post subject:  Re: Negative Damage

Well, technically you can do it, but emmiters as in wounds.
If you change the EmissionDamage of a wound to a negative number it will the target.
But, as I suppose, if you want to do something like a healing gun you need a lua script, which is one of the most simple scripts out there.

Author:  Coops [ Thu Aug 25, 2011 10:50 pm ]
Post subject:  Re: Negative Damage

The negative value of an AEmitter way means you can't put it on an attachable of the actor, only on the actor itself, Otherwise it won't count towards the actor.

Fortunately there's this:

Code:
Attachable:CollectDamage()


So giving something like this to your attachable might be what you want if you want negative Emission damage.

Code:
function Update(self)
    if self.parent then
        self:CollectDamage()
    else
        self.parent = self:GetRootParent()
    end
end

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/