Jump to content

Remove Grass


tade922

Recommended Posts

16 hours ago, tade922 said:

 

How to disable grass?

and plot pole remove zombie?

if you want remowe zombie try it this is for 1.0.5.1, maybe work on 1.0.6.1

Spoiler

if(isServer) exitWith {};
diag_log text "PLOTBUFF: loading config...";
call compile preprocessFileLineNumbers "EpochMods\PlotProtection\config.sqf";
diag_log text "PLOTBUFF: spawning thread...";
[] spawn {
    diag_log text "PLOTBUFF: waiting for player reference";
    waitUntil {!(isNull player);};
    diag_log text "PLOTBUFF: launching main removal loop";
    while {!(isNull player)} do {
        private["_removedZombies"];
        _removedZombies = 0;
        {
            {
                _removedZombies = _removedZombies + 1;
                deleteVehicle _x;
            } forEach (_x nearEntities ["zZombie_Base",DZE_PLOTBUFF_REMOVE_ZOMBIE_RADIUS]);
        } forEach ((position player) nearObjects["Plastic_Pole_EP1_DZ",DZE_PLOTBUFF_PLAYER_DISTANCE_CHECK]);
        if (_removedZombies > 0) then {
            diag_log text format["PLOTBUFF: removed %1 zombies near plot poles",_removedZombies];
        };
        sleep 5;
    };
};

you can change patch

in config.sqf

Spoiler

/* distance from player that plot checks are made */
DZE_PLOTBUFF_PLAYER_DISTANCE_CHECK = 65;

/* zombies within this distance of a plot pole will be removed. 0 = disabled. */
DZE_PLOTBUFF_REMOVE_ZOMBIE_RADIUS = 50;

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...