Home   Help Search Login Register  

Author Topic: MEDIC  (Read 2121 times)

0 Members and 1 Guest are viewing this topic.

Offline MeltedAd

  • Members
  • *
  • Damn it all to the bowls of bloody hell
MEDIC
« on: 29 Sep 2003, 09:57:44 »
Can a script be made so when a member of a group is wounded he shouts for a medic? I see there are three different Medic calls availible in the editor. would not a script detecting wounds be able to get that unit to call medic?

I only know alittle bit about scripting if someone can point me in the right direction i would be greatful.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:MEDIC
« Reply #1 on: 29 Sep 2003, 14:22:36 »
Use the getdammage along with the action command for healing at medic. Although the getdammage is strange.

keou

  • Guest
Re:MEDIC
« Reply #2 on: 29 Sep 2003, 16:02:42 »
Use the getdammage along with the action command for healing at medic. Although the getdammage is strange.

i did a seach and couldn't find the action command for healing at the medic.  do you know where i could locate this?  it sounds interesting. :)

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:MEDIC
« Reply #3 on: 29 Sep 2003, 16:39:57 »
Look at the thread "The Time For Action Has Come!" at Ed/scripting general.

:beat: *Gets Mediced* :beat:

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:MEDIC
« Reply #4 on: 29 Sep 2003, 21:56:30 »
Place a trigger, and in the "activation" field, replace "this" with: getdammage man > 0. man is the name of the man you want to shout. Then press the "effects" button, and choose the appropriate medic sound.

That is about the simplest way to do it.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

KyleSarnik

  • Guest
Re:MEDIC
« Reply #5 on: 03 Oct 2003, 03:20:46 »
Ok I just put this little script together and it works perfectly.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:MEDIC
« Reply #6 on: 03 Oct 2003, 22:40:36 »
Your script looks good, except for the very first part:

Code: [Select]
#health
_unithealth = Getdammage _unit
? _unithealth > 0.3 : goto "callmedic"

~5

?!(alive _unit) ; goto "exit"
goto "health"

This would be better if you used the @condition command, instead of doing a constant loop:

Code: [Select]
#health
@(getdammage _unit > 0.3) OR !(alive _unit)
?!(alive _unit) ; goto "exit"
goto "callmedic"

This would run better and reduce lag.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

deaddog

  • Guest
Re:MEDIC
« Reply #7 on: 04 Oct 2003, 01:28:41 »
It is actually better to use a loop with a 5 second delay.  The @ condition checks every .5 seconds, thus using more processor time (like a trigger).

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:MEDIC
« Reply #8 on: 04 Oct 2003, 07:52:26 »
Roger that.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline MeltedAd

  • Members
  • *
  • Damn it all to the bowls of bloody hell
Re:MEDIC
« Reply #9 on: 04 Oct 2003, 11:46:01 »
Thanks guys ;D This is bloody perfect :thumbsup:I suppose a similar script could also shout "cover me", "Enemy spotted, open fire!" or "Let em have it" when the enemy is detected?

I just have two questions.

1/Would it be possible for the injured unit to roll around on the floor untill the medic gets to him and the healing process begins ???

2/Can the "Medic" call be louder???
« Last Edit: 04 Oct 2003, 12:05:34 by MeltedAd »

KyleSarnik

  • Guest
Re:MEDIC
« Reply #10 on: 04 Oct 2003, 18:07:57 »
1. Explain..?

2. Not with out making a new sound...

GrimMonkey

  • Guest
Re:MEDIC
« Reply #11 on: 04 Oct 2003, 19:08:26 »
1: I think he means have the injured roll on his back like he does when being healed while prone. It's some sort of: This SwitchMove "FXLying...something" just look for it ;)

2: The only way I see it possible is to use the FadeMusic command but make it louder instead (possible  ???).


Beware the GrimMonkey

Offline MeltedAd

  • Members
  • *
  • Damn it all to the bowls of bloody hell
Re:MEDIC
« Reply #12 on: 04 Oct 2003, 19:10:41 »
The healing anime. Could this be looped or something to draw it out abit? So when a unit is quite injured he does the healing anime(rollin around) untill a medic turns up and heals him.

KyleSarnik

  • Guest
Re:MEDIC
« Reply #13 on: 04 Oct 2003, 21:25:22 »
You could use switchmove in a loop.... but I dont know the switchmove for healing... plus you would have to force him on the ground: _unit setunitpos "DOWN"  Well maybe I will update the script, but right now im workin on another one....   ::)

KyleSarnik

  • Guest
Re:MEDIC
« Reply #14 on: 04 Oct 2003, 23:24:37 »
Ok he rolls around on the ground now when hes hit, but if I use the heal action  he will heal at the medic before the medic even gets do him, so how do I would I make him to it if the medic was a certain distance away from him?