OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: penguinman on 26 May 2005, 00:16:24
-
could sombody make a script where one can just specify an object and activate a script and the script will shoot like 100 pistol bullets in all different directions simulating shrapnel.
and if the editor wants he can just use a trigger or GL to specify the position like a mine or he could use a get Fired EH and then create a shapnel thing in the spot where the round stopped as in an airbust artillary or a frg grenade.
i dont need or want any explosion, just the pistol bullets.
can sombody do that?
thanks in advance.
-
ok, i think this is basically what your after (demo mission included), but ill happily tailor it to your own needs.
download link (http://www.hemsworthland.co.uk/scripts/Shrapnel.zip)
-
One thing I did when making my shrapnel script for claymores and VT Airburst Arty, was make a config for a new bullet class specially for shrapnel.
I made the indirect hit value high enough to be lethal, and gave it a indirect hit range of about 5m. This saved A LOT of cpu cycles, as I did not have to create a huge loop of camcreated bullets to make it effective.
I also added drop effects to enhance the bullet impact and create the illusion of more impacts than are actually occuring. In short, it is a less cpu intensive alternative.
Since my Great Crash of 2004, I have lost that tiny little .pbo but I need to redo it anyway, so if you are interested...
-Grendel
-
ok, stoned soldier
could u ajust it to be like in my first post
-
ok, well, ive done some experimenting and, ive found out that the scipt only makes shrapnel to the sides, not above and below.