Page 1 of 4 1234 LastLast
Results 1 to 10 of 32

Thread: DMZ Delete [script]

  1. #1
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614

    DMZ Delete [script]

    DMZ Delete v 1.1
    release v 1.1 - 16 July 2011

    REQUIRES Arma2 OA
    * Its a script wich cleans up any dead man, destroyed vehicle and empty groups (to save the 144 group limit for long missions).
    * It works for men, land, air, sea vehicles and empty groups.
    * it includes options to add other objects(ANY) or use custom timer/distance on any object.
    * It uses no eventhandlers.
    * options included: abondened vehicles, vehicles that cannot move due to damage, distance so players cannot see the "delete", timers.
    * You can exclude 1 or several specific units, or even unit classnames or superclasses like all helicopters or combine with all above.
    * It updates runtime so you can add and remove excluded units/vehicles on the go. v 1.1 also have a included part that can update same way.

    Maybe someone find it useful.

    Change log v 1.1
    Spoiler:


    MP functionality:
    Spoiler:


    Instructions:
    Spoiler:


    DMZ_delete.sqf
    Spoiler:


    direct download: Dirty Demo 4Shared:
    hosted by ArmaHolic, cheers to Foxhound.
    Last edited by Demonized; Jul 18 2011 at 20:52. Reason: added armaholic link
    My scripts:
    Spoiler:

    what to do when posting any kind of code dammit!!

    Any new mission editor or scripter in Arma2 should have read Mr Murrays Editing Guide Deluxe at least once, it still applies for A2 even though it was made for Armed Assault.

  2. #2
    Great script love it!

    Just a quick suggestion it would be cool if the bodies went into the ground instead of being deleted instantly.
    Like when you go to a dead body an in the action menu you have the option to "Hide Body".

    Either way this script is fantastic thanks for the release!

    -Bigshot

    P.S. You should update your signature with your new scripts!
    Last edited by bigshotking; Jul 15 2011 at 21:39.

  3. #3
    Another very useful script, thanks!

    & +1 for the hide body option

  4. #4

  5. #5
    Just add a:

    Code:
    hideBody _del;
    sleep 5;
    above the deleteVehicle _del; line.

  6. #6
    Thanks Kylania for the piece of code!

    Unfortunately it seems this script does not work in MP. I tested it on a non-dedicated server hosted on my pc. (I already know that it states that it was made for SP).

    -Bigshot

  7. #7
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    Author of the Thread
    updated to v 1.1
    Change log:
    * men now uses hideBody and sinks into ground before deleted, as requested by forum members.
    * new option, DMZ_include, include ANY object with optional custom timer and distance check. can also be used to have custom timer on a special car unit etc..

    will look into MP compatibility of this, maybe all thats needed is a if (isServer) check at the top.

    for those testing, try placing this at the very top of the script:
    edit: have added the MP test option to the Demo mission file and posted file, has no impact on SP usage.

    that should maybe make it work on dedis and hosted server.
    it will not include units in player groups and vehicles driven by players afaik.
    unless vehicles not used by players will revert to server side again after player is no longer in command of vehicle.
    also im not sure on the locality of the allDead array wich is used to check for dead men.
    im hoping it is a global array that includes any dead man unit no matter client.
    Last edited by Demonized; Jul 16 2011 at 00:57. Reason: added info and updated post.

  8. #8
    I just tested the updated script on a locally made server hosted on my computer and this was the result:

    http://i409.photobucket.com/albums/p...8-08-44-71.png

    -Bigshot

  9. #9
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    Author of the Thread
    awsome picture.

    will keep looking into this, im doing tests on my own MP hosted on LAN to see whats wrong, will update on progress.

    ---------- Post added at 03:39 AM ---------- Previous post was at 03:28 AM ----------

    @bigshotking
    I have updated the demo mission, there was an error in the init.sqf used.
    i forgot to comment out the tests i did with the DMZ_include option, thos objects was not in the mission, and then caused error so nothing was deleted.

    all got deleted now on my own locally hosted server, MP internet and lan and in SP.

    PS: i changed script again:
    no noticable changes, i removed publicvariable lines as they are not needed since script only runs on server side.
    publicvariable increases lag on MP games afaik, maybe just a teeny tiny bit, but they are out anyway now.
    1st post updated.
    Last edited by Demonized; Jul 16 2011 at 01:58.

  10. #10
    It works! Thanks for the awesome script man!

    Oh and here is another screen shot (Fixed Version):

    http://i409.photobucket.com/albums/p...9-39-00-55.png

    In the screen shot you will see fire burning in thin air, that is where the vehicles used to be, but when they are deleted they leave the fire behind.

    Personally I could care less about it, but I know that someone will ask you about it in the future. Just pointing it out now!

    -Bigshot

Page 1 of 4 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •