OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: zsa_zsa_rasputin on 19 Sep 2002, 17:30:31

Title: Somebody help that man!!! Have a look at this idea :)
Post by: zsa_zsa_rasputin on 19 Sep 2002, 17:30:31
Would it be possible to have some kind of a "Pick up wounded" action to help drag a wounded comrade behind cover...?

Animation wise...
Maybe if you just had the DRAGGING unit in a crouch (Cant fire whil dragging or being dragged though)
And the DRAGGED (Wounded) unit just SETPOS'd in a the "medic healing while the guy is lying down" position.

And just slowing down the DRAGGING unit a LITTLE but speeding up the DRAGGED unit (A happy medium in between)

And also - if this CAN be done - if you could also have another unit helping to drag and speed not being affected at all?

(I think it would be great to see in a mission)
(Especially if someone can find a better way of doing it animation wise(!))

Dan  ;D
Title: Re:Somebody help that man!!! Have a look at this idea :)
Post by: Aeon on 20 Sep 2002, 00:58:25
I tried long time ago, but I failed : I used setpos with loop, don't look really good and after few step, the dragged unit just die !
I didn't understand why but it's the way with ofp engine... :-\
Title: Re:Somebody help that man!!! Have a look at this idea :)
Post by: Spliff air on 29 Sep 2002, 11:40:03
that drag script would be good on a D-Day landing
Title: Re:Somebody help that man!!! Have a look at this idea :)
Post by: Scratchdat on 02 Oct 2002, 00:36:24
Hey, some bloke cracked the animation files. We may soon be able to edit animations  :o :o :o!!

SPREAD THE WORD

its at http://www.natosoldier.com

The end of frustration is nigh...
Title: Re:Somebody help that man!!! Have a look at this idea :)
Post by: O Neil on 10 Oct 2002, 07:51:36
Hey, I'm just an amature scriping dude, but just to let you know, you have the approval of a total stranger that I thihnk this idea RULES !!!!!!!!!!!!!

O neil


 :gunman:        :help:
Title: Re:Somebody help that man!!! Have a look at this idea :)
Post by: Fox2 on 14 Oct 2002, 21:52:04
Could be possible with 1.85 and the setvelocity command. I don't know enough about it, however, to tell you how.
Title: Re:Somebody help that man!!! Have a look at this idea :)
Post by: Aeon on 16 Oct 2002, 19:17:27


[attachment deleted by admin]
Title: Re:Somebody help that man!!! Have a look at this idea :)
Post by: Viriato on 22 Oct 2002, 12:56:24
"QUOTE :and if unit carrying lay down, the presumed injured unit stay stand up,"

Unitname setunitpos "UP" ; Unitname setbehaviour "CARELESS"
 ;)

That should be easy to implement via scripting.
Title: Re:Somebody help that man!!! Have a look at this idea :)
Post by: O Neil on 29 Oct 2002, 08:58:12
Soz, it's me again making totally pointless comments. As I said, basic scripter, but just though of something that may (1% chance)

Is there any way you could treat the man as a flag?

this setFlagTexture "USA_vlajka.jpg"; this setFlagOwner aCarrier

According to people, that makes the flag travel with the car for example.

Soz if I wasted time.

O Neil

PS: soz again
Title: Re:Somebody help that man!!! Have a look at this idea :)
Post by: Aeon on 30 Oct 2002, 00:00:05
O Neil, unfortunely this won't work.
I think it may work if we have a new walking animation (look attach picture)
Title: Re:Somebody help that man!!! Have a look at this idea :)
Post by: dwolf on 30 Oct 2002, 17:03:51
 Ok got a working script for moving an object including man.
Here is a simple everon mission as an example.Use pbotools to break apart the files.This is a radio command script so as not to clutter the [] commands.So hit 0 to bring up radio then 0 to bring up push command,execute this.You need to stand close to man first to impliment command..works great.It will take quite a bit to put this to use for more than one object to move,but mostly it would be just using same files,just implimenting them with renaming the one one file move1.sqm,move2.sqm etc.
 If you like this script might give me some credit,worked very hard at it,it was not easy.Also credit should go to Gutterfunke,it is a derivative of his work.