OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: bigdog632 on 01 Aug 2004, 23:31:49
-
is there a way to make a bullet drop compensator for the sniper rifles?
once range has been determined you can "click " in the proper range and the bullet in theory will bullseye the target, kinda simlar to the M21 but different the M21 uses the ART 1 scope(i think)
-
yeah you could but it would be hard
-
^ Exactly
You would need to get the pos, velocity etc of the bullet, and adjust it (My making a new bullet, I guess), and setvelocity it, but up the correct ammount..
Then, if you make a new bullet, the game doesn't think of the kills are yours. So you get no points.. :-\
- Ben
-
This probably isn't what you want and it might not be true, but here goes. :P :beat:
From what I can tell, the way the M21 works is that its config file specifies that it's scope view can be zoomed from around 8x to 25x. The config also suggests that it can be "zeroed" beween 80m and 400m. As you zoom the scope in the weapon's true aim point goes up from 80m to 400m, so that when you are fully zoomed the weapon is zeroed at 400m.
Now here is where the game forces you to play realistically ! If you make your sniper the leader of a two man team then all you have to do is select your offsider in the usual way. Once you do this you can determine the range to the target using the litle icon that appears in place of your cursor.
Find the zoom stops (in and out), work out the appropriate zoom, deselect your man and fire. You should be zeroed in on your target and hit dead centre, so long as he is between 80m and 400m. Your offsider is effectively helping you call in the shots !
Now I could be wrong here but I am currently dissecting the config files and the master config for the game and the only entries that are different between the Dragunov and the M21 are these zoom values. Apparently, you can give a weapon a variable opticsZoom but keep the distanceZoom fixed (ie Dragunov) or you can have them both variable (ie M21).
Thinking about this some more - I suppose that this means you could give a weapon a fixed opticsZoom and a variable distanceZoom - the scope view will be fixed but the zero point cold be variable between any points that you want.
The only problem is that you have no clue what level of distanceZoom you're at - you can get 100% accurate distance info from your spotter but you'll still have to estimate the appropriate distance zoom yourself.
Maybe this is what they intended ?
Hope that this helps !
Roni
-
I think I get what bigdog means..
You know how you (In RL), you addjust the scope.. Like "2 clicks up, 1 click across"
something like that..
For a fixed scope rifle..
???
- Ben
-
well if i recall properly a BDC makes it easier to adjust for windage and elevation because it is designed for the type of amo used grain and all
then you click in the elevation and if all is properly calibrated you should hit dead on simply by adjusting the range on the BDC....
the FPS game delta force land warrior had the ability to change the ranges on the sniper rifles
official definition:Bullet Drop Compensator - Any device that is integral to the rifle telescope that is designed to compensate for the bullet's trajectory.
the ART scope ont he M21 does this just in a different way
-
one addition this does this without adjusting the weapons ranging or zero...prolley confusing now
-
Well you do a couple of add actions, and adjust a varabile (Click up/down, CLick Left/Right)
And then delete the bullet, and make a new one, but setvelocity it like this
_bullet setvelocity [_bullet velocity select 0, ...select 1, ...select 2 + upclick]
And the Click up/down changes a varabile called upclick
The same for left/right, only you use direction and setdir
:)
- Ben
-
And you put this on a weapon with a dispersion rating of 0.1 . . . :D
-
First off, this is called the "elevation knob", not a bullet-drop compensator or whatever :P
Next, OFP's M21 and Dragunov rifles both have ways to zero your sights to a specific range. For the M21 it's easy: you just zoom the rifle to where a standing man fills up the space between the upper and lower crosshair (the part between the horizontal lines). Now the bullet will land exactly on the crosshairs at that range. Easy as pie, but I guess most people like to zoom in as much as they can, which means the bullet goes who-knows-where.
With the dragunov, you have to estimate the range yourself, and then use the appropriate part of the sight to fire. Come to think of it, there is a good description of how to do this on the Avon Lady's OFP FAQ:
Using the dragunov (http://www.theavonlady.org/theofpfaq/weapons/dragscope.htm)
Using the M21 (http://www.theavonlady.org/theofpfaq/weapons/m21scope.htm)
Obviously you could config other rifles with optics that work exactly like this. However, giving the player actions to adjust his sights is something I have thought about scripting for a while. It would especially be useful for weapons like the M16, which have no way in-game of adjusting the sights like the sniper rifles do.
However, such a script would be... mathematically challenging, to say the least. I gave up because it was hurting my head :-\. DBR_ONIX is on the right track, but it is WAY more complicated than that. How much you adjust each part of the velocity will depend not only on how much windage/elevation you want, but also would depend on the direction the bullet is fired left/right and up/down.
-
bullet drop compensators are not the same as the elevation knob
they are for more precise adjustments they are calibrated for specific amunition
but i guess it doesnt matter
-
bullet drop compensators are not the same as the elevation knob
they are for more precise adjustments they are calibrated for specific amunition
but i guess it doesnt matter
You learn something knew everyday. 8) I've never used a scope, so what do I know?
-
How much differnce does this make in game though :-\
- Ben
-
i honestly dont know, but i often have it where i have a guy perfectly setup in my crosshairs but the bullet is not dead on for some reason requiring me to adjust my position, but mice are not the most precise things to aim with.
if you could adjust the aim slightly without moving the actual position of the gun it would be more accurate.......in theory