View unanswered posts | View active topics It is currently Sat Dec 28, 2024 4:34 pm



Reply to topic  [ 4 posts ] 
 Negative Damage 
Author Message
User avatar

Joined: Wed Jul 06, 2011 5:11 pm
Posts: 226
Reply with quote
Post Negative Damage
How would I go about making an emitter that deals negative damage?


Thu Aug 25, 2011 7:33 pm
Profile
User avatar

Joined: Fri Jan 07, 2011 12:31 am
Posts: 550
Location: error: location not found
Reply with quote
Post 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.


Thu Aug 25, 2011 8:25 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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.


Thu Aug 25, 2011 8:50 pm
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post 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


Thu Aug 25, 2011 10:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.040s | 13 Queries | GZIP : Off ]