OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Konvensaattori on 01 Jan 2005, 11:01:07

Title: How hard is to edit the weapon accuracy?
Post 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?
Title: Re:How hard is to edit the weapon accuracy?
Post by: Pilot on 01 Jan 2005, 16:11:37
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:

Quote
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.
Title: Re:How hard is to edit the weapon accuracy?
Post by: DBR_ONIX on 01 Jan 2005, 16:26:22
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
Title: Re:How hard is to edit the weapon accuracy?
Post by: Dane on 01 Jan 2005, 22:09:21
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?
Title: Re:How hard is to edit the weapon accuracy?
Post by: DBR_ONIX on 02 Jan 2005, 13:28:51
I'm pretty sure, yes
- Ben
Title: Re:How hard is to edit the weapon accuracy?
Post by: pexmo on 07 Jan 2005, 21:17:28
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?
Title: Re:How hard is to edit the weapon accuracy?
Post by: Pilot on 07 Jan 2005, 22:50:39
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.