Page 1 of 1

[?] Can anyone explain me more accuratly about recoil?

Posted: 2010-08-22 05:03
by clondicke
I copied those lines from the m249acog.tweak file, i do understand a few of those lines, but not all of them.

ObjectTemplate.recoil.hasRecoilForce 1
ObjectTemplate.recoil.recoilForceUp CRD_UNIFORM/7/-2/0
ObjectTemplate.recoil.recoilForceLeftRight CRD_UNIFORM/-4/4/0
ObjectTemplate.recoil.zoomModifier 0.25
ObjectTemplate.recoil.goBackOnRecoil 1

Basically I understand most of that but these two lines.

ObjectTemplate.recoil.recoilForceUp CRD_UNIFORM/7/-2/0
ObjectTemplate.recoil.recoilForceLeftRight CRD_UNIFORM/-4/4/0

What does the three numbers mean? I have an idea but am not so sure.
Thanks in advance.

Re: [?] Can anyone explain me more accuratly about recoil?

Posted: 2010-08-24 05:51
by Sniperdog
CRD_Uniform stands for CreateRandomDigit of type Uniform and the numbers stand for minimum/maximum/stepsize. E.g. CRD_Uniform -2/2/0 will create a number between -2 and 2 without a step set. CRD_Uniform -2/2/1 would only create those numbers: -2,-1,0,1,2 as the step size is 1.
-mschoeldgen[Xww2]

http://www.bfeditor.org/forums/index.ph ... st&p=98784