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 → How to add velocity to the dummy (weapon cog)
How to add velocity to the dummy (weapon cog)
2002-06-02, 7:48 AM #1
int flashdummy local

under fire:

flashdummy = FireProjectile(player, flash etc etc)

now, above this I need the cog to say that the flash dummy's velocity must equal that of the player's (ie, the flash dummy travels WITH the player)

Ive tried these without success:

SetThingVel(dummy, vectorScale(GetThingVel(dummy), 1));

SetThingVel(flashdummy, vectorScale(GetThingVel(player)), 1));

flashdummy = ((VectorY(GetThingVel(player)) + VectorX(GetThingVel(player))) * 1) * 1;

Any help people? The cog is other wise flawless

------------------
Is it a squid?
Is it a ferret?
both !
its ruthervain-man

yes!
ruthervain - man! :
with the power to disrupt and ultimately kill any thread that he replies to.
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2002-06-02, 8:15 AM #2
Why not just attach it to the player?

------------------
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-06-04, 10:50 AM #3
typical, th one person who responds cant help me.

TO answer your questy, I dont know how. The gun itself is attatched to the player, but the ketframe to create the flash will not work.

So how about an answer to my question, or shall I go away and use trial and error?

------------------
Is it a squid?
Is it a ferret?
both !
its ruthervain-man

yes!
ruthervain - man! :
with the power to disrupt and ultimately kill any thread that he replies to.
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2002-06-04, 1:13 PM #4
It seems to me that GBK gave a perfectly acceptable answer. If you don't know how to attach something to a player you should ask that rather than have such a negative attitude. This is a forum of volunteers after all, not a paid service provider.
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton
2002-06-04, 2:12 PM #5
Attachthingtothing(Flashdummy, Player);

------------------
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.

↑ Up to the top!