-
Posts
155 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by S4M
-
-
-
@EditedSnowHD this is my server_functions.sqf, And everything works !
Spoiler[] ExecVM "\z\addons\dayz_server\init\AH.sqf";
#include "\z\addons\dayz_server\compile\server_toggle_debug.hpp"
waitUntil {!isNil "bis_fnc_init"};
BIS_MPF_remoteExecutionServer = {
if ((_this select 1) select 2 == "JIPrequest") then {
[nil,(_this select 1) select 0,"loc",rJIPEXEC,[any,any,"per","execVM","ca\Modules\Functions\init.sqf"]] call RE;
};
};call compile preprocessFileLineNumbers "\z\addons\dayz_code\util\compile.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_code\loot\compile.sqf";BIS_Effects_Burn = {};
dayz_disconnectPlayers = [];
server_playerLogin = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerLogin.sqf";
server_playerSetup = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerSetup.sqf";
server_onPlayerDisconnect = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_onPlayerDisconnect.sqf";
server_updateObject = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_updateObject.sqf";
server_playerDied = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerDied.sqf";
server_publishObj = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_publishObject.sqf"; //Creates the object in DB
server_deleteObj = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_deleteObj.sqf"; //Removes the object from the DB
server_playerSync = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerSync.sqf";
zombie_findOwner = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\zombie_findOwner.sqf";
server_Wildgenerate = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\zombie_Wildgenerate.sqf";
base_fireMonitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\fire_monitor.sqf";
//server_systemCleanup = compile preprocessFileLineNumbers "\z\addons\dayz_server\system\server_cleanup.sqf";
spawnComposition = compile preprocessFileLineNumbers "ca\modules\dyno\data\scripts\objectMapper.sqf"; //"\z\addons\dayz_code\compile\object_mapper.sqf";
server_sendToClient = compile preprocessFileLineNumbers "\z\addons\dayz_server\eventHandlers\server_sendToClient.sqf";// EPOCH ADDITIONS
server_addCargo = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_addCargo.sqf";
server_swapObject = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_swapObject.sqf"; //Used to downgrade and upgrade Epoch buildables
server_publishVeh = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_publishVehicle.sqf"; //Used to spawn random vehicles by server
server_publishVeh2 = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_publishVehicle2.sqf"; //Used to purchase vehicles at traders
server_publishVeh3 = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_publishVehicle3.sqf"; //Used for car upgrades
server_tradeObj = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_tradeObject.sqf";
server_traders = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_traders.sqf";
server_spawnEvents = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnEvent.sqf";
server_deaths = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerDeaths.sqf";
server_maintainArea = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_maintainArea.sqf";
server_adminevents = compile preprocessFileLineNumbers "\z\addons\dayz_server\adminevents\server_adminevents.sqf";
server_checkIfTowed = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_checkIfTowed.sqf";
server_handleSafeGear = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_handleSafeGear.sqf";
spawn_ammosupply = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\spawn_ammosupply.sqf";
spawn_mineveins = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\spawn_mineveins.sqf";
spawn_roadblocks = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\spawn_roadblocks.sqf";
spawn_vehicles = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\spawn_vehicles.sqf";
// ===========================================================================
// @PAIN VEHICLES
// ===========================================================================
server_paintVehicles = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_paintVehicles.sqf";
// ==========================================================================="extDB" callExtension "9:DATABASE:Database2";
"extDB" callExtension format["9:ADD:DB_RAW_V2:%1",1];
"extDB" callExtension "9:LOCK";server_queryGarageVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_queryGarageVehicle.sqf";
server_spawnVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf";
server_storeVehicle = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_storeVehicle.sqf";
fn_asyncCall = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\fn_async.sqf";server_medicalSync = {
_player = _this select 0;
_array = _this select 1;
_player setVariable ["USEC_isDead",(_array select 0)]; //0
_player setVariable ["NORRN_unconscious",(_array select 1)]; //1
_player setVariable ["USEC_infected",(_array select 2)]; //2
_player setVariable ["USEC_injured",(_array select 3)]; //3
_player setVariable ["USEC_inPain",(_array select 4)]; //4
_player setVariable ["USEC_isCardiac",(_array select 5)]; //5
_player setVariable ["USEC_lowBlood",(_array select 6)]; //6
_player setVariable ["USEC_BloodQty",(_array select 7)]; //7
// _wounds; //8
// [_legs,_arms]; //9
_player setVariable ["unconsciousTime",(_array select 10)]; //10
_player setVariable ["blood_type",(_array select 11)]; //11
_player setVariable ["rh_factor",(_array select 12)]; //12
_player setVariable ["messing",(_array select 13)]; //13
_player setVariable ["blood_testdone",(_array select 14)]; //14
};
/*
dayz_Achievements = {
_achievementID = (_this select 0) select 0;
_player = (_this select 0) select 1;
_playerOwnerID = owner _player;
_achievements = _player getVariable "Achievements";
_achievements set [_achievementID,1];
_player setVariable ["Achievements",_achievements];
};
*///Send fences to this array to be synced to db, should prove to be better performaince wise rather then updaing each time they take damage.
server_addtoFenceUpdateArray = {
//Potential problem no current way to say what is setting the damage.
if ((_this select 0) isKindOf "DZ_buildables") then {
(_this select 0) setDamage (_this select 1);if !((_this select 0) in needUpdate_FenceObjects) then {
needUpdate_FenceObjects set [count needUpdate_FenceObjects, (_this select 0)];
};
};
};
vehicle_handleServerKilled = {
private ["_unit","_killer"];
_unit = _this select 0;
_killer = _this select 1;
[_unit, "killed"] call server_updateObject;
_unit removeAllMPEventHandlers "MPKilled";
_unit removeAllEventHandlers "Killed";
_unit removeAllEventHandlers "HandleDamage";
_unit removeAllEventHandlers "GetIn";
_unit removeAllEventHandlers "GetOut";
};check_publishobject = {
private ["_saveObject","_allowed","_allowedObjects","_object","_playername"];_object = _this select 0;
_playername = _this select 1;
_allowed = false;#ifdef OBJECT_DEBUG
diag_log format["DEBUG: Checking if Object: %1 is allowed, published by %2",_object,_playername];
#endifif ((typeOf _object) in DayZ_SafeObjects) then {
_saveObject = "DayZ_SafeObjects";
_allowed = true;
};
//Buildings
if (_object isKindOf "DZ_buildables") then {
_saveObject = "DZ_buildables";
_allowed = true;
};
#ifdef OBJECT_DEBUG
diag_log format["DEBUG: Object: %1 published by %2 is allowed by %3",_object,_playername,_saveObject];
#endif_allowed
};server_hiveWrite = {
private "_data";
//diag_log ("ATTEMPT WRITE: " + _this);
_data = "HiveExt" callExtension _this;
//diag_log ("WRITE: " +str(_data));
};server_hiveReadWrite = {
private ["_key","_resultArray","_data"];
_key = _this;
//diag_log ("ATTEMPT READ/WRITE: " + _key);
_data = "HiveExt" callExtension _key;
//diag_log ("READ/WRITE: " +str(_data));
_resultArray = call compile str formatText["%1", _data];
if (isNil "_resultArray") then {_resultArray = "HIVE CONNECTION ERROR";};
_resultArray
};onPlayerDisconnected "[_uid,_name] call server_onPlayerDisconnect;";
server_getDiff = {
private ["_variable","_object","_vNew","_vOld","_result"];
_variable = _this select 0;
_object = _this select 1;
_vNew = _object getVariable [_variable,0];
_vOld = _object getVariable [(_variable + "_CHK"),_vNew];
_result = 0;
if (_vNew < _vOld) then {
//JIP issues
_vNew = _vNew + _vOld;
_object getVariable [(_variable + "_CHK"),_vNew];
} else {
_result = _vNew - _vOld;
_object setVariable [(_variable + "_CHK"),_vNew];
};
_result
};server_getDiff2 = {
private ["_variable","_object","_vNew","_vOld","_result"];
_variable = _this select 0;
_object = _this select 1;
_vNew = _object getVariable [_variable,0];
_vOld = _object getVariable [(_variable + "_CHK"),_vNew];
_result = _vNew - _vOld;
_object setVariable [(_variable + "_CHK"),_vNew];
_result
};//seems max is 19 digits
dayz_objectUID2 = {
private["_position","_dir","_time" ,"_key"];
_dir = _this select 0;
_time = round diag_tickTime;
if (_time > 99999) then {_time = round(random 99999);}; //prevent overflow if server isn't restarted
_key = "";
_position = _this select 1;
_key = format["%1%2%3%4", round(_time + abs(_position select 0)), round(_dir), round(abs(_position select 1)), _time];
_key;
};dayz_recordLogin = {
private ["_key","_status","_name"];
_key = format["CHILD:103:%1:%2:%3:",_this select 0,_this select 1,_this select 2];
_key call server_hiveWrite;
_status = switch (1==1) do {
case ((_this select 2) == 0): { "CLIENT LOADED & PLAYING" };
case ((_this select 2) == 1): { "LOGIN PUBLISHING, Location " +(_this select 4) };
case ((_this select 2) == 2): { "LOGGING IN" };
case ((_this select 2) == 3): { "LOGGED OUT, Location " +(_this select 4) };
};
_name = if (typeName (_this select 3) == "ARRAY") then { toString (_this select 3) } else { _this select 3 };
diag_log format["INFO - Player: %1(UID:%3/CID:%4) Status: %2",_name,_status,(_this select 0),(_this select 1)];
};generate_new_damage = {
private "_damage";
_damage = ((random(DynamicVehicleDamageHigh-DynamicVehicleDamageLow))+DynamicVehicleDamageLow) / 100;
_damage
};server_hiveReadWriteLarge = {
private["_key","_resultArray","_data"];
_key = _this;
_data = "HiveExt" callExtension _key;
_resultArray = call compile _data;
_resultArray
};// coor2str: convert position to a GPS coordinates
fa_coor2str = {
private["_pos","_res","_nearestCity","_town"];_pos = +(_this);
if (count _pos < 1) then { _pos = [0,0]; }
else { if (count _pos < 2) then { _pos = [_pos select 0,0]; };
};
_nearestCity = nearestLocations [_pos, ["NameCityCapital","NameCity","NameVillage","NameLocal"],1000];
_town = "Wilderness";
if (count _nearestCity > 0) then {_town = text (_nearestCity select 0)};
_res = format["%1 [%2]", _town, mapGridPosition _pos];_res
};// print player player PID and name. If name unknown then print UID.
fa_plr2str = {
private["_x","_res","_name"];
_x = _this;
_res = "nobody";
if (!isNil "_x") then {
_name = _x getVariable ["bodyName", nil];
if ((isNil "_name" OR {(_name == "")}) AND ({alive _x})) then { _name = name _x; };
if (isNil "_name" OR {(_name == "")}) then { _name = "UID#"+(getPlayerUID _x); };
_res = format["PID#%1(%2)", owner _x, _name ];
};
_res
};array_reduceSize = {
private ["_array1","_array","_count","_num"];
_array1 = _this select 0;
_array = _array1 - ["Hatchet_Swing","Crowbar_Swing","Machete_Swing","Bat_Swing","BatBarbed_Swing","BatNails_Swing","Fishing_Swing","Sledge_Swing","CSGAS"];
_count = _this select 1;
_num = count _array;
if (_num > _count) then {
_array resize _count;
};
_array
};// Precise base building 1.0.5
call compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\kk_functions.sqf";
#include "mission_check.sqf"#include "spawn_config.sqf"
execVM "\z\addons\dayz_server\buildings\checkpoints.sqf";
execVM "\z\addons\dayz_server\buildings\traderstary.sqf";
execVM "\z\addons\dayz_server\buildings\NEAF_S4M.sqf";
execVM "\z\addons\dayz_server\buildings\AirNorht.sqf";
execVM "\z\addons\dayz_server\buildings\basenovy.sqf";
execVM "\z\addons\dayz_server\buildings\basedichina.sqf";
execVM "\z\addons\dayz_server\buildings\basebor.sqf";
execVM "\z\addons\dayz_server\buildings\balota.sqf";
execVM "\z\addons\dayz_server\buildings\churches.sqf";
execVM "\z\addons\dayz_server\buildings\BANKS.sqf";
execVM "\z\addons\dayz_server\buildings\BLACK_TRADER.sqf";
execVM "\z\addons\dayz_server\buildings\market_basic.sqf";
execVM "\z\addons\dayz_server\buildings\superbandit.sqf";
execVM "\z\addons\dayz_server\buildings\Skalisty.sqf";
execVM "\z\addons\dayz_server\buildings\MogilevkaBase.sqf";
execVM "\z\addons\dayz_server\buildings\Base_S4M.sqf";
execVM "\z\addons\dayz_server\buildings\Shero_S4M.sqf";// BUILDING ///////THIS IS TO MAKE SURE EACH FILE SPAWN ONLY ONE TIME\\\\\\\\
if (isNil "JustOneTime") then {
JustOneTime = true;call compile preprocessFileLineNumbers "\z\addons\dayz_server\custom_map\lumbermill.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\custom_map\flats.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\custom_map\lastleg.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\custom_map\newdamcity.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\custom_map\pobeda.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\custom_map\petrovkaRoad.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\custom_map\Skalkatown.sqf";
}; -
For the epoch community!!!
Hi mates, This is a simple and light trader that I use on my server.
1. create folder "custom_maps" and put in your server. // You can put the name that you want.
2. put into the custom folder "Shero_S4M.sqf" // You can put the name that you want.
3. in your server_functions.sqf
SpoilerexecVM "\z\addons\dayz_server\buildings\Shero_S4M.sqf";
- Hooty and oldmatechoc
- 2
-
For the epoch community!!!
HI mates, this time I bring the airport northeast.
1. create folder "custom_maps" and put in your server. // You can put the name that you want.
2. put into the custom folder "NEAF_S4M.sqf" // You can put the name that you want.
3. in your server_functions.sqf
SpoilerexecVM "\z\addons\dayz_server\buildings\NEAF_S4M.sqf";
P.D: I'm still working on this, I'll update it again...And sorry for my english.
- Schalldampfer, Hooty, chi and 7 others
- 10
-
-
I really did not use any of this, I just wanted to give it a second option @ballen
-
If you use infistar, there is the option of vote day / night. It may work for you...
AHconfig.sqf
Spoiler/* ********************************************************************************* */
// NEW (EXPERIMENTAL):
_UDP = false; // Use Dupe Protection /* true or false */
_URG = false; // Antirefuel & AntiCargod /* true or false */
_UIC = false; // Vehicle ID Check /* true or false */
_UCL = true; // Use Anti Combat Log /* true or false */
/*
"_UIM": Use Incognito Mode, makes it for the most part look like you don't run infiSTAR to the normal player.
But for that it disables for example:
Script Scan, reworked unconscious, Bad Keybinds, The debugmonitor,
Escape Menu will be default again, Chatfunctions and more
So it will make the server more unsecure! but look like it's a default one.
*/
_UIM = false; /* true or false */
/*
"_sUptime": Server Uptime in seconds!
Using this will show "Restart in: xh xxmin"
If you don't want to use it - just do:
_sUptime = 0;
*/
_sUptime = 0;
/*
"_UDN": Players can Vote if they want Day- or NighTime
!vote day,/vote day, vote day,
!vote night,/vote night, vote night
*/
_UDN = true; /* true or false */ -
Hi mates, This is perfect for me, some way to take it to a specific cordenada. Is to make a deposit of vehicles.
-
@Rifer Well, try what @Cherdenkosays and see if it works out.
-
9 minutes ago, Rifer said:
I have a problem. After the death of a player reborn near his corpse. Installed infistar 1437. How to fix it? Don't know the reason or not, but in the logs this error:
12:41:52 Error in expression <died set [count dayz_died, _playerID];
_newObject setVariable ["bodyName",_play>
12:41:52 Error position: <_newObject setVariable ["bodyName",_play>
12:41:52 Error Undefined variable in expression: _newobject
12:41:52 File z\addons\dayz_server\compile\server_playerDied.sqf, line 20I do not know if you mean this.
-
-
-
@DAmNRelentless I was testing filters, the weapon GUI enchants me !!
-
@oldmatechoc It's also pretty good, I like it!
-
hahahahahaah, I mean the position of the icon, Google translator, we already know what it is
-
-
@ibenThanks a lot bro,With the earplugs.
-
Hi@Franky_69, Here you have the coordinates , I hope to see you helped a greeting!
Spoiler["GUE_Woodlander2",[2138.53,14932.2,0],300], //black trader
["CZ_Special_Forces_GL_DES_EP1_DZ",[2098.84,14938.7,0],90], //car trader
["Tanny_PMC",[2151.83,14963,0],165], //ammo trader
["Worker1",[2116.65,14974.6,0],181], //tools traders
["INS_Bardak_DZ",[2128.8,14974.3,0],183], // medical trader
["Dixon_PMC",[2149.23,14959.6,0],93], // weapons trader
["Worker4",[2119.31,14973.8,0],165], // foods and drinks["Functionary1_EP1_DZ",[2173.56,14936,0.00],320], //this is for bank
-
HI, Could put some armed boat patrol?, would be good for sector b of taviana.
-
Hi all, I wanted to know if someone could move the camera manually or zoom ...
-
If I tried to cut the grass but no, that grass does not go
-
Well I did this faster, I have removed the dragon teeth and unnecessary items.
P.D: In some areas when I want to remove the grass I can not .....I do not know if someone who has dealt with the editor has passed.
-
Thank you @Hooty, I am glad you like it !!
-
Epoch 1.0.7.1 Release
in General Discussion.
Posted
delete