Page 1 of 1

Adding recoil?

Posted: Fri Mar 09, 2007 2:00 pm
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

RE: Adding recoil?

Posted: Fri Mar 09, 2007 6:07 pm
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

Posted: Fri Mar 09, 2007 6:30 pm
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

Posted: Fri Mar 09, 2007 6:34 pm
by phazon_elite
Hmmm, what did you set it to? Maybe the parameters are not set high enough to trigger the recoil.

- EP-000782

Posted: Fri Mar 09, 2007 6:51 pm
by Alpha
Have you tried PMing or emailing Eisenfausts? He probably would be glad to help. Your English is very good, by the way.

Posted: Fri Mar 09, 2007 6:58 pm
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

Posted: Sat Mar 10, 2007 5:52 am
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