IPB

Welcome Guest ( Log In | Register )

Weapons accuracy, explained
imtheheadhunter
post May 30 2009, 09:54 PM
Post #1


Debug assertion failed! Text:people == stupid!
Group Icon

Group: Mr. Admin
Posts: 1,005,138
Joined: 8-March 06
From: The freaking Twilight zone!
Member No.: 1,609



A quick explanation about what exactly the numbers do,

ObjectTemplate.deviation.setFireDev # # # //the max deviation you can get from firing//how much is added for every shot//how much is removed (each frame?)
ObjectTemplate.deviation.minDev # //the minimum deviation the weapon can have
ObjectTemplate.deviation.setTurnDev # # # # //max//add-pitch//add-yaw//how much is removed (each frame?)
ObjectTemplate.deviation.setSpeedDev # # # # //max//add-forward//add-strafe//how much is removed (each frame?)
ObjectTemplate.deviation.setMiscDev # # # //max//add-jump//how much is removed (each frame?)
ObjectTemplate.deviation.devModStand # //how much your deviation is effected (multiplied?) by standing
ObjectTemplate.deviation.devModCrouch # //how much your deviation is effected (multiplied?) by crouching
ObjectTemplate.deviation.devModLie # //how much your deviation is effected (multiplied?) by laying down
ObjectTemplate.deviation.devModZoom # //how much your deviation is effected (multiplied?) by zooming/aiming


(for those new to modding BF2, these values are found in a weapon's TWEAK file. For example you'd find the M4's weapon TWEAK file in Objects_server.zip/Weapons/Handheld/USRIF_M4. The tweak is the one with all the above lines of code in it and once removed from the zipped folder can be opened with Notepad).

This post has been edited by MasterChiefRulZ: Aug 16 2015, 02:18 PM
Reason for edit: FYI


--------------------
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies (1 - 4)
GroovyDawg
post May 30 2009, 09:59 PM
Post #2


Groovy, you are GJ.
Group Icon

Group: BFSP Team
Posts: 3,741
Joined: 30-July 08
From: On vacation.
Member No.: 5,410



Question, what do these lines do?

ObjectTemplate.weaponHud.maxVisualDeviation 30
ObjectTemplate.weaponHud.minVisualDeviation 20

Do they determine the spread of a particular weapons' crosshairs ingame when walking, sprinting, crouching etc?


--------------------
~I salute you, the AIX gentlemen.~

U MAD? ¯\_(ツ)_/¯

Asus G73JH-X3| Intel® Core™ i7-720QM | 8GB DDR3 1333 RAM | ATI Mobility Radeon 5870 1GB GDDR5 | 2x320GB Seagate 7200 RPM | 17.3" LED 1920x1080
Go to the top of the page
 
+Quote Post
imtheheadhunter
post May 30 2009, 10:03 PM
Post #3


Debug assertion failed! Text:people == stupid!
Group Icon

Group: Mr. Admin
Posts: 1,005,138
Joined: 8-March 06
From: The freaking Twilight zone!
Member No.: 1,609



QUOTE (GroovyDawg @ May 30 2009, 11:59 PM) *
Question, what do these lines do?

ObjectTemplate.weaponHud.maxVisualDeviation 30
ObjectTemplate.weaponHud.minVisualDeviation 20



They are the min/max deviation of the Xhairs. They don't effect the accuracy of the weapon at all, they only effect how big/small the Xhair can get. I'm not sure what it's measured in, but probably pixels.


--------------------
Go to the top of the page
 
+Quote Post
GroovyDawg
post May 30 2009, 10:07 PM
Post #4


Groovy, you are GJ.
Group Icon

Group: BFSP Team
Posts: 3,741
Joined: 30-July 08
From: On vacation.
Member No.: 5,410



QUOTE
they only effect how big/small the Xhair can get.

That's what I meant. Thanks for the confirmation Heady. smile.gif


--------------------
~I salute you, the AIX gentlemen.~

U MAD? ¯\_(ツ)_/¯

Asus G73JH-X3| Intel® Core™ i7-720QM | 8GB DDR3 1333 RAM | ATI Mobility Radeon 5870 1GB GDDR5 | 2x320GB Seagate 7200 RPM | 17.3" LED 1920x1080
Go to the top of the page
 
+Quote Post
TNE26
post May 31 2009, 02:20 AM
Post #5


Mapper, Modder, BFSP Webmaster & so much more..
Group Icon

Group: BFSP Webmaster
Posts: 1,800
Joined: 23-May 08
From: Hillerød, Denmark
Member No.: 5,039



Thanks heady! Great to have it explained smile.gif I had a feeling that was it, but was never sure biggrin.gif


--------------------
Kind regards, Thomas

Remember: It is too late to regret, and too soon to worry ... always!
www.i.speakinter.net - Flickr - my photos
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th September 2017 - 04:19 PM