Jump to content
  • 0

natoed

Question

G'day All,

I use SM Zombz on my server but theirs an known issue- zed's will not attack a player vehicle so as a work around,

I'm using the below script to spawn ryan's zeds around a players position constantly too, so no one is safe in a vehicle.

Zombience.sqf  

this script is run from the mission file via the onPlayerRespawn.sqf , and I must say works bloodily well too.  Just if your diving or in a boat they still spawn and just scoot around like water skiers lol.

I have had a chat with Johnny Drama, he suggested  surfaceIsWater

I've tried and failed so many different ways, either it errors out or the zeds will not spawn , have also tried isTouchingGround

Has anybody else know of a better(ie: easy) way to add a check to the above script for player position with near, on or in the water so zeds will not spawn.

 

cheers

natoed

 

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
13 hours ago, Drokz said:

    [] execVM "Zombience.sqf" in onPlayerRespawn.sqf to run it if i have it in missionfolder? 

I dont have any of them spawning in

 

Zombience.sqf in the pastebin link above is the script I'm currently using.

NOTE: I'm using Grahame's so so  fuckn great changes see link below

So the zeds are spawned in as "EAST" side as all players are "WEST" on my server.

here my onPlayerRespawn.sqf below

Spoiler

"colorCorrections" ppEffectAdjust [1, 1, 0, [0.5, 0.5, 0.5, 0], [1.0, 1.0, 0.8, 0.4],[0.3, 0.3, 0.3, 0.1]];"colorCorrections" ppEffectCommit 1; "colorCorrections" ppEffectEnable TRUE;
"dynamicBlur" ppEffectAdjust [0];
"dynamicBlur" ppEffectCommit 1;                                                                //    Bleak_landscape thx haleks n Goggle
[] execVM "2dmin\addons\serverIntro\serverIntro.sqf";                          //  INTRO CAMERA thx google IT07 n maybe ...cough...cough Ghostz Gamerz
[] execVM "2dmin\addons\briefing\briefing.sqf";                                       //    Briefing - Thx to some dude @ A3 epoch forum
[] execVM "2dmin\addons\welcomeMessage\welcome.sqf";                   //    Welcome notes thx to some dude @ A3 epoch forum
[] execVM "2dmin\addons\logo\logo.sqf";                                                    //    In-Game Logo thx Darth_Rogue
[] execVM "2dmin\addons\Ambient_Zombies\Zombience.sqf";               //    thx to CML-CaptainMittens, Bl2ck Dog [3Para] and (Johnny Drama  EDIT) https://forums.bistudio.com/topic/182412-zombies-demons-46/?do=findComment&comment=3138998
[] spawn {                                                                                                            //    Ash thx to Gaia
    waitUntil {alive vehicle player};    
    waitUntil {typeOF player != "VirtualMan_EPOCH"};
    _pos = position player;
    _parray = [
    /* 00 */        ["A3\Data_F\ParticleEffects\Universal\Universal", 16, 12, 8, 1],
    /* 01 */        "",
    /* 02 */        "Billboard",
    /* 03 */        1,
    /* 04 */        4,
    /* 05 */        [0,0,0],
    /* 06 */        [0,0,0],
    /* 07 */        1,
    /* 08 */        0.000001,
    /* 09 */        0,
    /* 10 */        1.4,
    /* 11 */        [0.05,0.05],
    /* 12 */        [[0.1,0.1,0.1,1]],
    /* 13 */        [0,1],
    /* 14 */        0.2,
    /* 15 */        1.2,
    /* 16 */        "",
    /* 17 */        "",
    /* 18 */        vehicle player
    ];
    _snow = "#particlesource" createVehicleLocal _pos;  
    _snow setParticleParams _parray;
    _snow setParticleRandom [0, [10, 10, 7], [0, 0, 0], 0, 0.01, [0, 0, 0, 0.1], 0, 0];
    _snow setParticleCircle [0.0, [0, 0, 0]];
    _snow setDropInterval 0.01;

    _oldPlayer = vehicle player;
    while {true} do {
        waituntil {vehicle player != _oldPlayer};
        _parray set [18,vehicle player];
        _snow setParticleParams _parray;
        _oldPlayer = vehicle player;
    };
};
if (!isDedicated and hasInterface) then
{
    waitUntil {alive vehicle player};    
    waitUntil {typeOF player != "VirtualMan_EPOCH"};
    uisleep 15;    
    [] execVM "2dmin\addons\autolockpick\AutoLockPicker.sqf";            //    AutoLockPicker thx second_coming
    systemchat("AutoLockPicker Activated...");
    systemchat("Attach Explosives Activated...");

    while {true} do
    {
    waitUntil {alive vehicle player};
    uisleep 30;
    [] execVM "2dmin\addons\etv\EtV.sqf";                                                    //    Attach Explosives Darth_Rogue
    waitUntil {!isNil "EtVInitialized"};
    [player] call EtV_Actions;
                
    waitUntil {!alive player};
    uisleep 30;
    [] execVM "2dmin\addons\etv\EtV.sqf";                                                    //    Attach Explosives Darth_Rogue
    waitUntil {!isNil "EtVInitialized"};
    [player] call EtV_Actions;    
    };        
};

 

I trust you have enabled ryan's zombies in the addon in  your mission.sqm, mine is below

addons[]=
{
	"A3_epoch_config",
  	"a3_map_altis",
	"ryanzombiesfunctions",
	"Ryanzombies",
	"Ryanzombiesanims",
	"Ryanzombiesfaces",
	"SM_Zombz"
};

Now I am sure you have added the ryan's zombies to your server + startup parameters

If still no zeds sing out I'll just post my mission.pbo for you.

cheers

natoed

Link to comment
Share on other sites

  • 0
5 hours ago, Drokz said:

Yea i think the problem is beeing civilian. Would love to change to west but dont want to make all players play females :/

Lol dude ,it doesn't make all players females.

Please read Grahame post again relating to changes to make with

1- compile/epoch_player/EPOCH_server_loadPlayer.sqf:

2- compile/epoch_player/EPOCH_server_revivePlayer.sqf:

with the above two changes players can wear female or male clothing plus I also run  Haleks -  Unlocked Uniforms

Yes when player is female and puts on male cloths the player character turns male and vise versa, these changes completely change epoch's ambience's.

Drokz check link in my signature for my little server, grab my mission file, help yourself to whatever you what.

 

cheers

natoed

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
  • Discord

×
×
  • Create New...