Page 1 of 1

How do I add a recoil to a weapon?(solved)

Posted: Thu Sep 11, 2008 7:53 am
by RED51
I'm not sure how to do this. I thought in order to add a recoil you have to change these numbers:
Hidden/Spoiler:
[code]RecoilLengthLight = "0.1"
RecoilLengthHeavy = "3.0"
RecoilStrengthLight = "1.0"
RecoilStrengthHeavy = "3.0"
RecoilDecayLight = "0.0"
RecoilDecayHeavy = "0.0"[/code]
But that didn't work...so I'm asking you fellow GTers if you know the how to add recoils.
If any asks, the code is from the weapon odf that your unit calls, not the ord.

Re: How do I add a recoil to a weapon?

Posted: Thu Sep 11, 2008 9:21 am
by DarthD.U.C.K.
just a standart question:
did you make a correct customside for the new weapon/odf?

Re: How do I add a recoil to a weapon?

Posted: Thu Sep 11, 2008 11:15 am
by MercuryNoodles
I've looked over a few weapons, and I believe that does control certain aspects of the recoil. However, I think you need to add the KickStrength parameter to the odf to make it actually raise your aim as you fire.

Code: Select all

KickStrength        = "1.0"
I used the above for my DLT-19. I also took the liberty of looking at the ODFParameters doc, and there are more parameters concerning recoil and kick under Weapon and WeaponCannon, so feel free to experiment with those as well.

Re: How do I add a recoil to a weapon?

Posted: Thu Sep 11, 2008 3:47 pm
by RED51
@D.U.C.K.: It's for a side mod that's done, but I want to polish the weapons a bit.
@Merc: I'll try that and see if that works.

edit1: It works. This topic can be locked now, but I think it should also be faqed since this topic shows people how add recoils to there weapons.

Re: How do I add a recoil to a weapon?(solved, but also a faq)

Posted: Fri Sep 12, 2008 7:37 am
by vampire_lord
Just a side note... Kick strenght doesn't seem to work on chainguns unless you are messing around with other parameters that actually make it look weird, moving the shot delay so it works more like a rifle will make your character shake too much even for a chaingun, but if you only add kick strenght it does nothing at all with recoil.

Re: How do I add a recoil to a weapon?(solved, but also a faq)

Posted: Fri Sep 12, 2008 1:34 pm
by MercuryNoodles
Are you certain it's not working? I had to playtest my weapons a few times on the walls to be sure things like the kickstrength were having any effect. What value are you using for it?

Re: How do I add a recoil to a weapon?(solved, but also a faq)

Posted: Fri Sep 12, 2008 5:42 pm
by vampire_lord
Kick Strength works but it seems useless on chainguns by default, that's my only issue.