Page 1 of 2

Can I make my bleed to death?

Posted: Sun Dec 06, 2009 3:34 pm
by swado95
Can I make it so if you get shot you start getting hurt more and more slowly like your bleeding to death. But have it so once you get a health packet or something you stop bleeding.

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 3:49 pm
by bobfinkl
Yes I believe it's possible, to be absolutely sure I'd have to check the scripting docs but I'm quite sure it is.

Although it's quite difficult requiring scripting.

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 3:55 pm
by swado95
Idc if it takes difficult scripting or not as long as someone can show me what to do.

This is all going to be part of my super realistic map. or as realistic as I can make it.

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 4:50 pm
by eliminator
goto the rep_inf_default (i make it for republic) and add these lines:

Code: Select all

AddHealth        = -x
HealthOffset        = "0.0 1.0 0.125"
I dont know ,whether this line

Code: Select all

(HealthOffset        = "0.0 1.0 0.125")
works, but i tried it and it works

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 4:53 pm
by swado95
So will I bleed when shot and stop when im healing?

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 5:02 pm
by eliminator
you will lost your live only while you havn't 100% life

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 5:06 pm
by swado95
Hmm it doesn't seem to be working right. Do I need to put the other code in. well this is what I have

Hidden/Spoiler:
[GameObjectClass]

// Base class for all alliance soldiers, inherits from com_inf_default
ClassParent = "com_inf_default"

[Properties]


HurtSound = "all_inf_com_chatter_wound"
DeathSound = "all_inf_com_chatter_death"
DamageRegionSound = "allmalechoke"
FoleyFXClass = "all_inf_soldier"

AddHealth = -x
HealthOffset = "0.0 1.0 0.125"

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 5:09 pm
by Fiodis
Which odf is that?

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 5:10 pm
by eliminator
-x doesnt mean you have to write it x is a variable you have to put in something you want so if you want that your soldier loose 1Health per second you have to put in 1...

AddHealth = -1

only example

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 5:12 pm
by swado95
Well I did that I added 5 and nothing happened after I was shot.

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 5:13 pm
by eliminator
did you write 5 or -5?

I tested the function really easy:
I shooted at a soldier and wait a bit, after the shoot i began slowly to loose life...

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 6:45 pm
by swado95
i had -5 and what was the part in () did I need that also how long did I have to wait? Also if I get this working can I add a effect that dose the same thing. Turns on when hit turns off after healing.

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 8:13 pm
by bobfinkl
-5 is an awfully small number compared to 400, I suggest you raise the number for testing purposes then change it around till you get what you want. And for your next question, no you can't unless you did it in a different way which wouldn't quite work the way you want it to.

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 8:34 pm
by swado95
I got it to work but only for one unit.

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 8:43 pm
by fiddler_on_the_roof
so add that part to all the units you want it for

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 8:44 pm
by Fiodis
Or add it to their parent odf.

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 9:04 pm
by swado95
Well also I cant heal

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 9:06 pm
by Fiodis
What do you mean? You can't heal while standing next to a health droid, or from picking up a health canister?

Re: Can I make my bleed to death?

Posted: Sun Dec 06, 2009 9:29 pm
by swado95
Cant heal by picking up health.

Re: Can I make my bleed to death?

Posted: Mon Dec 07, 2009 2:00 pm
by The_Emperor
No, the "bleeding" won't stop by picking up health, it'll only heal after a specific amount of damage has been done, or a specific amount of time has passed (dunno which one it was anymore).