Jump to content
  • 0

Create a PvP zone in a PvE server


LadyVal

Question

I have a server in GTX, epoch 1.0.6.2, with the traders, safe zones, wai, dzai, one currency system...  The server is PvE completely so no player can be hurt by another player.  But, we want to allow some areas to be able to have pvp (f. ex.: Chernogorsk)... I set a Marker with a notification that says "you are entering in a pvp area" but I still have the damage disabled there.

I was told that it is like the code for safezones but inverse... I was looking the safezone code and it is totally out of my reach to be able to do that.   If anybody can help with that, I would be greatly thankfull.  

Thanks a lot.

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

If you are using Salival's solution then you should be able to just add a third condition:

if (_isPlayer && !_falling && !InPVPZone) exitWith {};

Add this to your custom variables.sqf to initialize the variable:

InPVPZone = false;

If you are using a sensor in mission.sqf, then just toggle the variable by changing the variable to true when you enter and false when you leave.

Link to comment
Share on other sites

  • 0

Sorry... I forgot to enable the notification.

I am using Salivan solution for the pve (all server is pve) and the marker in the map is using sensor (I didnt know how to do it, and Tempted helped me in that one)

So, having Salivan pve option, and sensor for the marker... what should I do?

Should be something like this (I comment the TRGDEF function that is define above and is calling the function that is disabling the pvp), so I added "init" that I saw is the one defining the able or disable damage... how wrong am I?... jajajaj (i know, terrible)

Spoiler

        class Item6
        {
        position[]={6656.21,0,2620.96}; 
                     //TRGDEF
                    name="zonepvp";
                    expCond="(player distance zonepvp) < 200;";
                    expActiv="systemChat (format [""You are entering PVP zone.""]);";
                    expDesactiv="systemChat (format [""You are leaving PVP zone.""]);";
                    init="this enableSimulation false;this allowDamage true;this enableAI 'FSM';this enableAI 'ANIM';this enableAI 'MOVE';";                    
        };

 

 

Link to comment
Share on other sites

  • 0
16 hours ago, LadyVal said:

Sorry... I forgot to enable the notification.

I am using Salivan solution for the pve (all server is pve) and the marker in the map is using sensor (I didnt know how to do it, and Tempted helped me in that one)

So, having Salivan pve option, and sensor for the marker... what should I do?

Should be something like this (I comment the TRGDEF function that is define above and is calling the function that is disabling the pvp), so I added "init" that I saw is the one defining the able or disable damage... how wrong am I?... jajajaj (i know, terrible)

  Hide contents

        class Item6
        {
        position[]={6656.21,0,2620.96}; 
                     //TRGDEF
                    name="zonepvp";
                    expCond="(player distance zonepvp) < 200;";
                    expActiv="systemChat (format [""You are entering PVP zone.""]);";
                    expDesactiv="systemChat (format [""You are leaving PVP zone.""]);";
                    init="this enableSimulation false;this allowDamage true;this enableAI 'FSM';this enableAI 'ANIM';this enableAI 'MOVE';";                    
        };

 

 

@JasonTMis on the money here, use this in your mission.sqm:

        class Item6
        {
        position[]={6656.21,0,2620.96}; 
                     //TRGDEF
                    name="zonepvp";
                    expCond="(player distance zonepvp) < 200;";
                    expActiv="inPVPZone = true; systemChat (format [""You are entering PVP zone.""]);";
                    expDesactiv="inPVPZone = false; systemChat (format [""You are leaving PVP zone.""]);";
                    init="this enableSimulation false;this allowDamage true;this enableAI 'FSM';this enableAI 'ANIM';this enableAI 'MOVE';";                    
        };

Then add the line he also suggested to your custom fn_damageHandler.sqf:

Replace this line: 

if (_isPlayer && !_falling) exitWith {};

With this line:

if (_isPlayer && {!_falling} && {!inPVPZone}) exitWith {};

 

Link to comment
Share on other sites

  • 0

Thanks for that!!

One more question about this pvp zone:  
I was asking about the calling rolling messages because I would like to have a message like you have when you are entering in safezone (but in red), but I couldnt find where that STR are safe so I try to see if I can create one for the PVP area.

And one only for the "looking"... how can the circle/mark can be expanded to be way much more bigger?

Again, thanks a lot for all the help.

_______________________________________

I did that change and it is giving me these errors (console error and rpt, obviously)

https://gyazo.com/01df40142ad82d1eeaecc8f52ce0091f 

(this is in Mission.sqm... when I comment those lines, everything is resolved.

And the following one is in the fn_damagehandler... when I use the original one, everything is working.

https://gyazo.com/f8ed3946c2561a2dc3ddb33468974204

BUT WHEN I REMOVE THE MISSION.SQM ENTRY, I HAVE NO MORE ERROR FROM THE DAMAGEHANDLER.  ??

this is the part of the script where that was changed

Spoiler


dayz_lastDamageSourceNull = false;
_isPZombie = _model isKindOf "PZombie_VB";
_isMan = _sourceType isKindOf "CAManBase";
_isPlayer = (isPlayer _source);
if (_isPlayer && {!_falling} && {!inPVPZone}) exitWith {};
//to avoid pvp
if (_unit == player) then {
//Set player in combat

Link to comment
Share on other sites

  • 0
On 4/30/2018 at 8:26 PM, LadyVal said:

Thanks for that!!

One more question about this pvp zone:  
I was asking about the calling rolling messages because I would like to have a message like you have when you are entering in safezone (but in red), but I couldnt find where that STR are safe so I try to see if I can create one for the PVP area.

And one only for the "looking"... how can the circle/mark can be expanded to be way much more bigger?

Again, thanks a lot for all the help.

_______________________________________

I did that change and it is giving me these errors (console error and rpt, obviously)

https://gyazo.com/01df40142ad82d1eeaecc8f52ce0091f 

(this is in Mission.sqm... when I comment those lines, everything is resolved.

And the following one is in the fn_damagehandler... when I use the original one, everything is working.

https://gyazo.com/f8ed3946c2561a2dc3ddb33468974204

BUT WHEN I REMOVE THE MISSION.SQM ENTRY, I HAVE NO MORE ERROR FROM THE DAMAGEHANDLER.  ??

this is the part of the script where that was changed

  Hide contents


dayz_lastDamageSourceNull = false;
_isPZombie = _model isKindOf "PZombie_VB";
_isMan = _sourceType isKindOf "CAManBase";
_isPlayer = (isPlayer _source);
if (_isPlayer && {!_falling} && {!inPVPZone}) exitWith {};
//to avoid pvp
if (_unit == player) then {
//Set player in combat

y wrong create trigger in missioan.sqm

show me mission.sqm

Link to comment
Share on other sites

  • 0

sorry Tanita... I didnt open Epoch forum, I was busy on the local server.

This is the Mision.sqm

 

Spoiler

version=11;
class Mission
{
    addOns[]=
    {
        "chernarus",
        "map_eu",
        "ca_modules_animals",
        "dayz_anim",
        "dayz_code",
        "dayz_communityassets",
        "dayz_weapons",
        "dayz_equip",
        "cacharacters_pmc",
        "ca_modules_functions",
        "zero_buildings",
        "dayz_epoch",
        "glt_m300t",
        "pook_h13",
        "csj_gyroac",
        "jetskiyanahuiaddon",
        "redryder",
        "Anzio_20",
        "aif_arma1buildings",
        "warehouse",
        "dayz_vehicles"        
    };
    addOnsAuto[]=
    {
        "dayz_weapons",
        "ca_modules_functions",
        "chernarus"
    };
    randomSeed=11171215;
    class Intel
    {
        briefingName="DayZ Epoch Chernarus";
        briefingDescription="Version 1.0.6.2";
        startWeather=0;
        forecastWeather=0;
        year=2008;
        month=10;
        day=1;
        hour=12;
    };
    class Groups
    {
        items=2;
        class Item0
        {
            side="WEST";
            class Vehicles
            {
                items=100;
#define PLRDEF position[]={-18700,0,25800};azimut=0;side="WEST";vehicle="Survivor1_DZ";skill=0.6;init="this enableSimulation false;this allowDamage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";player="PLAY CDG";
                class Item0{id=0;PLRDEF};
                class Item1
                {
                    position[]={-18700,0,25800};
                    azimut=0;
                    id=0;
                    side="WEST";
                    vehicle="Survivor1_DZ";
                    player="PLAYER COMMANDER";
                    leader=1;
                    rank="SERGEANT";
                    skill=0.6;
                    init="this enableSimulation false;this allowDamage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
                };
                class Item2{id=2;PLRDEF};
                class Item3{id=3;PLRDEF};
                class Item4{id=4;PLRDEF};
                class Item5{id=5;PLRDEF};
                class Item6{id=6;PLRDEF};
                class Item7{id=7;PLRDEF};
                class Item8{id=8;PLRDEF};
                class Item9{id=9;PLRDEF};
                class Item10{id=10;PLRDEF};
                class Item11{id=11;PLRDEF};
                class Item12{id=12;PLRDEF};
                class Item13{id=13;PLRDEF};
                class Item14{id=14;PLRDEF};
                class Item15{id=15;PLRDEF};
                class Item16{id=16;PLRDEF};
                class Item17{id=17;PLRDEF};
                class Item18{id=18;PLRDEF};
                class Item19{id=19;PLRDEF};
                class Item20{id=20;PLRDEF};
                class Item21{id=21;PLRDEF};
                class Item22{id=22;PLRDEF};
                class Item23{id=23;PLRDEF};
                class Item24{id=24;PLRDEF};
                class Item25{id=25;PLRDEF};
                class Item26{id=26;PLRDEF};
                class Item27{id=27;PLRDEF};
                class Item28{id=28;PLRDEF};
                class Item29{id=29;PLRDEF};
                class Item30{id=30;PLRDEF};
                class Item31{id=31;PLRDEF};
                class Item32{id=32;PLRDEF};
                class Item33{id=33;PLRDEF};
                class Item34{id=34;PLRDEF};
                class Item35{id=35;PLRDEF};
                class Item36{id=36;PLRDEF};
                class Item37{id=37;PLRDEF};
                class Item38{id=38;PLRDEF};
                class Item39{id=39;PLRDEF};
                class Item40{id=40;PLRDEF};
                class Item41{id=41;PLRDEF};
                class Item42{id=42;PLRDEF};
                class Item43{id=43;PLRDEF};
                class Item44{id=44;PLRDEF};
                class Item45{id=45;PLRDEF};
                class Item46{id=46;PLRDEF};
                class Item47{id=47;PLRDEF};
                class Item48{id=48;PLRDEF};
                class Item49{id=49;PLRDEF};
                class Item50{id=50;PLRDEF};
                class Item51{id=51;PLRDEF};
                class Item52{id=52;PLRDEF};
                class Item53{id=53;PLRDEF};
                class Item54{id=54;PLRDEF};
                class Item55{id=55;PLRDEF};
                class Item56{id=56;PLRDEF};
                class Item57{id=57;PLRDEF};
                class Item58{id=58;PLRDEF};
                class Item59{id=59;PLRDEF};
                class Item60{id=60;PLRDEF};
                class Item61{id=61;PLRDEF};
                class Item62{id=62;PLRDEF};
                class Item63{id=63;PLRDEF};
                class Item64{id=64;PLRDEF};
                class Item65{id=65;PLRDEF};
                class Item66{id=66;PLRDEF};
                class Item67{id=67;PLRDEF};
                class Item68{id=68;PLRDEF};
                class Item69{id=69;PLRDEF};
                class Item70{id=70;PLRDEF};
                class Item71{id=71;PLRDEF};
                class Item72{id=72;PLRDEF};
                class Item73{id=73;PLRDEF};
                class Item74{id=74;PLRDEF};
                class Item75{id=75;PLRDEF};
                class Item76{id=76;PLRDEF};
                class Item77{id=77;PLRDEF};
                class Item78{id=78;PLRDEF};
                class Item79{id=79;PLRDEF};
                class Item80{id=80;PLRDEF};
                class Item81{id=81;PLRDEF};
                class Item82{id=82;PLRDEF};
                class Item83{id=83;PLRDEF};
                class Item84{id=84;PLRDEF};
                class Item85{id=85;PLRDEF};
                class Item86{id=86;PLRDEF};
                class Item87{id=87;PLRDEF};
                class Item88{id=88;PLRDEF};
                class Item89{id=89;PLRDEF};
                class Item90{id=90;PLRDEF};
                class Item91{id=91;PLRDEF};
                class Item92{id=92;PLRDEF};
                class Item93{id=93;PLRDEF};
                class Item94{id=94;PLRDEF};
                class Item95{id=95;PLRDEF};
                class Item96{id=96;PLRDEF};
                class Item97{id=97;PLRDEF};
                class Item98{id=98;PLRDEF};
                class Item99{id=99;PLRDEF};
            };
        };
        class Item1
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={708,35,3533};
                    id=50;
                    side="LOGIC";
                    vehicle="FunctionsManager";
                    leader=1;
                    lock="UNLOCKED";
                    skill=0.6;
                };
            };
        };
    };
    class Markers
    {
        items=21;
        class Item0
        {
            position[]={7839,0,8414};
            name="center";
            type="Empty";
            a=7500;b=7000;
        };
        class Item1
        {
            position[]={-18700,0,25800};
            name="respawn_west";
            type="Empty";
        };
        class Item2
        {
            position[]={4932,0,1989};
            name="spawn0"; //spawn_balota
            type="Empty";
        };
        class Item3
        {
            position[]={2236,0,1923};
            name="spawn1"; //spawn_kamenka
            type="Empty";
        };
        class Item4
        {
            position[]={6901,0,2509}; //8738,0,2122
            name="spawn2"; //spawn_cherno
            type="Empty";
        };
        class Item5
        {
            position[]={10294,0,2191}; // OLD 10909,0,2422
            name="spawn3"; //spawn_elektro
            type="Empty";
        };
        class Item6
        {
            position[]={13510,0,5249};
            name="spawn4"; //spawn_sol
            type="Empty";
        };
        class Item7
        {
            position[]={12048,0,8352};
            name="spawn5"; //spawn_berezino
            type="Empty";
        };
        class Item8
        {
            position[]={7049,0,9241};
            name="crashsites";
            type="Empty";
            a=4880;b=7000;
        };
        class Item9
        {
            position[]={7542,0,7134};
            name="carepackages";
            type="Empty";
            a=6150;b=0;
        };
        class Item10
        {
            position[]={6326,304,7809};
            name="Tradercitystary";
            text="Trader City Stary";
            type="mil_circle";
            colorName="ColorBlack";
        };
        class Item11
        {
            position[]={4361,3,2259};
            name="wholesaleSouth";
            text="Wholesaler";
            type="mil_dot";
            colorName="ColorBlack";
        };
        class Item12
        {
            position[]={13532,3,6355};
            name="boatTraderEast";
            text="Wholesaler";
            type="mil_dot";
            colorName="ColorBlack";
        };
        class Item13
        {
            position[]={7989,0,2900};
            name="BoatDealerSouth";
            text="Boat Dealer";
            type="mil_dot";
            colorName="ColorBlack";
        };
        class Item14
        {
            position[]={12060,158,12638};
            name="AirVehicles";
            text="Aircraft Dealer";
            type="mil_dot";
            colorName="ColorGreen";
        };
        class Item15
        {
            position[]={1606,289,7803};
            name="BanditDen";
            text="Bandit Camp";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item16
        {
            position[]={11447,317,11364};
            name="Klen";
            text="Trader City Klen";
            type="mil_circle";
            colorName="ColorGreen";
        };
        class Item17
        {
            position[]={13441,1,5429};
            name="BoatDealerEast";
            text="Boat Dealer";
            type="mil_dot";
            colorName="ColorBlack";
        };
        class Item18
        {
            position[]={4064,365,11665};
            name="TradercityBash";
            text="Trader City Bash";
            type="mil_circle";
            colorName="ColorBlack";
        };
        class Item19
        {
            position[]={12944,210,12766};
            name="HeroTrader";
            text="Hero Camp";
            type="mil_dot";
            colorName="ColorBlue";
        };
                class Item20
        {
                       position[]={6656.21,0,2620.96};
                    name="zonepvp";
                    text="PVP Zone";
                    type="flag";
                    colorName="ColorRed";
            
            
        };
    };
    class Sensors
    {
        items=7;
#define TRGDEF a=100;b=100;activationBy="WEST";repeating=1;interruptable=1;age="UNKNOWN";class Effects{};
        class Item0
        {
            position[]={6325,304,7807};
            TRGDEF
            name="zonestary";
            expCond="(player distance zonestary) < 100;";
            expActiv="[""trader city Stary"",true,""enter""] call player_traderCity;";
            expDesactiv="[""trader city Stary"",true,""leave""] call player_traderCity;";
        };
        class Item1
        {
            position[]={4063,365,11664};
            TRGDEF
            name="zonebash";
            expCond="(player distance zonebash) < 100;";
            expActiv="[""trader city Bash"",true,""enter""] call player_traderCity;";
            expDesactiv="[""trader city Bash"",true,""leave""] call player_traderCity;";
        };
        class Item2
        {
            position[]={11447,317,11364};
            TRGDEF
            name="zoneklen";
            expCond="(player distance zoneklen) < 100;";
            expActiv="[""trader city Klen"",true,""enter""] call player_traderCity;";
            expDesactiv="[""trader city Klen"",true,""leave""] call player_traderCity;";
        };
        class Item3
        {
            position[]={1606,289,7803};
            TRGDEF
            name="zonebandit";
            expCond="(player distance zonebandit) < 100;";
            expActiv="[""Bandit Trader"",false,""enter""] call player_traderCity;";
            expDesactiv="[""Bandit Trader"",false,""leave""] call player_traderCity;";
        };
        class Item4
        {
            position[]={12944,210,12766};
            TRGDEF
            name="zonehero";
            expCond="(player distance zonehero) < 100;";
            expActiv="[""Hero Trader"",false,""enter""] call player_traderCity;";
            expDesactiv="[""Hero Trader"",false,""leave""] call player_traderCity;";
        };
        class Item5
        {
            position[]={12060,158,12638}; 
            TRGDEF
            name="zoneaircraft";
            expCond="(player distance zoneaircraft) < 100;";
            expActiv="[""Aircraft Trader"",false,""enter""] call player_traderCity;";
            expDesactiv="[""Aircraft Trader"",false,""leave""] call player_traderCity;";
        };
        class Item6
        {
        position[]={6656.21,0,2620.96}; 
            //TRGDEF
            name="zonepvp";
            expCond="(player distance zonepvp) < 300;";
            //expActiv="systemChat (format [""You are entering PVP zone.""]);";
            //expDesactiv="systemChat (format [""You are leaving PVP zone.""]);";
            expActiv="inPVPZone = true; systemChat (format [""You are entering PVP zone.""]);";
            expDesactiv="inPVPZone = false; systemChat (format [""You are leaving PVP zone.""]);";
            init="this enableSimulation false;this allowDamage true;this enableAI 'FSM';this enableAI 'ANIM';this enableAI 'MOVE';";
        };        
    };
};
class Intro
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=6913869;
    class Intel
    {
        startWeather=0;
        forecastWeather=0;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};
class OutroWin
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=4081731;
    class Intel
    {
        startWeather=0;
        forecastWeather=0;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};
class OutroLoose
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=4975929;
    class Intel
    {
        startWeather=0;
        forecastWeather=0;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};

I couldnt make it work at all.

And some of our guys want to have pvp... and others, dont want it.

I would be greatfull if you help me in the solution.

Link to comment
Share on other sites

  • 0
On 5/13/2018 at 1:09 AM, LadyVal said:

sorry Tanita... I didnt open Epoch forum, I was busy on the local server.

This is the Mision.sqm

 

  Reveal hidden contents

version=11;
class Mission
{
    addOns[]=
    {
        "chernarus",
        "map_eu",
        "ca_modules_animals",
        "dayz_anim",
        "dayz_code",
        "dayz_communityassets",
        "dayz_weapons",
        "dayz_equip",
        "cacharacters_pmc",
        "ca_modules_functions",
        "zero_buildings",
        "dayz_epoch",
        "glt_m300t",
        "pook_h13",
        "csj_gyroac",
        "jetskiyanahuiaddon",
        "redryder",
        "Anzio_20",
        "aif_arma1buildings",
        "warehouse",
        "dayz_vehicles"        
    };
    addOnsAuto[]=
    {
        "dayz_weapons",
        "ca_modules_functions",
        "chernarus"
    };
    randomSeed=11171215;
    class Intel
    {
        briefingName="DayZ Epoch Chernarus";
        briefingDescription="Version 1.0.6.2";
        startWeather=0;
        forecastWeather=0;
        year=2008;
        month=10;
        day=1;
        hour=12;
    };
    class Groups
    {
        items=2;
        class Item0
        {
            side="WEST";
            class Vehicles
            {
                items=100;
#define PLRDEF position[]={-18700,0,25800};azimut=0;side="WEST";vehicle="Survivor1_DZ";skill=0.6;init="this enableSimulation false;this allowDamage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";player="PLAY CDG";
                class Item0{id=0;PLRDEF};
                class Item1
                {
                    position[]={-18700,0,25800};
                    azimut=0;
                    id=0;
                    side="WEST";
                    vehicle="Survivor1_DZ";
                    player="PLAYER COMMANDER";
                    leader=1;
                    rank="SERGEANT";
                    skill=0.6;
                    init="this enableSimulation false;this allowDamage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
                };
                class Item2{id=2;PLRDEF};
                class Item3{id=3;PLRDEF};
                class Item4{id=4;PLRDEF};
                class Item5{id=5;PLRDEF};
                class Item6{id=6;PLRDEF};
                class Item7{id=7;PLRDEF};
                class Item8{id=8;PLRDEF};
                class Item9{id=9;PLRDEF};
                class Item10{id=10;PLRDEF};
                class Item11{id=11;PLRDEF};
                class Item12{id=12;PLRDEF};
                class Item13{id=13;PLRDEF};
                class Item14{id=14;PLRDEF};
                class Item15{id=15;PLRDEF};
                class Item16{id=16;PLRDEF};
                class Item17{id=17;PLRDEF};
                class Item18{id=18;PLRDEF};
                class Item19{id=19;PLRDEF};
                class Item20{id=20;PLRDEF};
                class Item21{id=21;PLRDEF};
                class Item22{id=22;PLRDEF};
                class Item23{id=23;PLRDEF};
                class Item24{id=24;PLRDEF};
                class Item25{id=25;PLRDEF};
                class Item26{id=26;PLRDEF};
                class Item27{id=27;PLRDEF};
                class Item28{id=28;PLRDEF};
                class Item29{id=29;PLRDEF};
                class Item30{id=30;PLRDEF};
                class Item31{id=31;PLRDEF};
                class Item32{id=32;PLRDEF};
                class Item33{id=33;PLRDEF};
                class Item34{id=34;PLRDEF};
                class Item35{id=35;PLRDEF};
                class Item36{id=36;PLRDEF};
                class Item37{id=37;PLRDEF};
                class Item38{id=38;PLRDEF};
                class Item39{id=39;PLRDEF};
                class Item40{id=40;PLRDEF};
                class Item41{id=41;PLRDEF};
                class Item42{id=42;PLRDEF};
                class Item43{id=43;PLRDEF};
                class Item44{id=44;PLRDEF};
                class Item45{id=45;PLRDEF};
                class Item46{id=46;PLRDEF};
                class Item47{id=47;PLRDEF};
                class Item48{id=48;PLRDEF};
                class Item49{id=49;PLRDEF};
                class Item50{id=50;PLRDEF};
                class Item51{id=51;PLRDEF};
                class Item52{id=52;PLRDEF};
                class Item53{id=53;PLRDEF};
                class Item54{id=54;PLRDEF};
                class Item55{id=55;PLRDEF};
                class Item56{id=56;PLRDEF};
                class Item57{id=57;PLRDEF};
                class Item58{id=58;PLRDEF};
                class Item59{id=59;PLRDEF};
                class Item60{id=60;PLRDEF};
                class Item61{id=61;PLRDEF};
                class Item62{id=62;PLRDEF};
                class Item63{id=63;PLRDEF};
                class Item64{id=64;PLRDEF};
                class Item65{id=65;PLRDEF};
                class Item66{id=66;PLRDEF};
                class Item67{id=67;PLRDEF};
                class Item68{id=68;PLRDEF};
                class Item69{id=69;PLRDEF};
                class Item70{id=70;PLRDEF};
                class Item71{id=71;PLRDEF};
                class Item72{id=72;PLRDEF};
                class Item73{id=73;PLRDEF};
                class Item74{id=74;PLRDEF};
                class Item75{id=75;PLRDEF};
                class Item76{id=76;PLRDEF};
                class Item77{id=77;PLRDEF};
                class Item78{id=78;PLRDEF};
                class Item79{id=79;PLRDEF};
                class Item80{id=80;PLRDEF};
                class Item81{id=81;PLRDEF};
                class Item82{id=82;PLRDEF};
                class Item83{id=83;PLRDEF};
                class Item84{id=84;PLRDEF};
                class Item85{id=85;PLRDEF};
                class Item86{id=86;PLRDEF};
                class Item87{id=87;PLRDEF};
                class Item88{id=88;PLRDEF};
                class Item89{id=89;PLRDEF};
                class Item90{id=90;PLRDEF};
                class Item91{id=91;PLRDEF};
                class Item92{id=92;PLRDEF};
                class Item93{id=93;PLRDEF};
                class Item94{id=94;PLRDEF};
                class Item95{id=95;PLRDEF};
                class Item96{id=96;PLRDEF};
                class Item97{id=97;PLRDEF};
                class Item98{id=98;PLRDEF};
                class Item99{id=99;PLRDEF};
            };
        };
        class Item1
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={708,35,3533};
                    id=50;
                    side="LOGIC";
                    vehicle="FunctionsManager";
                    leader=1;
                    lock="UNLOCKED";
                    skill=0.6;
                };
            };
        };
    };
    class Markers
    {
        items=21;
        class Item0
        {
            position[]={7839,0,8414};
            name="center";
            type="Empty";
            a=7500;b=7000;
        };
        class Item1
        {
            position[]={-18700,0,25800};
            name="respawn_west";
            type="Empty";
        };
        class Item2
        {
            position[]={4932,0,1989};
            name="spawn0"; //spawn_balota
            type="Empty";
        };
        class Item3
        {
            position[]={2236,0,1923};
            name="spawn1"; //spawn_kamenka
            type="Empty";
        };
        class Item4
        {
            position[]={6901,0,2509}; //8738,0,2122
            name="spawn2"; //spawn_cherno
            type="Empty";
        };
        class Item5
        {
            position[]={10294,0,2191}; // OLD 10909,0,2422
            name="spawn3"; //spawn_elektro
            type="Empty";
        };
        class Item6
        {
            position[]={13510,0,5249};
            name="spawn4"; //spawn_sol
            type="Empty";
        };
        class Item7
        {
            position[]={12048,0,8352};
            name="spawn5"; //spawn_berezino
            type="Empty";
        };
        class Item8
        {
            position[]={7049,0,9241};
            name="crashsites";
            type="Empty";
            a=4880;b=7000;
        };
        class Item9
        {
            position[]={7542,0,7134};
            name="carepackages";
            type="Empty";
            a=6150;b=0;
        };
        class Item10
        {
            position[]={6326,304,7809};
            name="Tradercitystary";
            text="Trader City Stary";
            type="mil_circle";
            colorName="ColorBlack";
        };
        class Item11
        {
            position[]={4361,3,2259};
            name="wholesaleSouth";
            text="Wholesaler";
            type="mil_dot";
            colorName="ColorBlack";
        };
        class Item12
        {
            position[]={13532,3,6355};
            name="boatTraderEast";
            text="Wholesaler";
            type="mil_dot";
            colorName="ColorBlack";
        };
        class Item13
        {
            position[]={7989,0,2900};
            name="BoatDealerSouth";
            text="Boat Dealer";
            type="mil_dot";
            colorName="ColorBlack";
        };
        class Item14
        {
            position[]={12060,158,12638};
            name="AirVehicles";
            text="Aircraft Dealer";
            type="mil_dot";
            colorName="ColorGreen";
        };
        class Item15
        {
            position[]={1606,289,7803};
            name="BanditDen";
            text="Bandit Camp";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item16
        {
            position[]={11447,317,11364};
            name="Klen";
            text="Trader City Klen";
            type="mil_circle";
            colorName="ColorGreen";
        };
        class Item17
        {
            position[]={13441,1,5429};
            name="BoatDealerEast";
            text="Boat Dealer";
            type="mil_dot";
            colorName="ColorBlack";
        };
        class Item18
        {
            position[]={4064,365,11665};
            name="TradercityBash";
            text="Trader City Bash";
            type="mil_circle";
            colorName="ColorBlack";
        };
        class Item19
        {
            position[]={12944,210,12766};
            name="HeroTrader";
            text="Hero Camp";
            type="mil_dot";
            colorName="ColorBlue";
        };
                class Item20
        {
                       position[]={6656.21,0,2620.96};
                    name="zonepvp";
                    text="PVP Zone";
                    type="flag";
                    colorName="ColorRed";
            
            
        };
    };
    class Sensors
    {
        items=7;
#define TRGDEF a=100;b=100;activationBy="WEST";repeating=1;interruptable=1;age="UNKNOWN";class Effects{};
        class Item0
        {
            position[]={6325,304,7807};
            TRGDEF
            name="zonestary";
            expCond="(player distance zonestary) < 100;";
            expActiv="[""trader city Stary"",true,""enter""] call player_traderCity;";
            expDesactiv="[""trader city Stary"",true,""leave""] call player_traderCity;";
        };
        class Item1
        {
            position[]={4063,365,11664};
            TRGDEF
            name="zonebash";
            expCond="(player distance zonebash) < 100;";
            expActiv="[""trader city Bash"",true,""enter""] call player_traderCity;";
            expDesactiv="[""trader city Bash"",true,""leave""] call player_traderCity;";
        };
        class Item2
        {
            position[]={11447,317,11364};
            TRGDEF
            name="zoneklen";
            expCond="(player distance zoneklen) < 100;";
            expActiv="[""trader city Klen"",true,""enter""] call player_traderCity;";
            expDesactiv="[""trader city Klen"",true,""leave""] call player_traderCity;";
        };
        class Item3
        {
            position[]={1606,289,7803};
            TRGDEF
            name="zonebandit";
            expCond="(player distance zonebandit) < 100;";
            expActiv="[""Bandit Trader"",false,""enter""] call player_traderCity;";
            expDesactiv="[""Bandit Trader"",false,""leave""] call player_traderCity;";
        };
        class Item4
        {
            position[]={12944,210,12766};
            TRGDEF
            name="zonehero";
            expCond="(player distance zonehero) < 100;";
            expActiv="[""Hero Trader"",false,""enter""] call player_traderCity;";
            expDesactiv="[""Hero Trader"",false,""leave""] call player_traderCity;";
        };
        class Item5
        {
            position[]={12060,158,12638}; 
            TRGDEF
            name="zoneaircraft";
            expCond="(player distance zoneaircraft) < 100;";
            expActiv="[""Aircraft Trader"",false,""enter""] call player_traderCity;";
            expDesactiv="[""Aircraft Trader"",false,""leave""] call player_traderCity;";
        };
        class Item6
        {
        position[]={6656.21,0,2620.96}; 
            //TRGDEF
            name="zonepvp";
            expCond="(player distance zonepvp) < 300;";
            //expActiv="systemChat (format [""You are entering PVP zone.""]);";
            //expDesactiv="systemChat (format [""You are leaving PVP zone.""]);";
            expActiv="inPVPZone = true; systemChat (format [""You are entering PVP zone.""]);";
            expDesactiv="inPVPZone = false; systemChat (format [""You are leaving PVP zone.""]);";
            init="this enableSimulation false;this allowDamage true;this enableAI 'FSM';this enableAI 'ANIM';this enableAI 'MOVE';";
        };        
    };
};
class Intro
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=6913869;
    class Intel
    {
        startWeather=0;
        forecastWeather=0;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};
class OutroWin
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=4081731;
    class Intel
    {
        startWeather=0;
        forecastWeather=0;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};
class OutroLoose
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=4975929;
    class Intel
    {
        startWeather=0;
        forecastWeather=0;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};

I couldnt make it work at all.

And some of our guys want to have pvp... and others, dont want it.

I would be greatfull if you help me in the solution.

You PvP position zone coordinate is wrong, is different of default Trade zone.   This is yours "position[]={6656.21,0,2620.96};" and this is  "position[]={6325,304,7807};" default. Feel deffernt? Numbers cords. 
But, i did't know WHERE and HOW get necessary coords at same default. It need me too.

Link to comment
Share on other sites

  • 0
30 minutes ago, LadyVal said:

Thanks Yukito for the reply.  I still fail to understand what should I change to make a pvp area in Chernogorsk (for example)

I try use infistar coords, editor trigger coords, but it still not work...

Link to comment
Share on other sites

  • 0
2 minutes ago, LadyVal said:

I dont have infistar but it supposes to be working....

It is marked in map but I cant make it to disable the pve in that area 

 

Because ur coords wrong, try input coords from MAP.

Link to comment
Share on other sites

  • 0

Hey there,

I'm trying to get a PVP Zone set up on my Epoch 1.0.7 server and have tried to make it happen using the configs recommended in this message string. So far here's what I've done:

1. In mission.sqm added this zone:

Spoiler

class Item10
        {
            position[]={6814.31,0,2656.95}; 
            //TRGDEF
            name="zonepvp";
            expCond="(player distance zonepvp) < 400;";
            expActiv="inPVPZone = true; systemChat (format [""You are entering the PVP zone.""]);";
            expDesactiv="inPVPZone = false; systemChat (format [""You are leaving the PVP zone.""]);";
            init="this enableSimulation false;this allowDamage true;this enableAI 'FSM';this enableAI 'ANIM';this enableAI 'MOVE';";
        };  

2. Also in mission.sqm added this map marker:

Spoiler

class Item28
        {
            position[]={6814.31,0,2656.95};
            name="pvpzone";
            text="PVP ZONE";
            type="mil_circle";
            colorName="ColorBlue";
        };

3. Pulled the fn_damageHandler.sqf out of the dayz_code pbo and placed it into the mission dayz_code\compile folder.

4. Added this line in my compiles.sqf to call the fn_damageHandler.sqf:

call compile preprocessFileLineNumbers "dayz_code\compile\fn_damageHandler.sqf";

5. In fn_damageHandler.sqf changed this: if (DZE_PVE_Mode && {_isPlayer} && {!_falling})) exitWith {};

To this: if (DZE_PVE_Mode && {_isPlayer} && {!_falling} && {!inPVPZone})) exitWith {};

That's it. That's all I could gather to do from the message string above. A couple of things:

1. When joining, I get a "cannot load mission" error but after clicking ok it goes away and let's me in.

2.  Nothing happens when I enter the PVP zone, which is in the middle of Cherno. The Anti PVE is still on and you cannot damage a player.

3. The map icon shows up fine but I would like to know if there is a way to make the map icon circle as large as the PVP zone itself so that it shows the borders of the zone.

Anyway, if anyone has some time to point me in the right direction on this I would very much appreciate it.

Thanks!

Vlad

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