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

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
RED51
Jedi
Jedi
Posts: 1024
Joined: Sun Sep 07, 2008 6:25 pm
Games I'm Playing :: SWBFII

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

Post 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.
Last edited by RED51 on Thu Sep 11, 2008 5:00 pm, edited 1 time in total.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

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

Post by DarthD.U.C.K. »

just a standart question:
did you make a correct customside for the new weapon/odf?
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

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

Post 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.
User avatar
RED51
Jedi
Jedi
Posts: 1024
Joined: Sun Sep 07, 2008 6:25 pm
Games I'm Playing :: SWBFII

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

Post 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.
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City
Contact:

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

Post 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.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

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

Post 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?
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City
Contact:

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

Post by vampire_lord »

Kick Strength works but it seems useless on chainguns by default, that's my only issue.
Post Reply