Home   Help Search Login Register  

Author Topic: Stretcher Team?  (Read 1908 times)

0 Members and 1 Guest are viewing this topic.

CarlHill

  • Guest
Stretcher Team?
« on: 09 Dec 2002, 23:31:27 »
Anyone ever done a script to simulate a stretcher team? Is it even possible? What about some way to simulate carrying out wounded troops? There are a couple of us interested in doing a Helo only campaign. It would involve medevacs, of course! If there were some way to get the wounded carried to the extraction chopper.... Also, does anyone know how to crash a chopper in a cut scene, then have the injured crew come limping out of the smoldering wreckage to a safe zone? Any ideas would be appreciated.

CH

kevinfostereditguy

  • Guest
Re:Stretcher Team?
« Reply #1 on: 10 Dec 2002, 18:14:03 »
to have a guy limping away from a crash, after a certian trigger what the plane goes through, put in the trigger's init field "plane setfuel 0" and/or "plane setdammage 0.8" the plane should start to fall (and smoke if you added the second bit). this bit is a bit touch and go to see where the plane will land, you want to make it go to a waypoint after the trigger in the genral area you want it to crash at and keep moving te plane and waypoint until you get the desired location of the crash.

next, you want a trigger or script to detect when the plane had been destroyed, for example try having this script running all the time-


#loop
!(alive plane): goto "limpaway"
goto "loop"

#limpaway
survivor setdammge 0.5
survivor setpos [(getpos plane select0)+10, (getpos plane select1), (getpos plane select2)]
survivor goto marker

exit


the "survivor" should be name of the guy to limp away from the crash and you should place him far away from the event. he should teleport near the plane when it crashes and go to the "marker", what would most likley be a game logic named "marker". this should look like he is limping away from the wreckage of the plane hopefully. this is all off the top of my head, so anyone can enhance this would help probably.

i have a good idea for a stretcher team script, but its too long to write here at the mo and i dont have much time, so ill post it later. tell me how these work out

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Stretcher Team?
« Reply #2 on: 10 Dec 2002, 18:46:44 »
@ KFG

almost right - som erors (understandable wen knowin dat u r back 2 script only recently

da script should b dis

Code: [Select]
@ !(alive plane)


#limpaway
survivor setdammge 0.5
survivor setpos [(getpos plane select0)+10, (getpos plane select1), (getpos plane select2)]
survivor domove getpos marker

exit

wen u wanna move soldier somwere u use domove command (or move) - nd u dont need a loop u can use da @ it meens at - so wait u have der (in my script) is - at not alive plane or when da plane is dead continue

LCD OUT
« Last Edit: 10 Dec 2002, 20:12:47 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

kevinfostereditguy

  • Guest
Re:Stretcher Team?
« Reply #3 on: 10 Dec 2002, 19:52:46 »
heh, yeah, like i said it was off the top of my head, thanx, LCD  ;). anyway, heres my idea for a paraedic script. it consists of 2 medics getting in a vehicle, a jeep we will call "ambulance" when a guy gets injured. this is very rough and just a theory but you should get the general idea.

make a script called "man1status.sqs" and put it in the guy's init field to activiate when it starts, make shure you call him man1

start with a check on the guy to see if his health has changed, ie, <=0.1 and make it got to (on the same script) man1callforparamedic, just change whatever you want for man1 to be. on the man1callforparamedic bit, make it liek this-

#man1callforparamedic
medic1 getindriver ambulance
medic2 getincargo ambulance
~3
medic1 goto man1

#checknearman
?(medic1 <= 100 man1):goto "getout"
goto "checknearman"

#getout
medic1 exit ambulance
medic2 exit ambulance
(btw i cant remember the command for getting a guy to exit a vehicle)
medic1 goto man1
medic2 goto man1

#checkifclose
?(medic1 <= 5 man1):goto "pickupman1"
goto "checkifclose"

now, you can use this to get the medics to get in their ambulance, drive to the injured man and get close to him, but you can get one to heal or put in the jeep, ill let u decide.

btw, ull have to do this for each man and make multiple paramedics and change the scripts what will be very clunky, but should work.
?(medic2 <= 5 man1):goto "pickupman1"

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Stretcher Team?
« Reply #4 on: 10 Dec 2002, 20:21:32 »
@ KFG - pay atetinion m8  ;) i dont wanna fix ur theroetic scripts all around da site ;) :D

so here is how ur last bites of scriptin should b

Code: [Select]
#man1callforparamedic
medic1 assignasdriver ambulance
medic2 assignascargo ambulance
[medic1,medic2] ordergetin true
~3
medic1 domove getpos man1

@ medic1 distance man1 <= 100

unassingvehicle medic1
unassingvehicle medic2
[medic1,medic2] ordergetin false
@ not ((medic1 in ambulance)) and (not (medic2 in ambulance))
medic1 domove getpos man1
medic2 domove getpos man1

@ "_X distance man1" count [medic1,medic2] < 1

rest of code

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

kevinfostereditguy

  • Guest
Re:Stretcher Team?
« Reply #5 on: 10 Dec 2002, 20:23:36 »
since my cd has gone again, and i cant find a no-cd crack i cant test em sorry

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Stretcher Team?
« Reply #6 on: 10 Dec 2002, 20:32:16 »
just try 2 remember da commands  ;)

dere is no goto 4 soldiers use domove

loops have 2 have delays nd u beter use @ conditons  ;D

dats all

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

CarlHill

  • Guest
Re:Stretcher Team?
« Reply #7 on: 10 Dec 2002, 22:31:39 »
Thanks guys, I will fiddle with these until I figure out exactly how to use them! I'm still practicing with the editor commands little by lttle until I get a good grip on them. Then I will start playing with scripts, hopefully next week. If there is no animation for carrying bodies, is there any way one could be made and put in? I assume not, but one never knows. If I modelled a liferaft as an object,would it be possible to place it on the water, then add a person to it? I haven't quite figured out how the water works yet. I have read that boats and other static ojects can not be landed on, is this true? Why couldn't one just add an "H" at the same height as the object and center it in the landing location?

CH

kevinfostereditguy

  • Guest
Re:Stretcher Team?
« Reply #8 on: 11 Dec 2002, 12:19:01 »
hmm, for the medics carrying bodies, im not shure... you could always have a looping setpos command to have the injured guy on the back of the medic like he is fireman carrying him? im not shure, ill have to look this up.

CarlHill

  • Guest
Re:Stretcher Team?
« Reply #9 on: 11 Dec 2002, 23:00:47 »
Fireman's carry would be fine, how do you do it? Hell, I can't even get the stupis helicopters to land where I tell them! This editor is getting the best of me.

CH

kevinfostereditguy

  • Guest
Re:Stretcher Team?
« Reply #10 on: 11 Dec 2002, 23:22:31 »
lol, im getting ahead of myself here aswell. i think the best idea would be to have the car go to close as possible to the injured, then when the medics get in close to the injured, play an aimination and have the injured guy appear in the car so he can be driven away. simpler, but im not that experienced to help you with more than i have at the mo

CarlHill

  • Guest
Re:Stretcher Team?
« Reply #11 on: 14 Dec 2002, 00:28:03 »
OK guys, after thinking this over, I believe you have come up with something.

See if you can work something out like this. Instead of an ambulance, I'm carrying two medics in my Blackhawk. I land at a crash site or somewhere that a firefight has left a bunch of guys down. I need to order them out, then myself and the gunner will provide cover fire while they search for wounded. Can you make them find survivors, heal them enough to walk/limp, then escort them to my Blackhawk for Medevac?  That is very similar to what you are talking about. Instead of using the ambulance, I'm using a helicopter. What do you think, would it be easy to write? I would initialize the script apon arrival at the LZ waypoint with a trigger, right?

CH