Mizzle420420

[Release] Admin Tool: Zombie Shield (RyanZombies/ExileZ)

18 posts in this topic

21 hours ago, Bob_the_K said:

Reminds me of zombie guts that some A2 servers had.  You could harvest zombies for guts.  When you smear them on yourself, the zombies ignore you for some period of time.  Of course rain washed it off regardless of time passage.

 

I really like the idea of zombie guts, I've personally never played with it. I'll put it on my list of things to do, should be fun.

Prost! 

Share this post


Link to post
Share on other sites
Advertisement
8 hours ago, Blessed Dark Angel said:

Could you attach this to an item? So a player can build a certain item and have a zombie shield around thier base?

Something that you can turn on and off.

Yeah you would just replace 

_EntitiesArray1

with whatever variable of the item you wish to bind it too

The code already has a toggle function so you would most likely want to use something like addaction to activate and deactivate it 

https://community.bistudio.com/wiki/addAction

 

  • Like 1

Share this post


Link to post
Share on other sites

OK for those of you who like me got a bit lost on how to apply this.. Here are the steps (some where left out of the original post.)

1st - unpbo a3_infiSTAR_Exile.pbo
2nd - edit the file CUSTOM_FUNCTIONS.hpp and find.

Spoiler

    class custom1 {
        type = 0;    // just execute
        name = "custom5: type = 0";
        code = "systemChat 'custom5';";
    };

and replace it with.

Spoiler

    class custom1 {
        type = 1;    // toggle on/off
        name = "Zombie Shield";
        code = "if(isNil'zombieShieldToggle')then{MiZ_Zombie_Toggle1 = 1; zombieShieldToggle=true;}else{MiZ_Zombie_Toggle1 = 0;zombieShieldToggle=nil;}; \
        []spawn \
        { \
            while {MiZ_Zombie_Toggle1 == 1} do \
            { \
                _Pos1 = getPos player; \
                _EntitiesArray1 = _Pos1 nearEntities ['all',20]; \
                { \
                    _Zombie1 = _x; \
                    if (_Zombie1 getVariable 'RZ_isZombie') then \
                    { \
                        deleteVehicle _Zombie1; \
                        sleep 1; \
                    }; \
                    if (_Zombie1 getVariable 'RZ_isDemon') then \
                    { \
                        deleteVehicle _Zombie1; \
                        sleep 1; \
                    }; \
                }foreach _EntitiesArray1; \
            sleep 1; \
            }; \
        };";
    };

Now the step that was forgotten...

3rd - edit EXILE_AHAT_CONFIG.hpp and at the end of this line (there are 3...)

Spoiler

"God Mode","God Mode (no stats change)","Vehicle God Mode","Lower Terrain","Vehboost","UnlimAmmo","noRecoil","FastFire","Stealth / Invisible",

Add the command you made in step#2 which in my example is "Zombie Shield" to the end of the line.. (mind the ending coma, its important!) it should look like this.

Spoiler

"God Mode","God Mode (no stats change)","Vehicle God Mode","Lower Terrain","Vehboost","UnlimAmmo","noRecoil","FastFire","Stealth / Invisible","Zombie Shield",

repbo it back up, and upload to your server!

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.