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 → Weapon's Kickback
Weapon's Kickback
2002-02-22, 3:21 PM #1
How would you be able to increase the kickback of a weapon and make it so that the kickback also pushes you up/downwards, not only forth/back?

Thanks in advance,

-Raze

--
You are all just jealous because you can't hear the small voices!!
2002-02-22, 4:20 PM #2
Check in a weapon cog in the fired message where it says "ApplyForce(player, someVector);" Change the someVector number to a bigger value.

------------------
http://millennium.massassi.net - Millennium
Sniper Arena! - Enhancement Pack!
2002-02-23, 5:25 AM #3
// Provide a kick backwards
ApplyForce(player, VectorScale(GetThingLVec(player), -80));

Is what it says and I already tried increasing th 80, it pushes you stronger but it still only pushes you back, not upwards or downwards... Though GetThingLVec should return the z-component as well.. Tried GetThingRVec but of course that makes it only worse lol.


-Raze
--
You are all just jealous because you can't hear the small voices!!
2002-02-23, 9:17 AM #4
you have to know, that GetThingLVec used on the player always returns 0 as Z-Value...
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-02-23, 10:33 AM #5
Well, that sucks.. how can I work around that?

-Raze
--
You are all just jealous because you can't hear the small voices!!
2002-02-23, 11:15 AM #6
you could bind a cog to the projectile and in it handle the created message like that:

Code:
created:
player = GetSourceRef();
projectile = GetSenderRef();

tvector = GetThingLVec(projectile);
ApplyForce(player, VectorScale(tvector, -x));

return;


just made this up...no working guarantee
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-02-23, 12:45 PM #7
Thanks, that did the trick =) .
--
You are all just jealous because you can't hear the small voices!!
2002-02-23, 1:15 PM #8
I was just wondering: What kind of weapon could use such a kickback? Noisy Cricker (MIB) maybe?
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-02-23, 1:36 PM #9
Heh, that'd make a neat mod.. well I am just toying around really..
--
You are all just jealous because you can't hear the small voices!!

↑ Up to the top!