Was thinking some yesterday when i had a game, kegetys did the "drop blood" script when you got wounded, but why wasn't there any script for making so that your soldier bleeds to death when he real wounded?
So to make a story short, i made a script that triggers when your soldier gets a hit (eventhandler) and then begins to slowly kill your soldier unless you gets to a medic and heals. And i want to share this one with other people (not 100 % done but will fix the rest during this week) since it will make the medic more important on the battlefield. The killing goes slow. After one hit with a bullet until you gets really "dead" it take around 10-20 min, of course you can adjust that on your own. Another thing is that you can start with half dead people in the mission without them have to die during the mission (maybe you want to have some half dead ones don't ask me why) but then they will not die since the script is triggerd on the "hit" event. But if you want the soldiers to slowly dead you can just put the script in the units init..
What i would like to add/fix during this week.
# Making it 100 % multiplayer safe. Current status unknown, not tested
# "Fade out". Making a title cut or something that makes part of the screen black (simulating a "blackout") and making your "combat value" less. This will not be so often that you can't go back to safe place. Just enough to make it hard to be in the front line and fight.
Thats all for now.
; Made by granQ for sfp mod. http://www.ofp.axlegames.com/~sfp/
; Thanks to Lt Dan for suggestions and all in #swepack for your help.
_dude = _this select 0
? (SFPbleed) : Exit
#loop
_blood = getdammage _dude
~7
?(player == _dude) : hint "player true"
? (_blood) < 0.1 : exit
? !(alive _dude) : exit
_blood = _blood + 0.00006
_dude setdammage _blood
goto "loop"
Just to clear some things out.
? (SFPbleed) : Exit
this the mission maker can put to true making the bleed script Exit and people won't bleed to death.
?(player == _dude) : hint "player true"
This is just temp until i make the "black out" part.