PDA

View Full Version : How to add velocity to the dummy (weapon cog)



Ruthven
06-02-2002, 10:48 AM
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.

gbk
06-02-2002, 11:15 AM
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 (http://www.tbns.net/GBK/ol/index.htm).

Ruthven
06-04-2002, 01:50 PM
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.

Sylvicolus
06-04-2002, 04:13 PM
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.

gbk
06-04-2002, 05:12 PM
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 (http://www.tbns.net/GBK/ol/index.htm).