| View previous topic :: View next topic |
| Author |
Message |
Poweruser[RS] Rookie Poster

Joined: 01 Oct 2007 Posts: 14
|
Posted: Tue Nov 10, 2009 10:13 pm Post subject: AmmoBugCleaner |
|
|
During a short visit on Funhouse I was asked to put together a client-side mod which kills ammobugs only (no flags, object spawning, or whatever).
So, here it is:
d/l link: ABC2_1.zip (109 KB)
I went a bit further than just adding a useraction to the player whenever he's near a 'ammobug-object'.
Thanks to init-eventhandlers one can respond to all ammobug-objects being created during the game,
and remove them automaticly once a certain number of objects in one place is exceeded. That is most helpful
when when the players don't know where the ammobug is. Or when the one player, who has a 'just-useraction-ammobug-mod'
loaded, already died in the game and is unable to do anything, because he's sitting in the spectator script.
Do not use this mod, when you're already running some other mod like ECP, which comes with its own \bin\config.[bin/cpp] as you can not have two game configs running at the same time. One of them will get discarded.
Last edited by Poweruser[RS] on Fri Aug 06, 2010 9:18 pm; edited 1 time in total |
|
| Back to top |
|
 |
Zapperguy Obsessive Poster


Joined: 31 Oct 2005 Posts: 1261
|
Posted: Wed Nov 11, 2009 2:10 am Post subject: |
|
|
THANKS! _________________
 |
|
| Back to top |
|
 |
ROKKA(fin) Junior Poster


Joined: 05 Dec 2007 Posts: 358 Location: Finland
|
Posted: Wed Nov 11, 2009 1:56 pm Post subject: |
|
|
| DANKE! |
|
| Back to top |
|
 |
(psychomat) Rookie Poster

Joined: 05 Mar 2010 Posts: 31
|
Posted: Sun Apr 11, 2010 9:30 am Post subject: |
|
|
Very Good,Automatic clean at start or in gaming 90%,
In place of accident 10%,
Now I can create and clean. TX  |
|
| Back to top |
|
 |
Poweruser[RS] Rookie Poster

Joined: 01 Oct 2007 Posts: 14
|
Posted: Sat Jul 31, 2010 5:10 pm Post subject: |
|
|
Hmm
I see that you are actually promoting this, by adding it to the downloads page and making this topic a sticky.
It might be wise get rid of the old version (1.1) then and handout the current one (2.1)
DL:
ABC2_1.zip (109 KB)
I've rewritten it in mid of May and am using it since then and havent changed it since then.
Major differences to 1.1:
- much faster on medium to large ammo bugs (500+ objects), cleans up within a few seconds
- more reliable, (v1.1) tended to throw script errors on large ammobugs (2k+ objects)
- no more cleanup user action, everything is done automaticly
- fixed ammobug size limit: 50 (has been proven to be a good compromise between temporary ammo caches/non-impacting ammobugs and impacting ammobugs)
- no more configuration file
- threw out all "publicVariable" stuff
Still:
Do not use this mod, when you're already running some other mod like ECP, which comes with its own \bin\config.[bin/cpp] as you can not have two game configs running at the same time. One of them will get discarded.
Last edited by Poweruser[RS] on Fri Aug 06, 2010 9:19 pm; edited 3 times in total |
|
| Back to top |
|
 |
tom34 Rookie Poster


Joined: 30 Jun 2010 Posts: 20 Location: Poland
|
Posted: Thu Aug 05, 2010 10:00 am Post subject: |
|
|
| Sometimes when cleaining ammobug, clean all ammo what I put in vehicle(s). Versiion 2.0 have the same problem? |
|
| Back to top |
|
 |
Poweruser[RS] Rookie Poster

Joined: 01 Oct 2007 Posts: 14
|
Posted: Thu Aug 05, 2010 4:10 pm Post subject: |
|
|
| tom34 wrote: | | ... , clean all ammo what I put in vehicle(s) |
It's OFP which does that, not my mod. Therefore this can/will still happen with version 2 |
|
| Back to top |
|
 |
Muerte Idiot Savant Poster

Joined: 19 May 2004 Posts: 2847 Location: Oregon USA
|
Posted: Thu Aug 05, 2010 7:21 pm Post subject: |
|
|
Any time there is an ammobug you should move vehicles at least 10m away to stop it then go back and use the cleaner on it with out the vehicle nearby. _________________ Can't we just play.
 |
|
| Back to top |
|
 |
tom34 Rookie Poster


Joined: 30 Jun 2010 Posts: 20 Location: Poland
|
Posted: Fri Aug 06, 2010 10:21 am Post subject: |
|
|
| Muerte wrote: | | Any time there is an ammobug you should move vehicles at least 10m away to stop it then go back and use the cleaner on it with out the vehicle nearby. | But AmmoBugCleaner does that automatically, no time for that... |
|
| Back to top |
|
 |
Incubus Lost in Space Poster

Joined: 27 Mar 2008 Posts: 2221 Location: Hungary
|
Posted: Fri Aug 06, 2010 11:26 am Post subject: |
|
|
| tom34 wrote: | | But AmmoBugCleaner does that automatically, no time for that... |
move away first... and than use cleaner  _________________
 |
|
| Back to top |
|
 |
Mr.Peanut Atrocious MumbletyPeg Player

Joined: 04 Jun 2004 Posts: 3204 Location: Halifax, Canada
|
Posted: Fri Aug 06, 2010 2:13 pm Post subject: |
|
|
No disrespect for the work, but I have never thought that an ammo-cleaner is a good idea. It is good for missions designed where crates are provided, but not so good for missions in which you are supposed to scrounge weapons and ammo from dead enemy. However, someone asked I add it to our download page.
I can not support a mod that will automatically delete anything. This sounds more dangerous to me than the ammo bug itself.
Tell the noobs not to load vehicles. That is my ammo-bug cleaner. _________________ Sent from my handheld deviceless wire. |
|
| Back to top |
|
 |
Poweruser[RS] Rookie Poster

Joined: 01 Oct 2007 Posts: 14
|
Posted: Fri Aug 06, 2010 7:00 pm Post subject: |
|
|
This mod does NOT:
- remove ammo/weapons from any vehicle cargo
- remove dead bodys
- remove ammo/weapons from dead bodys
- delete just anything
It only removes WeaponHolder and SecondaryWeaponHolder objects. These:
When this condition is met:
- more than 50 WH/SWH objects within a rectangle with the side length
50m + 0.05*(object count at this location) |
|
| Back to top |
|
 |
Mr.Peanut Atrocious MumbletyPeg Player

Joined: 04 Jun 2004 Posts: 3204 Location: Halifax, Canada
|
Posted: Fri Aug 06, 2010 9:05 pm Post subject: |
|
|
k. i stand corrected. will upload soon. _________________ Sent from my handheld deviceless wire. |
|
| Back to top |
|
 |
Poweruser[RS] Rookie Poster

Joined: 01 Oct 2007 Posts: 14
|
Posted: Fri Aug 06, 2010 9:10 pm Post subject: |
|
|
Just found and fixed a little bug, new version:
ABC2_1.zip (109 KB) |
|
| Back to top |
|
 |
Mr.Peanut Atrocious MumbletyPeg Player

Joined: 04 Jun 2004 Posts: 3204 Location: Halifax, Canada
|
Posted: Sun Aug 08, 2010 9:04 pm Post subject: |
|
|
No settings file in zip. Should there be one or is this no longer required? _________________ Sent from my handheld deviceless wire. |
|
| Back to top |
|
 |
|