Home   Help Search Login Register  

Author Topic: How hard is to edit the weapon accuracy?  (Read 1753 times)

0 Members and 1 Guest are viewing this topic.

Konvensaattori

  • Guest
How hard is to edit the weapon accuracy?
« 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?

Offline Pilot

  • Contributing Member
  • **
Re:How hard is to edit the weapon accuracy?
« Reply #1 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.
« Last Edit: 01 Jan 2005, 16:12:45 by Student Pilot »

DBR_ONIX

  • Guest
Re:How hard is to edit the weapon accuracy?
« Reply #2 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

Dane

  • Guest
Re:How hard is to edit the weapon accuracy?
« Reply #3 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?

DBR_ONIX

  • Guest
Re:How hard is to edit the weapon accuracy?
« Reply #4 on: 02 Jan 2005, 13:28:51 »
I'm pretty sure, yes
- Ben

Offline pexmo

  • Members
  • *
  • I'm a llama!
Re:How hard is to edit the weapon accuracy?
« Reply #5 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?

Offline Pilot

  • Contributing Member
  • **
Re:How hard is to edit the weapon accuracy?
« Reply #6 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

And the PBOTool you can find in the top of this page:
http://ofp.gamezone.cz/index.php?sekce=utilities&archiv=true&page=1

PBOTool also compresses pbo files.