Jump to content

Z80CPU

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Z80CPU

  1. NoKillScript – Prevents any ‘Safe Zone’ killings and damage to player’s vehicles.

    Version:  1.16


    Tested On:  ARMA 3 (should work on ARMA 2, though untested)

    Tested Modes: Single Player, Multiplayer (Dedicated Server)

    Tested Environments:  Standard ARMA SP/MP, Epoch, Exile

    Script Executor:  Client

    Script Host:  Server or Client

    Format:  script, SQS

     

    Description:
    NoKillZone (NKZ), is a script that helps put an end to the notorious ‘safe zone’ killings that plagued MP environments such as Epoch and Exile.

    Simply place a marker on your map, and then put the marker name in the scripts parameters, and that’s it!  It is a simple script to use.  Nothing fancy here.

    Once it starts, it just loops over and over checking to see if player has entered or left the mark area. Matters not if they teleport into the area, fly over it, or respawn in to it – the script will detect all players in the zone regardless how they arrived or left.

    100% client side and consumes almost no resources from the client.

    Runs till client exits the server.

    No triggers are used.

    This script is for players only, it does not detect/react to any AI units.

     

    Uses:
    To mark a ‘safe area’ where players can be safe and not have to worry about being killed by anyone.

    It is possible, if desired for example, to have player protected at 100m and then at 50m, their vehicle protected.  This is done by using 2 scripts.  One with the DISTANCE parameter set to ‘100’ and the other set to ‘50’.


    Usage:
    [MARKER,DISTANCE,TEXT-IN,TEXT-OUT,PROTECTION] exec "NoKillZone.Sqs";

    MARKER = Map marker name - In quotes
    DISTANCE = Radius of protection in meters
    TEXT-IN *  = Text to be shown via Hint when entering the zone - In quotes
    TEXT-OUT *  = Text to be shown via Hint when leaving the zone - In quotes
    PROTECTION *  = Allows you to choose protection for player or player and their vehicle.

    * = Optional parameter

    Example:
    ["CentralSZ",500,"You Have Entered The Central Safe Zone","You Have Left The Central Safe Zone",1] exec "NoKillZone.Sqs"

    Full documentation can be found in the top lines of the script.  Just open it in a text program such as NotePad++ to view.

    For servers, call script from 'INIT.SQF' and/or 'OnPlayerRespawn.Sqf'.

    For SP, you can also call it from the INIT.Sqf or you can activate it via the debug console or other means such as a radio trigger.

    Once launched, you will get a 'confirmation' message showing script is active, what zone, and if vehicle protection is active.


    Other Notes:
    While not ‘optimized’ and the ‘cleanest’ looking script, it does work and work well.  If you wish to spend one to two hours ‘optimizing’ it to save a few milliseconds, be my guest!  ;-)


    Known Issues:
    Script can be run many times for the same location (marker).
    There is no way to exit the script without the player quitting the game.
    Not all parameter errors are detected, though some are

    (The above issues are set to be addressed in the future)

     

    Video Example:  No Kill Zone Example

     

×
×
  • Create New...