Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Increasing the speed at which projectiles fly...
Increasing the speed at which projectiles fly...
2002-08-24, 2:31 PM #1
How do you modify the speed that projectiles travel at?
"Well ain't that a merry jelly." - FastGamerr

"You can actually see the waves of me not caring in the air." - fishstickz
2002-08-24, 2:50 PM #2
Either up the template value with Static.jkl, which will make it crash in SP games, or modify the projectile after it is fired, upping the speed.

Code:
Bullet = Fireprojectile(Blah, blah, blah);

Setthingvel(Projectile, Vectorscale(Getthingvel(Projectile), X));


Where X is the multiplication factor.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-08-24, 2:58 PM #3
I've used FireProjectile to alter the speed before. One of those 10 objects does it.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2002-08-25, 3:02 AM #4
You can do it with FireProjectile() by using the 0x1 Projectile Flag and the seventh parameter. For example:

Code:
FireProjectile(thing, tpl, -1, -1, '0 0 0', '0 0 0', speedMult, 0x1, 0, 0);


Because of the 0x1 flag, the projectile's speed will be multiplied by the seventh argument - speedMult in the example.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-08-25, 3:02 AM #5
I like my way better.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-08-25, 3:40 AM #6
I use 'vel=(x/y/z)' in the template. So much simpler. [http://forums.massassi.net/html/wink.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.

[This message has been edited by Descent_pilot (edited August 25, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-08-25, 5:10 AM #7
It depends on the effect you want to create. Using FireProjectile() allows you to change the speed dynamically. If you had to set projectiles' speeds in their templates, thermal dets would be useless.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-08-25, 5:28 AM #8
It all depends on the situation. Overall the template way is the best. For dramatic and specific uses, sometimes FireProjectile() or SetThingVel() shall work.

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!