OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Konvensaattori on 01 Jan 2005, 11:01:07
-
I'm wondering how hard is to edit the weapon accuracy. I have no idea of how it could be done. Any suggestions?
-
I belive you can edit the accuracy of a weapon by changing it's dispersion. If you look under the CfgWeapons section in the config.cpp file, you should see something like this:
dispersion=0.0007;
By changing the number, I believe you can change the accuracy of the weapon. I think the higher the number, the less accuracy.
-
Thats it
The higher the number, the more the bullet flys of in slightly wrong direction (Basicly meaning how accurate it is)
So a sniper may be 0.001 dispersion, while an old shotgun might be 0.1
Also, if you want the weapon to be really inaccurate, put this in it's INIT field :
this setdammage -2
The bigger that number is (The 2 bit, not including the -.. ::) .. As in a 4 is bigger than a 2.. Yes I know.....)
The more the aim will drift..
setdammage -100 makes the aim go in a big fig of 8, and is impossible to aim, -1 makes the view wobble more than normal
There's also higher disperstion scripts on this forum (beta testing somewhere)
- Ben
-
Also, if you want the weapon to be really inaccurate, put this in it's INIT field :
this setdammage -2
- Ben
Does that count AI players to?
-
I'm pretty sure, yes
- Ben
-
how do i find the config file for a wep. I guess its inside the .pbo. But how do i get in to edit it?
-
You will have to use some sort of a pbo decompressor. I personally like PBOTool, however, it doesn't decompress encrypted pbo's. To decompress the encrypted pbo's, I use PBO Decryptor by Amalfi.
You can find PBO Decryptor in the middle of this page:
http://ofp.gamezone.cz/index.php?sekce=utilities (http://ofp.gamezone.cz/index.php?sekce=utilities)
And the PBOTool you can find in the top of this page:
http://ofp.gamezone.cz/index.php?sekce=utilities&archiv=true&page=1 (http://ofp.gamezone.cz/index.php?sekce=utilities&archiv=true&page=1)
PBOTool also compresses pbo files.