Jump to content
Sign in to follow this  
Doolittle

Fun with setvelocity

Recommended Posts

It's raining Angelina!

1017200211255261.jpg

At least all of them didn't die when they hit the ground.  wow.gif

_obj = _this select 0

_pos = getPos _obj

#loop

~0.1

_o = "angelina" createVehicle _pos

_o setVelocity [random 5, random 5, random 100]

goto "loop"

Doolittle

Share this post


Link to post
Share on other sites

I can see lots more crazy things coming out soon, lets have a compition 'who can make the most crazy thing'

RED

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (RED @ Oct. 16 2002,21:18)</td></tr><tr><td id="QUOTE">I can see lots more crazy things coming out soon, lets have a compition 'who can make the most crazy thing'

RED<span id='postcolor'>

I know one: who is the fastest biker?

Share this post


Link to post
Share on other sites

Check this out:

1017200211255341.jpg

Here's the code:

_obj = _this select 0

_pos = getPos _obj

_x = _pos select 0

_z = _pos select 1

_y = _pos select 2

_p = [_x, _z, _y + 1]

#loop

~0.1

_o = "FxExploGround1" camcreate _p

_o setVelocity [random 5, random 5, 10]

_o = "FxExploGround2" camcreate _p

_o setVelocity [random 5, random 5, 10]

_o = "FxExploarmor1" camcreate _p

_o setVelocity [random 5, random 5, 10]

_o = "FxExploarmor2" camcreate _p

_o setVelocity [random 5, random 5, 10]

_o = "FxExploarmor3" camcreate _p

_o setVelocity [random 5, random 5, 10]

_o = "FxExploarmor4" camcreate _p

_o setVelocity [random 5, random 5, 10]

goto "loop"

Man I could go nuts with this setVelocity stuff!!  Imagine doing the dirt chuncks like above but behind your bike like a roster trail as you tear up the earth!  Haha.

Doolittle

Share this post


Link to post
Share on other sites

Excuse me but your jpg's is not working. We haven't permission and acces to see your pictures.

Share this post


Link to post
Share on other sites

Links don't work.  Sorry about that!  I haven't had the time to find a site to paste up pics.  In the meantime please check out this page REMOVED to see the pics I was trying to post earlier.

UPDATE: okay I found a site.

Doolittle

Share this post


Link to post
Share on other sites

TALK ABOUT REALISTIC!!!

1017200211262926.jpg

1017200211262846.jpg

Pictures of me throwing stuff at a flagpoll with setvelocity.  Guess what!?  In real life, if you throw something at a 45 degree angle from the ground at a velocity of 20, it'll land on flat ground 42 feet away from you in 2.9 seconds (got this from an Excel spreadsheet).  I set it up in OFP so that it threw something at a 45 degree angle, velocity of 20 and it hit the ground about 40 feet away from me and in 3.5 seconds (calc. done by eye)!!  Very close to the real thing!  This means they got the gravity constant (9.8) right for OFP!  Bohemia, you guys are insane!

Doolittle

Share this post


Link to post
Share on other sites

Oh, that thread is a thing of beauty! I had no idea people were doing that kinda stuff!

How did they take those pictures though? I mean, from various vantage points...at just the right time..do they freeze time?

Doolittle

Share this post


Link to post
Share on other sites

Either you re-do a stunt several times. or you press 'print' then alt+tab to pause and leave the game. and copy-paste it from your clipboard to e.g. Paint. When you get alt-tap again you un-pausa the game and take the next picture. Very simple, I know, but I havent found a different solution yet! confused.gif

Share this post


Link to post
Share on other sites

you also might be able to make a better rapelling script.

Share this post


Link to post
Share on other sites

Did someone say cannonball?  Er, I mean barrel

101820026041246.jpg

I found a way to launch objects that get "stuck" in the floor until you shoot them...

_obj = "barrel1" camcreate _gun

_obj setvelocity [_vx, _vz, _vy]

_obj = "grenade" camcreate _gun

The barrel1 is created & then the grenade hits it (they're ontop of each other) and the barrel1 goes flying with it's setvelocity. Woo hoo!

Doolittle

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×