View Full Version : help with vectors for conc cog
TDC_WolFy
04-23-2003, 05:25 AM
THIS IS NOT A HACK it is going in a mod (maybe) when you fire the conc normally you are sent backwards but I would like to know how to change it so when you fire instead of being sent back horizontally you will be sent vertically so you could save yourself from big falls and stuff http://forums.massassi.net/html/smile.gif it is gong to be a gunning/saber mod.
------------------
Those who can see the invisible can do the impossible "Quote WolFy a day in 1999"
DSLS_DeathSythe
04-23-2003, 01:01 PM
you could try this and see if its what you want. it works like a force jump.
//-Add these to the symbols section...
vector upVel local
vector playerVel local
vector newVel local
//-Add this to the fire section of the conc cog...
upVel = VectorSet(0.0, 0.0, 2.5);
playerVel = GetThingVel(player);
newVel = VectorAdd(upVel, playerVel);
DetachThing(player);
SetThingVel(player, newVel);
that will send the player up when he fires the conc riffle or whatever you are going to turn it into. if you think it sends the player too high just change the 2.5 in the upVel=VectorSet(0.0,0.0,2.5) to a lower number.
------------------
TDC_Zyhath
04-24-2003, 05:07 PM
thanx heaps for that it works like a dream, ill be sure to mention your name in the credits http://forums.massassi.net/html/biggrin.gif
------------------
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.