Home   Help Search Login Register  

Author Topic: Incapasitation and carrying bodies...  (Read 656 times)

0 Members and 1 Guest are viewing this topic.

Offline pexmo

  • Members
  • *
  • I'm a llama!
Incapasitation and carrying bodies...
« on: 09 Dec 2004, 11:17:22 »
HEllo all.

Im wondering if this can be solved by you editing aces :

We have a coop campaign going on but we have a big problem, we die to often hehe.

What i would like to do is to make the game have a % chanse of displaying a text message when a player die that says something like "dead" or "incapacitated".

Another thing im wondering is if its possible to drag/carry dead bodies in anyway. This would be great for getting a fallen player to a safe zone.

Any input on this is greatly welcome!

/peXmo

Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:Incapasitation and carrying bodies...
« Reply #1 on: 09 Dec 2004, 11:59:54 »
If anyone know if there is a way to force a player to be forced to drop his weapon (or make him unable to fire or act att all), forced to lie down and bleed when the game gives them dead status.... that would also work well. Then a medic can get to them and "fix" this.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Incapasitation and carrying bodies...
« Reply #2 on: 09 Dec 2004, 12:31:28 »
Trigger

Condition:   not alive loon1
On activation:    [loon1] exec "death.sqs"

Script death.sqs

; this script displays a message when somebody dies
; there is a 50% chance that the message will appear

_loon = _this select 0
_rand = random 1
? _rand < 0.5 : exit
hint format ["%1 is dead!", _loon]
exit

Not guaranteed at all, but hopefully helpful.
Plenty of reviewed ArmA missions for you to play

Sophion

  • Guest
Re:Incapasitation and carrying bodies...
« Reply #3 on: 09 Dec 2004, 12:40:14 »
I remeber seeing some action pics using the Tears of the Sun SEALS from SBJ, i'm not sure were they got the anims or scripts at.

I'll keep my eye on this thread.

Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:Incapasitation and carrying bodies...
« Reply #4 on: 09 Dec 2004, 13:26:19 »
Thx for the script ill try it.

On the tears of the sun action pics: isnt those just using anims for that? well i hope im wrong i have seen ppl make pics of soldiers carrying other soldiers but i havent seen anyone do it ingame anywere. Hopefully some genius has a answer to this.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Incapasitation and carrying bodies...
« Reply #5 on: 09 Dec 2004, 14:28:00 »
It's possible to carry a unit, but that would need a custom animation and a script to make it look good. The same goes to dragging, but it's easier to do with just a script.

Code: [Select]
;unit is the one to be dragged by player
_unit = _this select 0

#loop
_oldtdir = getDir player
_unit setPos [(getpos player select 0) - sin (_oldtdir + 0) * 1.2, (getpos player select 1) - cos (_oldtdir + 0) * 1.2, 0]
~.01
? ((getDir player) != _oldtdir) : _unit setDir (_oldtdir+180)
?!alive player: exit
goto "loop"

I made that for you on the desert island and it works ok. Obviously you can have the player literally dragging the dead body from his legs or arms without a custom animation. The above is just a simple, ugly way of doing it.
You can have the above launched with an action and then add a 'drop body' action to exit the script if you like. But that's another story..
Not all is lost.

Sophion

  • Guest
Re:Incapasitation and carrying bodies...
« Reply #6 on: 09 Dec 2004, 14:45:04 »
Is there a way to modify it so he is on the guys shoulders?


Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:Incapasitation and carrying bodies...
« Reply #7 on: 09 Dec 2004, 15:12:24 »
Thx alot Artak.

Well im realy green to scripting but how would i as a script ad a animation and a action? There might be a animation that makes it look a bit better in the y2k3 mod.

And one other thing: If i want to force the player that drags to shoulder his weapon, making him move slower... how could that be added.

Anyhow thz alot again ppl for both the scripts. If i get them to work i have solwed the prob... ugly sure... but its better then nothing.


Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Incapasitation and carrying bodies...
« Reply #8 on: 09 Dec 2004, 17:06:01 »
Why not just use the revive script available at ofpec?  Although you can not drag or carry someone it at least simulates the action of rescue while under enemy fire.
urp!

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Incapasitation and carrying bodies...
« Reply #9 on: 09 Dec 2004, 18:10:57 »
Quote
Is there a way to modify it so he is on the guys shoulders?
No not without a custom animation, that would just make it look silly.


I got a 15 minute inspiration and wrote the script a little better and to be executed with an action.
Features:
- Used with two actions. "Drag Body" and "Drop Body"
- "Drag Body" drags a dead solder behind
- "Drop Body" drops the body
- Sets weapon to back when "Drag Body" action is used
- Running with primary weapon drawn drops the body
- Getting into a vehicle drops the body
- Only one body at a time can be dragged


Take a look at the attached example mission. Unzip it to your ofp/users/missions/   folder and load up in editor on the desert island. Needs Resistance.
Not all is lost.

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
« Last Edit: 10 Dec 2004, 01:59:40 by Blip »
...NIGHT WALKER....

Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:Incapasitation and carrying bodies...
« Reply #11 on: 10 Dec 2004, 08:22:37 »
Artakm what can i say :) thx alot mate!

Blip: Oh that looks real good, know if it is released?

Edit: I tested Artaks script and it works real good, looks funny but it will do the trick as we are not picky :) Thx.
« Last Edit: 10 Dec 2004, 10:17:56 by pexmo »