OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: tate on 12 Jun 2005, 01:52:32

Title: kozliceshell too acurate
Post by: tate on 12 Jun 2005, 01:52:32
can someoe tell e how to change the acuracy of the kozliceshell but not the kozliceball
Title: Re:kozliceshell too acurate
Post by: CopyrightPhilly on 12 Jun 2005, 01:55:28
you cant do it with normal scripting, you can only do it by decompiling the config.bin file and changing it that way.

but... by doing this you will be kicked/banned from online servers as it will be a cheat!
Title: Re:kozliceshell too acurate
Post by: h- on 12 Jun 2005, 07:32:32
Yes you can do it with scripting, quite easily...

What you need is to use the fired eventHandler to 'catch' the fired kozliceshell and execute a script that then changes the 'catched' bullets velocity making it more inaccurate...

There's a base for this kind of script laying somewhere in the scripting ideas or scripting beta testing boards... (very very old post)
Title: Re:kozliceshell too acurate
Post by: tate on 12 Jun 2005, 10:16:09
could you put up the script if you have it
Title: Re:kozliceshell too acurate
Post by: 456820 on 12 Jun 2005, 10:25:18
yes it is very possible with scripting theres one in the editors depot wich does it with law's and rpg's so i supose its possible to modify to fit your needs plus you could do it with other weapons to make the game have longer fire fights ill have a go for you and me becuase its given me a good idea.
anyway would i need to authors permission ?
Title: Re:kozliceshell too acurate
Post by: h- on 12 Jun 2005, 11:51:07
I have one, but it's for a mod I work for and it really doesn't fit your specific needs..

456820 is right, I remember seeing that script somewheres...
But, for bullets you would need to go a bit more different way than with RPGs and such due to the 'slight' muzzle velocity differences...

Also, the KozliceShell is not a single bullet but it infact fires 7 bullet 'burst' to simulate (badly) a shotgun...
So you would need to find a way to 'catch' all those 7 bullets and change their velocities individually...
Title: Re:kozliceshell too acurate
Post by: tate on 15 Jun 2005, 09:46:59
what about H.D.
also would it help if i told you i have EU version, so its in the ADDONS file ?
Title: Re:kozliceshell too acurate
Post by: ThEoNeAnDoNlY on 16 Jun 2005, 20:33:22
heym just an idea, i wanna turn the accuracy of the static mg (m2) really bad so i dont get raped by it from thousands of metres away

Guy
Title: Re:kozliceshell too acurate
Post by: 456820 on 16 Jun 2005, 20:36:40
ThEoNeAnDoNlY nice idea but already done in the editors depot search d day style m2 machine guns or something like that it basically does what you want