Can I make my bleed to death?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Can I make my bleed to death?

Post 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.
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Can I make my bleed to death?

Post 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.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Can I make my bleed to death?

Post 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.
User avatar
eliminator
Second Lance Corporal
Second Lance Corporal
Posts: 118
Joined: Wed Aug 19, 2009 3:39 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany

Re: Can I make my bleed to death?

Post 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
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Can I make my bleed to death?

Post by swado95 »

So will I bleed when shot and stop when im healing?
User avatar
eliminator
Second Lance Corporal
Second Lance Corporal
Posts: 118
Joined: Wed Aug 19, 2009 3:39 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany

Re: Can I make my bleed to death?

Post by eliminator »

you will lost your live only while you havn't 100% life
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Can I make my bleed to death?

Post 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"
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Can I make my bleed to death?

Post by Fiodis »

Which odf is that?
User avatar
eliminator
Second Lance Corporal
Second Lance Corporal
Posts: 118
Joined: Wed Aug 19, 2009 3:39 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany

Re: Can I make my bleed to death?

Post 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
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Can I make my bleed to death?

Post by swado95 »

Well I did that I added 5 and nothing happened after I was shot.
User avatar
eliminator
Second Lance Corporal
Second Lance Corporal
Posts: 118
Joined: Wed Aug 19, 2009 3:39 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany

Re: Can I make my bleed to death?

Post 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...
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Can I make my bleed to death?

Post 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.
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Can I make my bleed to death?

Post 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.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Can I make my bleed to death?

Post by swado95 »

I got it to work but only for one unit.
fiddler_on_the_roof
1st Lieutenant
1st Lieutenant
Posts: 460
Joined: Wed Nov 12, 2008 5:28 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Can I make my bleed to death?

Post by fiddler_on_the_roof »

so add that part to all the units you want it for
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Can I make my bleed to death?

Post by Fiodis »

Or add it to their parent odf.
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Can I make my bleed to death?

Post by swado95 »

Well also I cant heal
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Can I make my bleed to death?

Post by Fiodis »

What do you mean? You can't heal while standing next to a health droid, or from picking up a health canister?
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Where I whant to be.

Re: Can I make my bleed to death?

Post by swado95 »

Cant heal by picking up health.
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Re: Can I make my bleed to death?

Post 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).
Post Reply