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 → help with vectors for conc cog
help with vectors for conc cog
2003-04-23, 2:25 AM #1
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"
2003-04-23, 10:01 AM #2
you could try this and see if its what you want. it works like a force jump.
Code:
//-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.

------------------
Famous last words - "It seemed like a good idea at the time."
2003-04-24, 2:07 PM #3
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]

------------------

↑ Up to the top!