Home   Help Search Login Register  

Author Topic: Dead man Floating  (Read 1224 times)

0 Members and 2 Guests are viewing this topic.

Dubieman

  • Guest
Dead man Floating
« on: 25 Apr 2004, 01:44:34 »
Is there any way to script a guy floating dead in the water? I've fallen in and I sink like a rock or like the water is just a color on the map with nothing underneath.

It might look good for boat ambushes or harbor or bridge attacks.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Dead man Floating
« Reply #1 on: 25 Apr 2004, 02:10:30 »
uhm...i have a Coastguard Chopper which can float....afaik there's a float.sqs in the .pbo of the addon....de-pbo this one and watch the script could give ideas...

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Dead man Floating
« Reply #2 on: 25 Apr 2004, 02:14:29 »
Code: [Select]
_floatplane = _this select 0
_floater = "floater" camcreate [getpos _floatplane select 0, getpos _floatplane select 1, 0.5]

#loop
_floater setpos [getpos _floatplane select 0, getpos _floatplane select 1, 1]
goto "loop"


hmmm....doesn't really help i guess

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Dead man Floating
« Reply #3 on: 25 Apr 2004, 10:41:41 »
Ooooo! Nonononononono! Watch that loop m8y, u have to put in a delay!

:beat: *Gets Shot* :beat:

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Dead man Floating
« Reply #4 on: 25 Apr 2004, 16:29:49 »
it isn't my script...just extracted it from the Coastguard chopper...but it isn't helpful at all i guess :(

csde-PiLLe

  • Guest
Re:Dead man Floating
« Reply #5 on: 25 Apr 2004, 19:18:42 »
hmm. the ocean really just is a texture. floating people would be cool, though.

I was thinking... maybe an "empty boat" that "looks like a dead soldier"?

And, most dead people wont float. Only if they are wearing a device that has some positive boyu... boya.. drift up. (boy-en-see, thats how the word should sound...)

Imagine a soldier with steel or kevlar helmet, all-metal-rifle, cooking gear, canteen and all that gear falling into the water. He WILL sink like a rock.

Bodies come back up due to decompositing and gas in their intestines, some actually WILL stay afloat due to certain circumstances, but chances are rare you will find some body afloat next to the attack boat or such, especially if some time has passed.

BUT, many bodies will be washed ashore by the current, so you might have bodies along the shore from the attack which took place the night before ;)

Cheers
PiLLe

Dubieman

  • Guest
Re:Dead man Floating
« Reply #6 on: 26 Apr 2004, 20:39:06 »
Seems complicated...

It would make the atmoshpere and enviroment a little more errie. Plus soldiers in OFP drop their guns when they die so it would make sense if some floated but most rifles are only five to eight pounds right? Wouldn't some guys helmets fall off if the strap wasn't on. It seems in OFP guys don't wear body armor but I could be wrong.

Might look good for Vietnam stuff in the rivers. Only I've only gotten the AI guy to fall in the water twice, once by satchel and once by blowing his brain out while he "jumped" over the the guardrail.
« Last Edit: 26 Apr 2004, 20:40:51 by GuiltyRoachKilla »

DBR_ONIX

  • Guest
Re:Dead man Floating
« Reply #7 on: 27 Apr 2004, 17:02:16 »
I may have a quick go at this
*Looks for BRESSB's boat tutorial and a soldior model*

Only prob I can see sofar is.. well.. "Get in guy as driver" ::)
:P:P:P
- Ben

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Dead man Floating
« Reply #8 on: 14 May 2004, 19:59:13 »
Code: [Select]
_floatplane = _this select 0
_floater = "floater" camcreate [getpos _floatplane select 0, getpos _floatplane select 1, 0.5]

#loop
_floater setpos [getpos _floatplane select 0, getpos _floatplane select 1, 1]
goto "loop"


hmmm....doesn't really help i guess

Here is what that script is doing:

It is placing an object underneath the plane, to act as a "floor" for the plane to sit on. It then continuously moves the floor underneath the plane.

For bodies, you could place the body on top of the "floor", and it should 'float' like the float plane. But you don't need to have the loop to move the 'floor' around, since the body isn't moving, like the plane is.

Only problem is the script would require an addon, unless you can find a suitable BIS/Editor Upgrade object to use as a "floor" for the body.
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!

Dubieman

  • Guest
Re:Dead man Floating
« Reply #9 on: 15 May 2004, 16:33:56 »
The other problem is animations too. The standard ones aren't good for a floating body.  

But how do BMPs float then? I don't see the use of making a script to place a floor under the guy if the water goes up and down. ???

EDIT: Wait isn't it....

this canfloat    

« Last Edit: 15 May 2004, 16:34:52 by GuiltyRoachKilla »

DBR_ONIX

  • Guest
Re:Dead man Floating
« Reply #10 on: 15 May 2004, 17:10:55 »
I say that discused a wee while back, and if I remeber, thats just to see if it can float :(
Whatabout, making a new "floor" addon, in the same one, put a new anim :)
Then just include it with the mission (it will be like 5kb)

But I'll maybe, if I remeber, to look in the commented configs for the bmp
- Ben
BTW, the SebNam pack 2 has an amfibious tank... Again, I'll repbo SebNam1a.pbo and look at the config
:)
- Ben
Oh, btw, I had a go at modifing the BLB Uk forces (Beta forum), just to see how hard it would be.. I got a guy in a floating ish pose. But the file would be huge, or if I used the textures with the pack, you would need to download it.. So I scraped the idea :(
Any one got a P3D of a soldier? Or.. I might have a go at a static floating anim *Blows dust of OFPAnim, winds the handle up, and ofpanim slowly gets starts up* :P
I might end up going out for some random reason, so no promises :(
« Last Edit: 15 May 2004, 17:14:58 by DBR_ONIX »

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Dead man Floating
« Reply #11 on: 15 May 2004, 19:53:53 »
The other problem is animations too. The standard ones aren't good for a floating body.  

But how do BMPs float then? I don't see the use of making a script to place a floor under the guy if the water goes up and down. ???

EDIT: Wait isn't it....

this canfloat

There is a "canfloat" property in the CONFIG of a vehicle, but I don't think you can make UNITS float. Even if you could, you would still need to make a whole new addon where you reconfig all the units to have the "canfloat" property.

I think DBR_ONIX has got a good idea; you can make a floor object, like I talked about, but you can also include a "floating body" animation in the addon.

The water moving up and down may be a good thing, too, because it would look like the bodies are bobbing up and down in the water.
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!

DBR_ONIX

  • Guest
Re:Dead man Floating
« Reply #12 on: 16 May 2004, 16:38:58 »
Done the anim (Not tested it yet, but it should be fine)
Do the usual guy1 switchmove "drowning" thing in a trigger/script

I've not worked on including the floating thing yet..
But..
Is it even needed....
The anim should hold the guy at the same height.. And it doesn't matter if he takes dammage, it's already full..
Like I said, I've not tested it yet

- Ben
Oh, and I guess it looks okay, but I ain't gonna try and find reference pictures :P (j/k, a pretty bad one at that :P)
[Edit, I'm really bad at forrgeting to attach sutff ::) :P]
« Last Edit: 16 May 2004, 20:15:52 by DBR_ONIX »