Adding recoil?

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
Carth

Adding recoil?

Post by Carth »

Hi dudes,

im new in this Forum, but i like all your tuts and ideas!
In my new project i want to add recoil to my weapons (like in Eisenfausts Realism Mod), but i cant find the right entry in the .odf of "com_weapon_inf_rifle.odf". Can anyone help me? And i hope that this can be set in the odf and is not a animation or so...

I also used the search before, but i didn't find anything that belongs to my question...

Sorry for my bad english, i'm German!

MFG Carth
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 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: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

RE: Adding recoil?

Post by phazon_elite »

Off Topic: Welcome to Gametoast!

On Topic: I know how, but the weapon shoild be named "com_weap_inf_rifle" not "com_weapon_inf_rifle.

Taken from com_weap_inf_rifle:

Code: Select all

RecoilLengthLight   = "0.1"
RecoilLengthHeavy   = "0.1"
RecoilStrengthLight = "1.0"
RecoilStrengthHeavy = "0.2"
RecoilDecayLight    = "0.0"
RecoilDecayHeavy    = "0.0"
Editing those parameters should affect the recoil.

- EP-000782
Carth

Post by Carth »

Hi,

i edited this entrys already, but there were no effect! There must be another thing to change! But i have no idea!

MFG Carth
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 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: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post by phazon_elite »

Hmmm, what did you set it to? Maybe the parameters are not set high enough to trigger the recoil.

- EP-000782
Alpha

Post by Alpha »

Have you tried PMing or emailing Eisenfausts? He probably would be glad to help. Your English is very good, by the way.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 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: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post by phazon_elite »

Oh wait, I just found it. Here are the parameters in the SBD Tri-Shot:

Code: Select all

KickSpread      = "0.25"
SpreadRecover       = "5.0"

KickStrength        = "0.25"
KickBuildup     = "100.0"
- EP-000782
Carth

Post by Carth »

Yeah, thanks a lot!
This entrys work! I forgot that the SBD Tri-Shot had already recoil! Maybe somone add this post to the tutorials...

Carth
Post Reply