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

Making or wanting help making your own asset? Check in here
Post Reply
clondicke
Posts: 64
Joined: 2010-06-19 09:04

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

Post 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.
Sniperdog
Retired PR Developer
Posts: 1177
Joined: 2009-02-27 00:06

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

Post 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
Image

Image

Will Stahl aka "Merlin" in the Squad community
Post Reply

Return to “PR:BF2 Community Modding”