OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Seldom Seen Slim on 19 Jul 2015, 03:28:28

Title: Modifying rocket launcher accuracy (dispersion doesn't work)
Post by: Seldom Seen Slim on 19 Jul 2015, 03:28:28
I want to experiment with modifying the accuracy of rocket launchers in Operation Flashpoint, as the game's standard RPG and LAW are unrealistically accurate.  I've had success changing the dispersion value in the config for firearms, but have never modified rocket launchers before.  When I tried, I noticed the dispersion variable seems to have no effect for rocket launchers.

I found a thread on this topic on the BIS forums, where post #5 says that dispersion does not work for rocket launchers, and a script is the only solution.  http://forums.bistudio.com/showthread.php?95796-Militia-rabble-RPG%C2%B4s (http://forums.bistudio.com/showthread.php?95796-Militia-rabble-RPG%C2%B4s)  I don't know how to implement such a solution--does anyone know of an example of a script that modifies RPG/LAW/other rocket launcher accuracy?
Title: Re: Modifying rocket launcher accuracy (dispersion doesn't work)
Post by: SoldierEPilot on 23 Jul 2015, 12:13:29
Scripting solution, based on "\ffur_misc\rocket.sqs".

[_people,_RH,_RV ] exec "enableDerivation.sqs"
_people- units to implement;
_RH - max horizontal speed error;
_RV -  max vertical speed error

Note: derivation will be the same for all launcher types -
can be enhanced rather easily if needed.