Jump to content
  • 0

Bloodsuckers 100% Working - All Maps - Release *TBC*


bsmaff

Question

After posting that I had Bloodsuckers working on Namalsk, but I have now managed to get them working on other maps.

 

I will release the code when I have perfected it and got it working with various AI addons and most importantly.

 

I WILL ONLY RELEASE WHEN I HAVE PERMISSION TO USE THE FILES ON ALL MAPS....

 

Here is a short video showing them working and running on my Chernarus test server.

 

Link to comment
Share on other sites

Recommended Posts

  • 0

make a custom "building_spawnZombies.sqf" (same way you make other tweaked dayz_code files) and add this before the buildingmonitor line near the bottom:

 

    //Add bloodsuckers
    if ((_type == "Land_bspawn" || _type == "HeliCrash" || _type == "HeliCrash_No50s" || _type == "Land_aii_upper_part" || _type == "Land_Mil_Barracks_i") && dzn_ns_bloodsucker && ((random 400) < dzn_ns_bloodsucker_den)) then {
        private["_content"];
        _rnd = random 1;
        if (_rnd < 0.18562) then {
            _content = "this addMagazine 'ItemBloodbag'";
        } else {
            _content = "";
        };
        "ns_bloodsucker" createUnit [[(_originalPos select 0) + (random 60), (_originalPos select 1) - (random 60), 0], group sefik, _content, 1, "CORPORAL"];
    };

 

The "_type == " bits define what types of structures they'll spawn near.

 

 

Added these lines to the init.sqf (I just had the spawn chance maxed out for testing):

 

dzn_ns_bloodsucker = true;        // Make this false for disabling bloodsucker spawn
dzn_ns_bloodsucker_den = 400;    // Spawn chance of bloodsuckers, max 400, ignore if dzn_ns_bloodsucker set to false

 

And added this to the mission.sqm under class Groups:

      
  class Item3 //This Item# might change depending on the numbers of the other entries
        {
            side="EAST";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={78.115158,1.8671114,112.9837};
                    id=52;
                    side="EAST";
                    vehicle="TK_INS_Soldier_EP1";
                    leader=1;
                    skill=0.60000002;
                    text="sefik";
                    init="this allowDamage false;";
                };
            };
        };

Make sure to add 1 to the "items=" line directly under the "class Groups" line.

 

 

 

copy pasted from a thread months ago.

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...