Safe Bases - Almost Complete

Now i just need to find a solution to make the players/vehicles inside invincible but still kill unwelcome(unwhitelisted) players.
 
@Fox:


lhm stands for loewenherz modification
thats my customisation of rocket's great DayZ Mod + RMod2 + new car types + new skins + wasteland features
+ my own basebuilding syste, baseshield system, custom loadout system, admin event features ...

@machine:


i dont have much experience with triggers, never used them in my mission file ^^
i will test it if i have some time... at the moment i cant help you, sorry :/

maybe the trigger zone is too high ?:( -> position[]={1352.1855,152.44626,5808.2549};

not sure it is a ATL or ASL location...

Triggers activate regardless of height / depth. You can neither restrict them in height nor in depth. A airplane flying over a trigger will always trigger it if the developer didn't foresee this situation.

Sarge
 
Now i just need to find a solution to make the players/vehicles inside invincible but still kill unwelcome(unwhitelisted) players.

Code:
player removeAllEventHandlers "handleDamage";
    player addEventHandler ["handleDamage", {false}];
    player allowDamage false;
 
Then same thing but True when they leave the area. Same thing for vehicles should work.
Thats the invincibility bit anyway. As for whitelist playerID stuff? :p
 
Code:
player removeAllEventHandlers "handleDamage";
    player addEventHandler ["handleDamage", {false}];
    player allowDamage false;
 
Then same thing but True when they leave the area. Same thing for vehicles should work.
Thats the invincibility bit anyway. As for whitelist playerID stuff? :p

So where do i put it in a Code like this?

Code:
if ((getPlayerUID player) in ["XXXXXX"]) then {
titleText ["You are entering a restricted zone....identity confirmed. Welcome back.", "PLAIN DOWN", 3];
} else {
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have less than 5 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You were warned..!", "PLAIN DOWN", 3];
sleep 1;
player setDamage 1;
};


I just would try it to implement it here:
Code:
if ((getPlayerUID player) in ["XXXXXX"]) then {
titleText ["You are entering a restricted zone....identity confirmed. Welcome back.", "PLAIN DOWN", 3];
player removeAllEventHandlers "handleDamage";
player addEventHandler ["handleDamage", {false}];
player allowDamage false;
 
} else {
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have less than 5 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You were warned..!", "PLAIN DOWN", 3];
sleep 1;
player setDamage 1;
};
 
So where do i put it in a Code like this?

Code:
if ((getPlayerUID player) in ["XXXXXX"]) then {
titleText ["You are entering a restricted zone....identity confirmed. Welcome back.", "PLAIN DOWN", 3];
} else {
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have less than 5 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You were warned..!", "PLAIN DOWN", 3];
sleep 1;
player setDamage 1;
};


I just would try it to implement it here:
Code:
if ((getPlayerUID player) in ["XXXXXX"]) then {
titleText ["You are entering a restricted zone....identity confirmed. Welcome back.", "PLAIN DOWN", 3];
player removeAllEventHandlers "handleDamage";
player addEventHandler ["handleDamage", {false}];
player allowDamage false;
 
} else {
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have less than 5 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You were warned..!", "PLAIN DOWN", 3];
sleep 1;
player setDamage 1;
};


pretty much and when they leave you have to make em non-god-mode-ey so put a {True} version of that stuff in a new sqf and exec in the expDesactiv="" part of your sensor.
 
pretty much and when they leave you have to make em non-god-mode-ey so put a {True} version of that stuff in a new sqf and exec in the expDesactiv="" part of your sensor.
Can you post an example? Doesn't really know where to put it in my Sensor.

Tested it yesterday... You can still kill people that are in the base.
 
greetings,
Code:
_object allowDamage false;
this needs to be executed on each machine
try something like this
Code:
player setVehicleInit "this allowDamage false";
processInitCommands;
 
setup this one jsut for testing on cherno NWAF

Code:
class Sensors
    {
        items=01;
        class Item0
        {
            position[]={4782.6865, 10257.946};
            a=350;
            b=350;
            activationBy="ANY", "PRESENT", true;
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="AdminBase";
            expCond="(vehicle player) in thislist;";
            expActiv="dome = [] execVM ""Scripts\dome.sqf"";";
            expDesactiv="terminate adminbase; titleText [""You have left the Admin Base!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
            };
        };
    };

just testing around with the trigger over the Editor but cant find a solution that worx for me right now

Code:
_this = createTrigger ["EmptyDetector", [4782.6865, 10257.946, -339]];
_this setTriggerArea [150, 150, 0, false];
_this triggerAttachObject 1;
_this setTriggerActivation ["ANY", "PRESENT", true];
_trigger_0 = _this;
_soundSource = createSoundSource [""Siren"", position player, [4782.6865, 10257.946], 0]

so its very hard for us to get this base dome working and adding a siren failed too :(

http://opendayz.net/threads/adding-siren.10546/#post-46662
 
thx leolilu



Code:
class Sensors
    {
        items=01;
        class Item451
        {
            position[]={4782.6865, 10257.946};
            a=350;
            b=350;
            activationBy="ANY";
            type="SWITCH"; or _this setTriggerType "SWITCH";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="AdminBase";
            expCond="(vehicle player) in thislist;";
            expActiv="adminbase = [] execVM ""Scripts\dome.sqf"";";
            expDesactiv="terminate adminbase; titleText [""You have left the Admin Base!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
            };
        };
    };
 
Not really since im not affilliated with scripting , but having a mate beside me who is much more into scripting i ever will be .he asked me the same and i said what ? Really? Oh!

i'm more a better map editor
 
Not working now .its showing up a message on the server when anyone joins its stopped the server.exe
mpchernarus...blabla... missing blabla andi if i change the given line in the message their will be another one then ...so i cant realize whats the problem! :(
send from my Galaxy S2 using tapatalk
 
sounds like an error in your dome.sqf, maybe you can post the code here ? the given line isnt much reliable, most times the error is found in the next scope after the given line
 
sure great that u help me out !!
i really appreciate this!

Code:
// Dome
if ((getPlayerUID player) in [""83401862","228290","123360902","104075206","3911810","92610118""]) exitWith {
titleText ["Welcome to your dome", "PLAIN DOWN", 3];
};
// Everyone Else
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have 1 minute to turn back...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 45 seconds to leave..", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 30 seconds to leave.. We aren't kidding!", "PLAIN DOWN", 3];
removeAllWeapons player;
sleep 15;
titleText ["You have less than 15 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 15;
titleText ["LAST WARNING , U MAY DIE!", "PLAIN DOWN", 3];
sleep 5;
player setDamage 1;
};
 
Code:
if ((getPlayerUID player) in [""83401862","228290","123360902","104075206","3911810","92610118""]) exitWith {
titleText ["Welcome to your dome", "PLAIN DOWN", 3];
};
// Everyone Else
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have 1 minute to turn back...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 45 seconds to leave..", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 30 seconds to leave.. We aren't kidding!", "PLAIN DOWN", 3];
removeAllWeapons player;
sleep 15;
titleText ["You have less than 15 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 15;
titleText ["LAST WARNING , U MAY DIE!", "PLAIN DOWN", 3];
sleep 5;
player setDamage 1;
};

I'm not much a pro about arma scripting but didn't you forget then after de uids and else before the text?
So this should work:



Code:
if ((getPlayerUID player) in [""83401862","228290","123360902","104075206","3911810","92610118""]) then {
titleText ["Welcome to your dome", "PLAIN DOWN", 3];
 
} else {
 
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have 1 minute to turn back...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 45 seconds to leave..", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 30 seconds to leave.. We aren't kidding!", "PLAIN DOWN", 3];
removeAllWeapons player;
sleep 15;
titleText ["You have less than 15 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 15;
titleText ["LAST WARNING , U MAY DIE!", "PLAIN DOWN", 3];
sleep 5;
player setDamage 1;
};
 
hm.. no not really working

every time i setup this on my mission.sqm it fails
Code:
class Sensors
    {
        items=01;
        class Item1
        {
            position[]={4782.6865, 10257.946};
            a=350;
            b=350;
            activationBy="ANY";
            type="SWITCH"; or _this setTriggerType "SWITCH";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="AdminBase";
            expCond="(vehicle player) in thislist;";
            expActiv="adminbase = [] execVM ""Scripts\dome.sqf"";";
            expDesactiv="terminate adminbase; titleText [""You have left the Admin Base!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
            };
        };
    };

http://s7.directupload.net/images/130526/znpkbp6q.jpg

http://s14.directupload.net/images/130526/mgherycs.jpg
 
Back
Top