Home   Help Search Login Register  

Author Topic: "Give us a push babe!" Giving objects velocity.  (Read 1894 times)

0 Members and 1 Guest are viewing this topic.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
"Give us a push babe!" Giving objects velocity.
« on: 05 Sep 2002, 20:00:26 »
How to?  I want to create an object and give it a velocity.  Creating an object is easy I can use camrcreate, but how can I give it an initial velocity, (not a setpos).
« Last Edit: 05 Sep 2002, 21:17:33 by [icarus_uk] »

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:"Give us a push babe!" Giving objects velocity.
« Reply #1 on: 05 Sep 2002, 21:11:09 »
I can't & I don't think anybody else has, the only way is setpos but thats cheating & fake.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:"Give us a push babe!" Giving objects velocity.
« Reply #2 on: 05 Sep 2002, 21:18:04 »
Its for an arty script.  I want to make my bombs drop with a nice arc.  Any ideas anyone?

Offline Dinger

  • Contributing Member
  • **
  • where's the ultra-theoretical mega-scripting forum
Re:"Give us a push babe!" Giving objects velocity.
« Reply #3 on: 05 Sep 2002, 22:31:41 »
Heh. Right now my shells drop straight down.

Well, the way I'm going to try for the next version of my artillery suite is create mod-shells that start with an initial lateral velocity, and drop them like that.

In short, if you find a way to impart velocity to objects via a scripting command, please let me know.
Dinger/Cfit

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:"Give us a push babe!" Giving objects velocity.
« Reply #4 on: 05 Sep 2002, 22:37:47 »
hmmmm - in resistance i think there is something like what you want - well i know people have made cluster bombs that have projectile arches, so maybe u could put that in a script (unless its addon only stuff )
Proud Member of the Volunteer Commando Battalion

Offline Dinger

  • Contributing Member
  • **
  • where's the ultra-theoretical mega-scripting forum
Re:"Give us a push babe!" Giving objects velocity.
« Reply #5 on: 05 Sep 2002, 23:32:15 »
Yes, that's the drop command.  I confess to not having looked into it that deeply.  My concerns were that
A. Its variable update rate implies that the object is not really moving, but only being setpos'd.  Does anyone know if collision detection works on dropped objects.
B. It didn't seem that dropped objects collide with objects beyond terrain.  Is this true?
C. Can a dropped object be destroyed by impact, or do they have to time out?
D. Can you drop a shell, or just an image of a shell?
Dinger/Cfit

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:"Give us a push babe!" Giving objects velocity.
« Reply #6 on: 06 Sep 2002, 01:24:02 »
No No No.  Whats everyones fascination with resistance.  1985 people !

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:"Give us a push babe!" Giving objects velocity.
« Reply #7 on: 06 Sep 2002, 01:33:28 »
lol - ahhh an 1985 man....

hmmmm

well as far as i know i dont think its possible without the drop command...

ummm....

any1 else know?
Proud Member of the Volunteer Commando Battalion

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:"Give us a push babe!" Giving objects velocity.
« Reply #8 on: 06 Sep 2002, 01:39:20 »
I have resistance, and the campaign is good (slowly getting through it), mut I make missions for a dedicated 1985 server.  I need 1985 commands only.  Im not happy that it cant be done.  Its this or a stinking SetPos projectiles equation.

Dalio

  • Guest
Re:"Give us a push babe!" Giving objects velocity.
« Reply #9 on: 06 Sep 2002, 02:14:58 »
is it possible to get an objects velocity?
i know height is possible
cuase you could get those then use some physics equations (dunno how possible this is in a script)
for velocity etc

hmm, might need cos to be used etc
could get complicated

arg ive forgot all the physics i learned

im not really sure how it would work cuase im not that great at scripting

MaZ

  • Guest
Re:"Give us a push babe!" Giving objects velocity.
« Reply #10 on: 06 Sep 2002, 09:47:19 »
if yer in 1985, only method afaik is setposing, and if setposing, the unit doesnt actually have a velocity (its just stationary in lots of different places and teleports :))

You could always try using setpos to create the curvature (pushing it 5m towards the target and 2m down every 0.01), and check to see if the shell is like below 3ft, then explode, but tbh i think thats as close to realistic arty as u can get in 1985 :(