Home   Help Search Login Register  

Author Topic: Less death more wounds, solution is here  (Read 4050 times)

0 Members and 1 Guest are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Less death more wounds, solution is here
« on: 25 Nov 2004, 01:36:42 »
hello all,
I know there has been a lot of questions about how there is to much death and not alot of realistic wounds.
i will cut to the chase though.

i was watching tv and i got an idea,

if sombody could make a script that detects if somboy is hit and STILL ALIVE. then if they are alive use
this switchMove"CombatDying" on them so that they will be alive but still imoble and lying down. then make some random sidechat choice of "MEDIC!!" or "Im Hit!" or whatever.
when they are hit the nearest team medic imediatly sprints over to them and heals them. and the this switchmove"CombatDying" loop is removed. along with there wound. also if there is not a med then the person will be stuck in the animation for the entire mission. or untill they are killed.


I just need sombody to make this script, and add yet another layer of realisticity(im not sure if thats a word)
to ofp.
thanks,
also check the post on stabo lift

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Less death more wounds, solution is here
« Reply #1 on: 25 Nov 2004, 10:46:43 »
http://www.ofpec.com/yabbse/index.php?board=10;action=display;threadid=17158

It's already being worked on. And what a beautiful thing once it's done.

:beat: *Gets Shot* :beat:

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Less death more wounds, solution is here
« Reply #2 on: 25 Nov 2004, 19:01:54 »
well
yes thats y i made this it seems u were stuck, that was posted so long ago and i found how to make that.

face it dmakatra, by the time you get screaming and moaning animations, sounds and all, ofp2 will be out. my idea can be used while you are working out the other one because it is simple to make.  :P
I dont think youl ever get that idea working, thats y i made this post  :P  :P   :P  :P

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Less death more wounds, solution is here
« Reply #3 on: 25 Nov 2004, 19:11:54 »
It's not me doing it, it's the Nightstalker mod team. They'll get it done.

:beat: *Gets Shot* :beat:

Kammak

  • Guest
Re:Less death more wounds, solution is here
« Reply #4 on: 26 Nov 2004, 21:36:25 »
Well, the scripting you describe is very simple.  I believe the reason no one is making it is because its not needed/wanted.

The "dead" in OFP are the ones that need the work on...they represent both truly dead and the severely incapacitated.  The only thing that would add more "realism" to OFP in this regard would be to randomly spawn a severely wounded guy whenever someone dies, that is immobile, but can't be healed.

You would then have a few non-corpses replacing dead bodies, which can't fight, can't be healed, but are still alive.

In the meantime, everyone else is actually fighting / working on the mission.  :)

There is a script in the editor's depot (which I haven't tried) which will have AI guys collect dead bodies...you could  modify that script to also pick up these newly created "alive but worthless" units....

Still, OFP's only strength is infantry combat...it just doesn't provide the tools to scripters for a well-done medic/corpsman based simulation.




DBR_ONIX

  • Guest
Re:Less death more wounds, solution is here
« Reply #5 on: 27 Nov 2004, 18:56:27 »
Acctualy the reason nothing like this had been done is the ammount of animations that would need to be made..
gtg
 - Ben

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Less death more wounds, solution is here
« Reply #6 on: 27 Nov 2004, 19:07:14 »
Onix is right Kammak, the reason we stalled was not because of the script, it was because precisely 0 animators were interested in helping us.

If we had animators, it would have been simple. Penguin, it can and does work, but without anyone being interested, its died. Plus our scripter was a lazy git who was all mouth and no action. AFAIK hes quit OFP.

Quote
It's not me doing it, it's the Nightstalker mod team. They'll get it done

I feel like a right bastard to let you down, but no, we wont. Me and Fugy were the only ones working, so we've taken our US SF pack and left. We are now working as a 2 man addon team to make our US SF units. Ie, nightstalker no longer exists.

I'm happier working with just Fugy actually. To us, this is more sensible than a mod.

Kammak

  • Guest
Re:Less death more wounds, solution is here
« Reply #7 on: 27 Nov 2004, 20:16:02 »
The lack of animations may be why your idea is dead, but not PenguinMans.  As he pointed out, his idea doesn't need custom animations.  The scripting he described is very simple and is a solution that is completely script based.

However, there just is not a lot of interest, and there are not the right set of tools to do it well.  (Hit model, damage adjustment, granular control over heal effects, etc...)


Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Less death more wounds, solution is here
« Reply #8 on: 28 Nov 2004, 14:21:17 »
1) I know, don't put words in my mouth  :)

2) I disagree. With clever scripting, the tools are all there. Sure they arnt perfect, but there are lots of ways to work around it.

Kammak

  • Guest
Re:Less death more wounds, solution is here
« Reply #9 on: 28 Nov 2004, 23:01:01 »
RE: don't put words in my mouth

???

What are you talking about?


The reason no one has made it is because of lack of interest.  You yourself are proof - you couldn't get any animators to work on your gore script...lack of interest.

BTW - I was never talking about your thing in the first place, but PenguinMans.  His idea does not require animators.  Its just script.  So his idea is not stalled because of lack of animators, as DBR_ONIX tried to insinuate.

I've got the solution I proposed above already written in my head...its very simple.  Its also pointless.  You are just replacing corpses with alive-but-useless models.

There is not a detailed hit model in OFP to make any sort of medic/corpsman based mission worthwhile...there is no work-around for the lack of of granular damage model...its just not there.

Its analogous to the armor problems in OFP - the armor model is horrible, and there is very little that scripting can do to solve it.  Its an ablative model, and the tools to do it right (from scripting) are just not present.  The Hit/Dammage EHs are too flaky for fine control, don't fire at all for some damage levels, and there is no way to abort an event from within an event handler.  So you can't have an EH roll-back the event based on conditional logic.

The disconnect from model to in-game object and scripting access is too great - while some components are in place, the necessary parts just can't "talk" to each other at the scripting level.

This applies equally well to any medical based issues, where you are again dealing with fine hit location, penetration values, and the ability to roll-back damage already incurred before it has effect in the game.

"You just can't get there from here" with OFP.  Unless someone has inline code access, the best you can get is make-believe, "roll-the-dice", add a bunch of screams and throw lots of blood around.

 ::)

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Less death more wounds, solution is here
« Reply #10 on: 29 Nov 2004, 00:23:39 »
We got it fine tuned enough to detect specific limbs...right leg, left leg, right arm, left arm, torso, and head. The rest would have been more down to "rolling the dice" as you put it, to determine exactly what type of wound was caused.

But we also mixed in the ammount of damage into it....so a shot to the leg that caused little damage would have most likely come out as a flesh wound, but a shot that caused alot of damage would most likely be interpreted as a burst artery.

Compared to the current "your either alive or dead" and virtually no inbetween system, much better.

Am i right in thinking you were anti a wound system in the thread about the system we were making? thats why you refer to it as a "gore script" if i also remember correctly you systematically ignored every effort from several different people to describe just how it added alot of aspects to the game....

......things like having to attend to the wounded, having to prioritise casualties, having to choose the correct course of medic action, would have absolutely been possible and absolutely enhanced the medic side of the game.

BTW, under our system, the really stupid "you can be one moment from death, but a medic can instantly heal you back to perfect health" would have disappeared. Instead, casulties either were stabilised (ie thier health didnt change), slowed down (ie, they now had hours to live rather than minutes), or...if you got a procedure wrong (procedures have random chance of failing based on the difficulty and skill of the medic), the casulty would probably die even quicker......

If we had the animators, it would have worked alot better than the current OFP system, even with having to "roll dice" for some parts of it....

Anyway this is all irrelevant. That system wont be done, i've lost contact with our scripter anyway for about the last month (since i closed my mod and started working as an addon team instead).

So penguinman has my total blessing. Go for it mate, yours is the nearest we will get before OFP2 to some sort of realistic wound system.....

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Less death more wounds, solution is here
« Reply #11 on: 29 Nov 2004, 00:33:12 »
people stop arguing over it, it is simple,

If you know how to script continue reading, if you dont do whatever you want.

Go back to the top post, the first post, my post, whatever.

just take 5-10mins, follow my instructions from my first post, test it for your self, put the script in your favorite mission then play it. if its really neat great: then put it in beta test forums then submit it to ofpec. if it dosent work, post your problem here.
if it works but is not so great, keep reading.

if it works but is not so great

simple way to make it good:
tell me if its not good by posting those words HERE.
I will then have a good "chat" :gunman: with my "buddys" in the unified animation mod.
then after much "persuasion"  :beat:     they will agree to help me with my problem.
they will give me a nice wounded animation which u will insert in the loop, in place of deathback.

Kammak

  • Guest
Re:Less death more wounds, solution is here
« Reply #12 on: 29 Nov 2004, 01:21:05 »
Try this out PenguinMan.  It is as close to your first as I could get, given my "limited" motivation for this concept.  :)

Zip includes 3 scripts, a demo mission, and a readme.



Kammak

  • Guest
Re:Less death more wounds, solution is here
« Reply #13 on: 29 Nov 2004, 01:41:06 »
No, I'm not anti-wound script.  I'm simply against childish gore effects being added for eye-candy.

I also know the OFP system, and know that while the *description* of any advanced wound system sounds great, the actual implementation will be poor - not necessarily due to the skill of the creators (whoever they may be), but because of the limits of OFP scripting.  

At the end of the day, you are still left with the fact that OFP defines life as a simple number from 0 to 1.  Everything done is still reduced to moving a real closer to 0 or closer 1.  Scripting can't change that.  Likewise, you can't immobilize a limb through script, detect if a guy has ten shrapnel wounds or a .50BMG hit that tore his arm off.

Things like Tacticians bleed-out scripts are great, but useless until they apply to everyone in the mission, not just players.  I'm all for that.

But throwing the dice when someone gets shot, and "deciding" he got a throat hit and throwing tons of blood around along with gurgling screams...no.  That's just immature and inappropriate.  So yes, I would be against that type of mod.  Whether *your* mod idea was like that or not is irrevelent.  You say it wouldn't have been - fine.  I don't really care.  My initial replies were to Penguinman and HIS suggested script, until you forced the discussion to be about your mod idea.

I'm curious what the reaction will be to the simple demo I made.  I think its quite useless, but to each his own.  :)
« Last Edit: 29 Nov 2004, 01:41:40 by Kammak »

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Less death more wounds, solution is here
« Reply #14 on: 29 Nov 2004, 04:47:31 »
first off, my idea dosent add any gore, it keeps men from sprinting at full speed with a bullet hole in there chest.
2nd: you need to realise that this is a war simulator, not some shoot'em up medal of honer, mow down 50 guys with twin bazookas while running top speed game. OFP is the best! have u ever played medal of honer, it displays your score/ ratings...ect I played the first level of moh allied assault, i believe it was d-day. when they displayed my stats at the end of that level I think i was hit like 1,200 times. it was so horrible, after seeing that stat, i stoped playing imediatly. Then i got OFP, my dream come true. If you cant aprieciate realistic warfare, maby you should join the army.  :)
im not trying to be agressive but thats the way it is.

anyways thanks for the script.

but i cant help but assume that you like those shoot'em up moh type games
again, join the army ;)
thanks

Kammak

  • Guest
Re:Less death more wounds, solution is here
« Reply #15 on: 29 Nov 2004, 05:03:59 »
Too funny.  You couldn't be more wrong.

No pal, I'm a former Marine and a veteran, and now a small business owner.  Which is why I don't appreciate kids trying to add gore, blood, and screaming men to what is an otherwise very good infantry simulator.

I've never purchased a Medal of Honor game.

You also seem to be unable to follow a thread well.  I never said your "idea" did any of those things.  I was addressing a hypothetical gore/"advanced wounding" script.  If you read more carefully you will see that several times I said your script did NOT require any custom animations, which would indicate it did not include extra blood etc...

I'm currently in the process of adding standard small unit immediate action responses and tactical SOPs to OFP, in an easy to use and intuitive fashion.  My goal is turn this very good game into a first rate small unit training tool through scripting and mission design.  There are several companies that are looking to provide turn-key training solutions to various military branches using off-the-shelf commercial products.

OFP is the best of breed as far as infantry simulators go, and it makes for a fun hobby.

So try dropping the smart-ass tone and suggestions before thanking someone for a custom script in the future.

And you're welcome.

 ::)

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Less death more wounds, solution is here
« Reply #16 on: 30 Nov 2004, 02:19:27 »
1. execelent job on the script, you should submit it, you may not like it but others will.
2. I couldnt disagree with you more about everything except that we both like ofp.
3. are u talking about traning for security companys. Like mercenarys. I hate mercenarys, they are never the solution to a conflict, only a complicator.
4. A veteren huh? tell me a little more about which war u fought in :hmm:
5. I think since this is a War simulator more realistic everthing is best, including blood and gore.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Less death more wounds, solution is here
« Reply #17 on: 30 Nov 2004, 06:45:04 »
* Sui quietly enters the thread and leans his 'keep it on topic!' stick in the corner

SilentHunter_764

  • Guest
Re:Less death more wounds, solution is here
« Reply #18 on: 01 Dec 2004, 11:03:31 »
Hi everyone.

Could this script be very hard to do? AS far as I see it, all you need to do is make a script that activates if the units' dammage is at .2 or whatever, like I know the Setdammage command '1' means your dead, so .2 would be a quater there. Then just make a _unit sidechat "Medic!" with a % and "Help!" or whatever, and then a animation like the medic animation if you 'heal at medic' whilst lying down.

If I can I'll see if I can get a friend to see if he can do it.

Cheers

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Less death more wounds, solution is here
« Reply #19 on: 02 Dec 2004, 00:14:25 »
look at the first page,
kammak, made that script, and u can get it
dont worry about it, the holidays r aproaching,

Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:Less death more wounds, solution is here
« Reply #20 on: 10 Dec 2004, 10:55:04 »
is there anyway to make them stop shooting a soldier thats "out of the action" in the script. Coz as it is now they will take you down anyhow. Sure you get wounded but they still shoot you up to make sure that your dead.

Damn nice script anyway :)

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Less death more wounds, solution is here
« Reply #21 on: 10 Dec 2004, 14:07:34 »
The wounded party needs to be SetCaptive true to stay wounded. Just make sure he isn't going to shoot anyone else though!

Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:Less death more wounds, solution is here
« Reply #22 on: 10 Dec 2004, 14:15:32 »
sorry but how do i do that :)

RunAwayScientist

  • Guest
Re:Less death more wounds, solution is here
« Reply #23 on: 14 Dec 2004, 10:38:47 »

      Well, I looked over that medic script and Kamma's scripting madness skills are showing again. Now, I know there's some script gods out there who can work scripting miracles, and I happen to have something that might just help out.

       Awhile back I was searching for an ambulance type script that would detect a dead guy, go out to him, load him in the ambulance, and head back to the hospital and drop him off in perfect condition.

      Well, I still have that script but the guy who made it for me made an error somewhere and it doesn't work fully. However, the part where it detects the dead guy and goes out to him work like a charm.

       What if the medic AI's (Or a player) had the ability to detect a wounded guy after he yells "MEDIC!" and run out to him? Once the medic's distance is less than 2 (Or something suitable), the medic begins playing the heal animation and applies treatment to the guy...Then, in Kamma's script, the wounded guy is healed up and is allowed to move around and shoot again. But what if we gave him a small penatly? INstead of setting his HP back to 0, what about .2? The wounded guys chances to survive are reduced...Sound like a good trade-off?

        Or, if the wounded soldier's wounds are above the damage level .9 or .8(something severe) the medic could "sustain" him until a medevac ambulance arrives. To sustain him would to put him at maybe a damage level of .4, and keep him in the 'wounded' animation (like in Kamma's demo mission/script) until a ambulance arrives at the medics location, loads the soldier up, and drives him off.

      That would be a pretty good application for an AI medic, and it just might work for the player too. Except using waypoints to show him where his patient is.

       I think that making a medic-scenario might be possible, if someone developes that custom menu that allows you to select what proceedure you'd like to use...You could even have fun with it: Amputate the arm of a guy who has a cold. Or even make a series out of it: Go through medical school and end up Cheif Sergeon General.

--RunAwayScientist
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Ambulance.sqs:

_AmbulancePos = getPos Ambulance11
people = []
"if ({man} countType [_x] == 1) then {people = people + [_x]}" forEach _this
_nCount = count people

#MAIN
@ ("alive _x" count people) != _nCount
_i = 0
#FIND_DEAD
_u = people select _i
_i = _i + 1
? alive _u : goto "FIND_DEAD"

#Ambulance
Ambulance assignAsDriver Ambulance11
[Ambulance] orderGetin true
Ambulance move getPos _u

@ Ambulance distance _u < 15
Ambulance domove getPos Ambulance
[Ambulance] orderGetin false
unassignVehicle Ambulance
Ambulance domove getPos _u

@ unitReady Ambulance
~1
_u setDammage 0
~1
Ambulance assignAsDriver Ambulance11
[Ambulance] orderGetin true
Ambulance domove _AmbulancePos

@ unitReady Ambulance
[Ambulance] orderGetin false
unassignVehicle Ambulance
? (AliveP2 == 1) : [P2] Join Player1; AliveP2 = 0
? (AliveP22 == 1) : [P22] Join Player2; AliveP22 = 0
_u setpos getpos EMGOUT
_u setdir 90
_u switchmove "LyingToTreatedLying";

goto "MAIN"

exit

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Less death more wounds, solution is here
« Reply #24 on: 14 Dec 2004, 13:01:51 »
@Kammak - hope you don't mind the tweaks to your script for illustrative purposes.  My interest in this lies in trying to break-up the too-surgical (to me) nature of AI targeting without resorting to HD ammo etc.  On and off I've been playing around with ideas to try to get AI to disengage after they hit, not kill, something - with varying degrees of failure.

@pexmo - look at the *** remarked changes:



Code: [Select]
; WoundScriptMonitor.sqs by Kammak
; Tweaked for pexmo (untested!) by ACF


_guy = _this
_dam = getdammage _guy

; *** remove _guy from the firefight
_guy SetCaptive true
_guy Join GrpNull
_guy SetCombatMode "BLUE"

_guy setunitpos "DOWN"
doStop _guy
_guy switchMove "CombatToLying"

_rand=(random 3)
? _rand <=1:_guy sidechat "CORPSMAN!!";goto "next"
? _rand <=2:_guy sidechat "I'M HIT!!";goto "next"
_guy sidechat "Ouch.  This hurts."

#next
~2
_guy switchMove "LyingToTreatedLying"
_guy disableAI "MOVE"
_i = 0
#loop
     ~.5
     ? !(alive _guy):_guy switchmove "LyingDying";exit

; *** healed _guy is reset as a target and able to fire in self-defence
     ? getdammage _guy < _dam:_guy switchmove "LyingToTreatedLying";kmkarrWounded = kmkarrWounded - [_guy];_guy SetCaptive false;_guy SetCombatMode "GREEN";exit

   goto "loop"




Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:Less death more wounds, solution is here
« Reply #25 on: 14 Dec 2004, 13:11:27 »
testing .... :)

Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:Less death more wounds, solution is here
« Reply #26 on: 14 Dec 2004, 13:19:24 »
nice the set captive thing seems to work. Although it says something about unexpected aray on a grpnull line

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Less death more wounds, solution is here
« Reply #27 on: 14 Dec 2004, 14:45:01 »
Bu99er! Fallen for the oldest one in the book!

One joins an array to a group thus:

[ACF] Join GrpPlonkers

so:

Code: [Select]
_guy Join GrpNull
should be:

Code: [Select]
[_guy] Join GrpNull


RunAwayScientist

  • Guest
Re:Less death more wounds, solution is here
« Reply #28 on: 15 Dec 2004, 02:01:24 »
       I just found a new script, pertaining to medics, in the pending section. It makes the guy call out for a medic using the games voices, instead of calling out for medic in sidechat. Maybe you could impliment that into the script, for some added spice huh?

http://www.ofpec.com/editors/list.php?show=pending

       What about this idea: When one of the wounded men is down, it randomly picks a medic on the battlefield that is closest to the downed patient (or someone with a medic class) to run over to the guy and administer first aid to him. I could even script that, only problem is I don't know how to detect if a guy is a certain class.

        How about that idea?

--RunAwayScientist
« Last Edit: 15 Dec 2004, 02:02:21 by RunAwayScientist »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Less death more wounds, solution is here
« Reply #29 on: 15 Dec 2004, 02:15:29 »
use the typeof command, i think

RedHouse

  • Guest
Re:Less death more wounds, solution is here
« Reply #30 on: 18 Dec 2004, 00:12:33 »
Code: [Select]
("SoldierWMedic" countType [array__of_units_goes_here]) select 0
("SoldierEMedic" countType [array__of_units_goes_here]) select 0
("SoldierRMedic" countType [array__of_units_goes_here]) select 0

this might work for detectecting the 1st  east or west or resistance medic in an array of soldiers. if you want it to return an array of medics take out the select 0 part.

no garaunties if thats right but its something like that

and i reckon i could probabaly script this script just post the exact details and i'll have a good crack at it.

RedHouse

  • Guest
Re:Less death more wounds, solution is here
« Reply #31 on: 18 Dec 2004, 00:25:59 »
wait i just realised thats wrong because it returns a number not an arrray, but you can still use that command to get the medic