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 → Creatething & and finding a projectile's speed
Creatething & and finding a projectile's speed
2001-07-03, 2:50 PM #1
1) I'm using creatething to make a smoke trail behind a projectile. But, the smoke trail appears at the center of the projectile. Can I use the creatething verbs to make the smoketrail appear behind the projectile?

2) How would I get a projectile's speed? My projectile doesn't just go in a straight line, so I need to find the speed no matter which way it's pointed.

Thanks,
SaberMaster.

------------------
The enemy is in front of us, behind us, to the left, and to the right. This time they won't get away.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-07-04, 4:41 AM #2
I need to have these problems fixed before the sixth. So somebody help quickly!

------------------
The enemy is in front of us, behind us, to the left, and to the right. This time they won't get away.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-07-04, 6:07 AM #3
Well i'm not sure about the first question but I know where to find the speed of the projectile. it's in the static.jkl file. lets just use the bryar for exemple. +bryarbolt _weapon thingflags=0x20000001 light=0.400000 model3d=bry0.3do size=0.001000 movesize=0.001000 soundclass=bry.snd creatething=+smflash maxrotvel=0.000000 vel=(0.000000/4.000000/0.000000) explode=+laserhit fleshhit=+laserfleshhit damage=30.000000 mindamage=10.000000 typeflags=0x20440d rate=15.000000

see where it says "vel=(0.000000/4.000000/0.000000)" the 4 is the speed of the bryarbolt projectile.

I hope that helps
"It's best to keep your mouth shut and look like an idiot than to open it and prove it"
- Robert Fletcher
2001-07-04, 1:43 PM #4
No im that won't work proberly.

1) Use ... CreateThingAtPos(smoke, GetThingSector(raildet), GetThingPos(raildet), '0 0.15 0');

BTW do not get confused of that last part at the end where you mannualy put in the position. If you put a postive in, it's the other way around. So where I put .15, it will go .15 BEHIND the raildet instead. The same with left/right, up/down. This also applys to minuses.

2) Use ... speed=VectorLen(GetThingVel(raildet));

That should do it SaberMaster.
2001-07-05, 2:46 PM #5
Thanks, Seifer, the verbs for getting the speed worked fine. BTW, Jim14, the speed of my projectile is set through a cog. But thanks anyway.

The vector in the createthingatpos verb didn't do anything. I tried changing all of the values and making them much larger, but it does the same as creatething(). Am I doing something wrong here?

------------------
The enemy is in front of us, behind us, to the left, and to the right. This time they won't get away.

[This message has been edited by SaberMaster (edited July 05, 2001).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-07-06, 3:54 PM #6
Going up... [http://forums.massassi.net/html/frown.gif]

------------------
*Rrrring* Microsoft has advanced to the Imperial Age.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-07-07, 6:02 AM #7
The last vector is the pitch/yaw/roll vector, which changes the looking direction of the thing.

Rather change the 3rd parameter like this.

VectorAdd(GetThingPos(raildet), '0 -0.1 0')

Change -0.1 accordingly so it is on the butt of the rail det.

------------------
http://millennium.massassi.net/ - Millennium
2001-07-07, 10:27 AM #8
Thanks alot, Hideki. I've got it working fine now. [http://forums.massassi.net/html/smile.gif]

------------------
*Rrrring* Microsoft has advanced to the Imperial Age.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!