Jump to content

Zupa

Collaborator
  • Posts

    1887
  • Joined

  • Last visited

  • Days Won

    21

Reputation Activity

  1. Like
    Zupa got a reaction from Liquid84 in Epoch 1.0.6   
    Fellow epoch 2 players and server owners
     
    We are currently working together with community developers to get the 1.0.6 patch ready for release. Awol gave me rights to the codebase of Epoch Arma 2. This means I can code review and accept/deny any code passed to the Github. I'm also reviewing all the issues reported on the Github to see if it's relevant and debate if coding needs to be done. I understand not everyone is Github experienced. So i kindly accept bug reports or requests in this topic. I do not guarantee it's get fixed or added. But it will definitely throw it into discussion.
     
    In the future i'm planning to get a dev server up so we can do some testing on everything we added since the latest patch.
    I already want to thank every person who worked or will work on the DayZ-Epoch code.
     
    A full (rolling) change log will be posted over time ( When i get free time to check all merge request done by everyone since last patch).
    All progress can be followed on the DayZ-Epoch Github:
     
    https://github.com/vbawol/DayZ-Epoch
     
    The following link show you all the changes since the 1051 release.
     
    https://github.com/vbawol/DayZ-Epoch/compare/Release_1.0.5.1...master
     
    Changelog: 
     
    [NEW] RedRyder BB Gun by @arma2WillRobinson
    [NEW] DB Backup script. @RimBlock
    [NEW] Use DayZ_UseSteamID = false; in your init.sqf to use the old PlayerUID, instead of SteamID @icomrade
    [NEW] UI Update - Graphical and code changes, enable using Dayz_Dark_UI = true; in init.sqf. @hogscraper
    [NOTE] It's recommend to convert to the new SteamID system if possible, new servers should not use DayZ_UseSteamID = false;
    [NEW] Snap building (disabled by default), use DZE_modularBuild = true; in your init.sqf to enable. @raymix
    [NEW] Modular/Function based player_build for addon makers and modders. @raymix (more info and concepts - )
    [NEW] Added "RedRyder" and "350Rnd_BB_Magazine" to loot pile. #1456 #1457 @Namindu
    [NEW] Added tree support for Isla Duala. @Utomnia

    [CHANGED] An infection chance of -1 disables self-transfusion infection. 0 is always infected. (DZE_selfTransfuse_Values) @icomrade
    [CHANGED] Removed weapons from Traders hands and made them stand with arms by their side. @SilvDev
    [CHANGED] Tweaked fuel capacity variables for vehicles. @RimBlock
    [CHANGED] Tweaked rotate_logs.bat to incorporate the day of the week for better organization @Raziel23x

    [FIXED] Backpack wipes when changing clothes. #1361 @icomrade
    [FIXED] CH53 gear when locked #1364 @icomrade
    [FIXED] Infinite loop when crafting ore into bars #1351 @icomrade
    [FIXED] Only first kill showing on death boards #1362 #1124 @vbawol @icomrade
    [FIXED] Crossbow quivers not working #1355 @icomrade
    [FIXED] Crash_spawner & Supply_drop modules spawning inaccessible loot piles #1408 #1390 @Uro1
    [FIXED] Undefined variable "_weapon" in fnc_plyrHit.sqf when killer is driving a vehicle #1420 @ebaydayz
    [FIXED] Fire cleanup diag_log error in server_functions.sqf #1421 @ebaydayz
    [FIXED] NearestObjects position error in server_playerSync.sqf #1425 @ebaydayz
    [FIXED] Corrected ClassName type for CH53_DZE and BAF_Merlin_DZE. @Cinjun
    [FIXED] Some counts reverted to forEach - count loops can not be nested inside other count loops #1491-#1495 @ebaydayz
    [FIXED] Safes empty when opening after restart #1467 @ebaydayz
    [FIXED] Dynamic_vehicle spawning non-upgradable classes of hilux1 & datsun1. @Uro1
    [FIXED] Eating while inside a vehicle did not drop empty can @deadeye2
    [FIXED] Zombie loot error when using loot tables in mission file @deadeye2
    [FIXED] Trader menu expected array error #1618-1620 @ebaydayz
    [FIXED] Loading screen issue where you can walk around and see a black screen #1610 @deanreid
    [FIXED] Rare inventory wiping on login. @Mikeeeyy
    [FIXED] Wrong items return when deconstruction a bag fence. @seb3sec
     
    [uPDATED] .hpp files updated in dayz_epoch_b CfgLootPos > CfgBuildingPos. @Uro1
    [uPDATED] .bat files updated in Config-Examples @Raziel23x
    [uPDATED] Updated all config.cfg in Config-Examples, Added Default Steam Ports and Updated Layout. @Namindu
    [uPDATED] Epoch.sql, 1.0.5_Updates.sql & CfgServerTraders with correct classnames for upgradable hilux1 & datsun1 versions. @Uro1
    [uPDATED] mission.sqm to compact format from DayZ Mod 1.8.3 @ebaydayz

    [iNFO] (EXTREMELY IMPORTANT) Server owners MUST update their required build and beta to 125548
    [iNFO] requiredSecureId is deprecated in server.cfg.
  2. Like
    Zupa got a reaction from _Lance_ in [Release] Advanced Trading 2.1 !UPDATED!   
    Just a headsup.
    Epoch will update today to 1.0.6 
    [NEW] A much improved version of Zupa's Advanced Trading 2.1+ is now the default config trader menu, NOT COMPATIBLE WITH DATABASE TRADERS @icomrade @Windmolders [NEW] A Plot For Life v2.5+ by RimBlock is now included and enabled by default, see configVariables.sqf @RimBlock @icomrade [NEW] Build Vectors v4+ by Striker is now included, only enabled with Snap building. Note there is no option to turn off Vector Building with Snap Building enabled @strikerforce @icomrade [NEW] Door Management v3.0+ by Zupa is now included and enabled by default with variable DZE_doorManagement, see configVariables.sqf @DevZupa @Bruce-LXXVI @ebayShopper [NEW] Plot Management v2.1+ by Zupa is now included and enabled by default with variable DZE_permanentPlot, see configVariables.sqf @DevZupa @Bruce-LXXVI @icomrade
  3. Like
    Zupa reacted to BigEgg in [Tutorial] Non-P4L Automatically Add Plot Owner to Plot   
    First, credit goes to @Zupa for his amazing Plot Management Mod.
     
    This short tutorial is for those of you who use Plot Management without Plot 4 Life. It automatically adds the builder of the Plot Pole to the "Friends" list on the Plot so they don't have to remember to add themselves.
     
    For this tutorial, I used the player_build.sqf from snap/vector build pro. It is designed around this player_build so please be sure you are using it!
     
    At the top of player_build.sqf, add this to the private array:
    ,"_nearPlots", "_selectedPlot", "_onPlot", "_uidPlayer", "_playerName" Then, find this block of code (around line 667):
    _tmpbuilt setVariable ["CharacterID",dayz_characterID,true]; // fire? if(_tmpbuilt isKindOf "Land_Fire_DZ") then { _tmpbuilt spawn player_fireMonitor; } else { PVDZE_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_vector],_classname]; publicVariableServer "PVDZE_obj_Publish"; }; Replace that block with this:
    _tmpbuilt setVariable ["CharacterID",dayz_characterID,true]; if (_tmpbuilt isKindof "Plastic_Pole_EP1_DZ") then { PVDZE_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_vector],_classname]; publicVariableServer "PVDZE_obj_Publish"; _nearPlots = nearestObjects [player, ["Plastic_Pole_EP1_DZ"],15]; _selectedPlot = _nearPlots select 0; _onPlot = _selectedPlot getVariable ["plotfriends",[]]; _uidPlayer = getPlayerUID player; _playerName = name player; _onPlot = _onPlot + [[_uidPlayer,_playerName]]; _selectedPlot setVariable ["plotfriends", _onPlot, true]; PVDZE_veh_Update = [_selectedPlot,"gear"]; publicVariableServer "PVDZE_veh_Update"; if (isServer) then { PVDZE_veh_Update call server_updateObject; }; } else { if(_tmpbuilt isKindOf "Land_Fire_DZ") then { _tmpbuilt spawn player_fireMonitor; } else { PVDZE_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_vector],_classname]; publicVariableServer "PVDZE_obj_Publish"; }; };  
    Go in game and test it out!
  4. Like
    Zupa got a reaction from Tarabas in [Server Addon] ZCP - Zupa's Capture Points 2.0 Updated for Epoch 0.3   
    i need to convert the ExileMod one to Epoch mod. 
    It has alot of extra functionality and huge optimalisation for performance : )
     
  5. Like
    Zupa got a reaction from Grahame in [Server Addon] ZCP - Zupa's Capture Points 2.0 Updated for Epoch 0.3   
    i need to convert the ExileMod one to Epoch mod. 
    It has alot of extra functionality and huge optimalisation for performance : )
     
  6. Like
    Zupa got a reaction from Richie in [Server Addon] ZCP - Zupa's Capture Points 2.0 Updated for Epoch 0.3   
    i need to convert the ExileMod one to Epoch mod. 
    It has alot of extra functionality and huge optimalisation for performance : )
     
  7. Like
    Zupa got a reaction from Brian Soanes in Epoch 1.0.6   
    I think i speak for the whole team that we won't add any new mods from this point on.
    Servers are free to add it themselves.
    Epochmod also doesn't have the permissions of the maker to include it into a bigger modpack.
     
    On the side:
    I don't see this would ever be a default epoch mod due to it's only sound changes to the default game and not relevant to the epoch experience. 
  8. Like
    Zupa got a reaction from Brian Soanes in [Server Addon] ZCP - Zupa's Capture Points 2.0 Updated for Epoch 0.3   
    i need to convert the ExileMod one to Epoch mod. 
    It has alot of extra functionality and huge optimalisation for performance : )
     
  9. Like
    Zupa got a reaction from oldmatechoc in [Server Addon] ZCP - Zupa's Capture Points 2.0 Updated for Epoch 0.3   
    Porting this to arma 2 soon.
  10. Like
    Zupa got a reaction from sercanatici in [Alpha Release] Single Currency 3.0 & Storage DEFAULT HIVE ( No global banking).   
    Example here, i added a check here as requested on github issue:
    https://github.com/EpochSC/SingleCurrencyStorage/blob/master/DayZ_Epoch_11.Chernarus/ZSC/actions/bank_dialog.sqf
  11. Like
    Zupa got a reaction from Airwaves Man in [Alpha Release] Single Currency 3.0 & Storage DEFAULT HIVE ( No global banking).   
    Example here, i added a check here as requested on github issue:
    https://github.com/EpochSC/SingleCurrencyStorage/blob/master/DayZ_Epoch_11.Chernarus/ZSC/actions/bank_dialog.sqf
  12. Like
    Zupa got a reaction from oldmatechoc in How to give the zombie gold?   
    change the study body check to allow Zeds to :) in selfactions.
     
    Comon guys ^^ some logical thinking!! 
     
    I won't be always here to aswer these things
  13. Like
    Zupa got a reaction from oldmatechoc in Epoch 1.0.6   
    Fellow epoch 2 players and server owners
     
    We are currently working together with community developers to get the 1.0.6 patch ready for release. Awol gave me rights to the codebase of Epoch Arma 2. This means I can code review and accept/deny any code passed to the Github. I'm also reviewing all the issues reported on the Github to see if it's relevant and debate if coding needs to be done. I understand not everyone is Github experienced. So i kindly accept bug reports or requests in this topic. I do not guarantee it's get fixed or added. But it will definitely throw it into discussion.
     
    In the future i'm planning to get a dev server up so we can do some testing on everything we added since the latest patch.
    I already want to thank every person who worked or will work on the DayZ-Epoch code.
     
    A full (rolling) change log will be posted over time ( When i get free time to check all merge request done by everyone since last patch).
    All progress can be followed on the DayZ-Epoch Github:
     
    https://github.com/vbawol/DayZ-Epoch
     
    The following link show you all the changes since the 1051 release.
     
    https://github.com/vbawol/DayZ-Epoch/compare/Release_1.0.5.1...master
     
    Changelog: 
     
    [NEW] RedRyder BB Gun by @arma2WillRobinson
    [NEW] DB Backup script. @RimBlock
    [NEW] Use DayZ_UseSteamID = false; in your init.sqf to use the old PlayerUID, instead of SteamID @icomrade
    [NEW] UI Update - Graphical and code changes, enable using Dayz_Dark_UI = true; in init.sqf. @hogscraper
    [NOTE] It's recommend to convert to the new SteamID system if possible, new servers should not use DayZ_UseSteamID = false;
    [NEW] Snap building (disabled by default), use DZE_modularBuild = true; in your init.sqf to enable. @raymix
    [NEW] Modular/Function based player_build for addon makers and modders. @raymix (more info and concepts - )
    [NEW] Added "RedRyder" and "350Rnd_BB_Magazine" to loot pile. #1456 #1457 @Namindu
    [NEW] Added tree support for Isla Duala. @Utomnia

    [CHANGED] An infection chance of -1 disables self-transfusion infection. 0 is always infected. (DZE_selfTransfuse_Values) @icomrade
    [CHANGED] Removed weapons from Traders hands and made them stand with arms by their side. @SilvDev
    [CHANGED] Tweaked fuel capacity variables for vehicles. @RimBlock
    [CHANGED] Tweaked rotate_logs.bat to incorporate the day of the week for better organization @Raziel23x

    [FIXED] Backpack wipes when changing clothes. #1361 @icomrade
    [FIXED] CH53 gear when locked #1364 @icomrade
    [FIXED] Infinite loop when crafting ore into bars #1351 @icomrade
    [FIXED] Only first kill showing on death boards #1362 #1124 @vbawol @icomrade
    [FIXED] Crossbow quivers not working #1355 @icomrade
    [FIXED] Crash_spawner & Supply_drop modules spawning inaccessible loot piles #1408 #1390 @Uro1
    [FIXED] Undefined variable "_weapon" in fnc_plyrHit.sqf when killer is driving a vehicle #1420 @ebaydayz
    [FIXED] Fire cleanup diag_log error in server_functions.sqf #1421 @ebaydayz
    [FIXED] NearestObjects position error in server_playerSync.sqf #1425 @ebaydayz
    [FIXED] Corrected ClassName type for CH53_DZE and BAF_Merlin_DZE. @Cinjun
    [FIXED] Some counts reverted to forEach - count loops can not be nested inside other count loops #1491-#1495 @ebaydayz
    [FIXED] Safes empty when opening after restart #1467 @ebaydayz
    [FIXED] Dynamic_vehicle spawning non-upgradable classes of hilux1 & datsun1. @Uro1
    [FIXED] Eating while inside a vehicle did not drop empty can @deadeye2
    [FIXED] Zombie loot error when using loot tables in mission file @deadeye2
    [FIXED] Trader menu expected array error #1618-1620 @ebaydayz
    [FIXED] Loading screen issue where you can walk around and see a black screen #1610 @deanreid
    [FIXED] Rare inventory wiping on login. @Mikeeeyy
    [FIXED] Wrong items return when deconstruction a bag fence. @seb3sec
     
    [uPDATED] .hpp files updated in dayz_epoch_b CfgLootPos > CfgBuildingPos. @Uro1
    [uPDATED] .bat files updated in Config-Examples @Raziel23x
    [uPDATED] Updated all config.cfg in Config-Examples, Added Default Steam Ports and Updated Layout. @Namindu
    [uPDATED] Epoch.sql, 1.0.5_Updates.sql & CfgServerTraders with correct classnames for upgradable hilux1 & datsun1 versions. @Uro1
    [uPDATED] mission.sqm to compact format from DayZ Mod 1.8.3 @ebaydayz

    [iNFO] (EXTREMELY IMPORTANT) Server owners MUST update their required build and beta to 125548
    [iNFO] requiredSecureId is deprecated in server.cfg.
  14. Like
    Zupa got a reaction from chi in Advanced Alchemical Crafting v3.3   
    NIce, saves some work!.
     
    i'll share the build file when it's done.
     
    I ended up now rewriting the whole script xD taking out the gems and making Single Currency support for it (instead of gems).
     
    Also cleaning up some code. I prefer no while lusses  to check for any changes ^^. 
    And no big functions in compiles.sqf ^^
     
    I change it so u can get all menu's from right clicking toolbox and then a sub dialog to choose which category to go into ^^
     
    (No worries about it calling Z-Craft) Thats just for on my server. Credits are always given! And i keep names in re releases (for Single currency i mean).

  15. Like
    Zupa got a reaction from icomrade in Epoch 1.0.6   
    @Soul You got some spair time?
  16. Like
    Zupa got a reaction from Linux in How to give the zombie gold?   
    edit your zombie_generate.sqf
    private ["_position","_unitTypes","_radius","_method","_agent"]; _position = _this select 0; _doLoiter = _this select 1; // wander around _unitTypes = _this select 2; // class of wanted models _maxControlledZombies = round(dayz_maxLocalZombies); _cantSee = { private ["_isok"]; _isok = true; _zPos = +(_this select 0); if (count _zPos < 3) exitWith { diag_log format["%1::_cantSee illegal pos %2", __FILE__, _zPos]; false }; _zPos = ATLtoASL _zPos; _fov = _this select 1; // players half field of view _safeDistance = _this select 2; // minimum distance. closer is wrong _farDistance = _this select 3; // distance further we won't check _zPos set [2, (_zPos select 2) + 1.7]; { _xasl = getPosASL _x; if (_xasl distance _zPos < _farDistance) then { if (_xasl distance _zPos < _safeDistance) then { _isok = false; } else { _eye = eyePos _x; // ASL _ed = eyeDirection _x; _ed = (_ed select 0) atan2 (_ed select 1); _deg = [_xasl, _zPos] call BIS_fnc_dirTo; _deg = (_deg - _ed + 720) % 360; if (_deg > 180) then { _deg = _deg - 360; }; if ((abs(_deg) < _fov) && {( // in right angle sector? (!(terrainIntersectASL [_zPos, _eye]) // no terrain between? && {(!(lineIntersects [_zPos, _eye]))}) // && no object between? )}) then { _isok = false; }; }; }; if (!_isok) exitWith {false}; } count playableUnits; _isok }; if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies < dayz_maxNearByZombies) && (dayz_currentGlobalZombies < dayz_maxGlobalZeds)) then { if ([_position, dayz_cantseefov, 10, dayz_cantseeDist] call _cantSee) then { //Check if anyone close _tooClose = {isPlayer _x} count (_position nearEntities ["CAManBase",30]) > 0; if (_tooClose) exitwith { // diag_log ("Zombie_Generate: was too close to player."); }; //Add zeds if unitTypes equals 0 if (count _unitTypes == 0) then { if (DZE_MissionLootTable) then { _unitTypes = []+ getArray (missionConfigFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass"); } else { _unitTypes = []+ getArray (configFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass"); }; }; // lets create an agent _type = _unitTypes call BIS_fnc_selectRandom; _radius = 5; _method = "NONE"; if (_doLoiter) then { _radius = 40; _method = "CAN_COLLIDE"; }; //Check if point is in water if (surfaceIsWater _position) exitwith { }; _agent = createAgent [_type, _position, [], _radius, _method]; sleep 0.001; //add to global counter dayz_spawnZombies = dayz_spawnZombies + 1; //Add some loot _loot = ""; _array = []; _rnd = random 1; if (_rnd < 0.2) then { _lootType = configFile >> "CfgVehicles" >> _type >> "zombieLoot"; if (isText _lootType) then { _array = []; { _array set [count _array, _x select 0] } forEach getArray (configFile >> "cfgLoot" >> getText(_lootType)); if (count _array > 0) then { _index = dayz_CLBase find getText(_lootType); _weights = dayz_CLChances select _index; _loot = _array select (_weights select (floor(random (count _weights)))); if(!isNil "_array") then { _loot_count = getNumber(configFile >> "CfgMagazines" >> _loot >> "count"); if(_loot_count>1) then { _agent addMagazine [_loot, ceil(random _loot_count)]; } else { _agent addMagazine _loot; }; }; }; }; }; _agent setVariable["agentObject",_agent]; if (!isNull _agent) then { // sometime Z can be seen flying in very high speed while tp. Its altitude is set underground to hide that. /* _agtPos = getPosASL _agent; _agtPos set [2, -3]; _agent setPosASL _agtPos; sleep 0.001; _agtPos = +(_position); _agtPos set [2, -3]; _agent setPosASL _agtPos; sleep 0.001; */ _agent setDir random 360; //_agent setPosATL _position; sleep 0.001; _position = getPosATL _agent; _favStance = ( switch ceil(random(3^0.5)^2) do { //case 3: {"DOWN"}; // prone case 2: {"Middle"}; // Kneel default {"UP"} // stand-up } ); _agent setUnitPos _favStance; _agent setVariable ["stance", _favStance]; _agent setVariable ["BaseLocation", _position]; _agent setVariable ["doLoiter", true]; // true: Z will be wandering, false: stay still _agent setVariable ["myDest", _position]; _agent setVariable ["newDest", _position]; // COINS HERE _agent setVariable ["cashMoney", 500]; // [_agent, _position] call zombie_loiter; }; //add to monitor //dayz_zedMonitor set [count dayz_zedMonitor, _agent]; //Disable simulation PVDZE_Server_Simulation = [_agent, false]; publicVariableServer "PVDZE_Server_Simulation"; //Start behavior _id = [_position,_agent] execFSM "\z\AddOns\dayz_code\system\zombie_agent.fsm"; }; };
  17. Like
    Zupa got a reaction from SapioiT in DayZ the way it was meant to be?   
    I think you are abit late to the scene.
     
    Dayz Epoch is likely not to get new new content. It will get one big update for the End Of Life patch coming up. 
    It will include the largest community scripts by default with configs to enable disable them.
     
    But for actual developing and moddeling i wouldn't have your hopes up too high.
    Who knows one of the others is willing but i don't see it happen.
  18. Like
    Zupa got a reaction from looter809 in [RELEASE] Vehicle Godmode in Plotpoles & Safezones & Everywhere Locked 2.0   
    Vehicle Godmode in Plotpoles & Safezones & Everywhere Locked 2.0 Fixed
     
    This scripts adds a configurable file where u can set the following options:
    Vechicles godmode in safezones Vechiles godmode in plotpole areas Locked or all vehicles godmoded  ​Only donaters godmode vehicles in plotpole areas. As soon someone is in them, DESTROY THEM Added later: Locked Vechicles all over the map.  
    Added later: Option to allow damage on vehicles with gear in them even when locked at plotpoles  
     
    In your compiles.sqf ABOVE:
    initialized = true; place
    fnc_usec_damageVehicle =        compile preprocessFileLineNumbers "zupa\fn_damageHandlerVehicle.sqf";        //Event handler run on damage vehicle_handleDamage = compile preprocessFileLineNumbers "zupa\vehicle_handleDamage.sqf"; and make a file in "zupa" folder called "vehicle_handleDamage.sqf" with inside:
     
    FIXED CODE
    private["_selection","_state","_strH","_total","_unit"]; //***Zupa Config ****// _godmodeVechilesEverywhere = false; // Godmode on all locked vehicles _onlyLockedVehicles = true; //Plotarea: Godmode for Only locked vehicles (true) or locked and unlocked(false) _onlyVehicleWithoutGear = true; // Only godmode on vehicles that hold no gear. _safeZoneGodVehicle = true; // Godmode vehicles in safezones. (or specific zone's) // donator plotpole only works with PLOT FOR LIFE, set FALSE if you dont have it. _donatorsPlots = false; // True = only godmode vehicles for donaters in the list, False = godmode for every guy. _plotDonators = ["76561198101253426","505"]; // PUID's of poeple who donated for plotpole // Chernarus safezone area's - change these to other coordinates for other maps. ( You can also add specific locations on the map. _safezones = [ [[5070.75,9729.54],100,"Air"], [[1606.6443,7803.5156],100,"Bandit"], [[4063.4226,11664.19],100,"Bash"], [[12944.227,12766.889],100,"Hero"], [[11447.472,11364.504],100,"Klen"], [[6315.88,7791.3],100,"Stary"] // [[x,y],distance,"just name"] ]; //***END Config ****// _unit = _this select 0; _selection = _this select 1; _total = _this select 2; _state = true; _HPBefore = -1; if (_selection != "") then { _strH = "hit_" + _selection; _HPBefore = [_unit,_strH] call object_getHit; } else { _strH = "totalDmg"; _HPBefore = getDammage _unit; }; if(_total > _HPBefore)then{ if((locked _unit && _godmodeVechilesEverywhere && (count (crew _unit)) < 1))then{_state = false; }; if(_state)then{ if(_safeZoneGodVehicle )then{ {if ((_unit distance (_x select 0)) < (_x select 1)) then {_state = false; };} forEach _safezones; }; }; if(_state)then{ _gearCount = 0; if(_onlyVehicleWithoutGear)then{ //_weaps = count(getWeaponCargo _unit); //_mags = count(getMagazineCargo _unit); //_backs = count(getBackpackCargo _unit); //_gearCount = _gearCount + _weaps + _mags + _backs; }; _plots = nearestObjects [_unit, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0]; if((count(_plots) > 0))then{ _thePlot = _plots select 0; _plotOwner = _thePlot getVariable ["ownerPUID",0]; if ( (_gearCount == 0) &&(locked _unit || !(_onlyLockedVehicles) ) && (count (crew _unit)) < 1 && ( !(_donatorsPlots) || (_plotOwner in _plotDonators))) then {_state = false; }; }; }; }; //fix if(_state)then{ if (_total >= 0.98) then { _total = 1.0; }; if (local _unit) then { if (_total > 0) then { _unit setVariable [_strH, _total, true]; _unit setHit [_selection, _total]; if (isServer) then { [_unit, "damage"] call server_updateObject; } else { PVDZE_veh_Update = [_unit,"damage"]; publicVariableServer "PVDZE_veh_Update"; }; }; } else { // vehicle is not local to this client, ask the client which vehicle is local to set damage /* PVS/PVC - Skaronator */ PVDZE_send = [_unit,"VehHandleDam",_this]; publicVariableServer "PVDZE_send"; }; }else{ _total = _HPBefore; }; // all "HandleDamage event" functions should return the effective damage that the engine will record for that part _total AND in "zupa" folder: fn_damageHandlerVehicle.sqf
    scriptName "Functions\misc\fn_damageHandler.sqf"; /*********************************************************** PROCESS DAMAGE TO A UNIT - Function - [unit, selectionName, damage, source, projectile] call fnc_usec_damageHandler; ************************************************************/ private ["_unit","_hit","_damage","_total"]; _unit = _this select 0; _hit = _this select 1; _damage = _this select 2; //_source = _this select 3; //_ammo = _this select 4; _total = _damage; _state = true; //***Zupa Config ****// _godmodeVechilesEverywhere = false; // Godmode on all locked vehicles _onlyLockedVehicles = true; //Plotarea: Godmode for Only locked vehicles (true) or locked and unlocked(false) _onlyVehicleWithoutGear = true; // Only godmode on vehicles that hold no gear. _safeZoneGodVehicle = true; // Godmode vehicles in safezones. (or specific zone's) // donator plotpole only works with PLOT FOR LIFE, set FALSE if you dont have it. _donatorsPlots = false; // True = only godmode vehicles for donaters in the list, False = godmode for every guy. _plotDonators = ["76561198101253426","505"]; // PUID's of poeple who donated for plotpole // Chernarus safezone area's - change these to other coordinates for other maps. ( You can also add specific locations on the map. _safezones = [ [[5070.75,9729.54],100,"Air"], [[1606.6443,7803.5156],100,"Bandit"], [[4063.4226,11664.19],100,"Bash"], [[12944.227,12766.889],100,"Hero"], [[11447.472,11364.504],100,"Klen"], [[6315.88,7791.3],100,"Stary"] // [[x,y],distance,"just name"] ]; //***END Config ****// systemChat "checks"; if((locked _unit && _godmodeVechilesEverywhere && (count (crew _unit)) < 1))then{_state = false; }; if(_state)then{ if(_safeZoneGodVehicle )then{ {if ((_unit distance (_x select 0)) < (_x select 1)) then {_state = false; };} forEach _safezones; }; }; if(_state)then{ _gearCount = 0; if(_onlyVehicleWithoutGear)then{ //_weaps = count(getWeaponCargo _unit); //_mags = count(getMagazineCargo _unit); //_backs = count(getBackpackCargo _unit); //_gearCount = _gearCount + _weaps + _mags + _backs; }; _plots = nearestObjects [_unit, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0]; if((count(_plots) > 0))then{ _thePlot = _plots select 0; _plotOwner = _thePlot getVariable ["ownerPUID",0]; if ( (_gearCount == 0) &&(locked _unit || !(_onlyLockedVehicles) ) && (count (crew _unit)) < 1 && ( !(_donatorsPlots) || (_plotOwner in _plotDonators))) then {_state = false; }; }; }; //diag_log ("DAMAGE VEH: " + typeof(_unit) + " / " + str(_hit) + " / " + str(_damage) + " / " + str(getDammage _unit)); if (local _unit && _state) then { _total = [_unit,_hit,_damage] call object_setHitServer; }; _total
  19. Like
    Zupa got a reaction from looter809 in [Release] Advanced Trading 2.1 !UPDATED!   
    Version 2.1 Released.
    Alternative selling/buying system. ( Run default & this one next to each other ).
    Supported:
    Config traders Single Currency & Default Currency Selling/Buying everything from and to Gear/Vehicle/Backpack Not supported
     No database traders (database traders make your server slow)  No ability to buy or sell vehicles. What was added to 2.0  Default Currency Supported Item Filter Info display of selected Item Buying to gear and backpack What was added to 2.1Fixed content display of vehicles and backpacks. Description
    Sell directly from backpack, gear or the vehicle ( close) where you were driver from. Decide which items you sell. Traders will only make it possible to trade the items they accept ( goes fully automatic, so only items they accept will be listed on the left).
    You push items to the right to sell, only the items on the right willl get sold.
    Safety measurements
    Double checks what was deleted from backpacks/vehicles so that people can not cheat. Can only sell from your backpack and the vehicle were u was the last driver from ( in 30m radius)  
    Update 1.0 - 2.0 instructions  Delete your old 'zupa' folder  Paste the new 'zupa' folder  Edit the config.sqf to match your server  Done https://github.com/DevZupa/AdvancedTrading/releases/tag/v2.1   Items only show for admins when using infiSTAR AH & Admintools ?! Update infiSTAR to latest version. edit config.sqf to reflect your server correctly.  
    Installation instructions
    Code:
    https://github.com/DevZupa/AdvancedTrading/releases/tag/v2.1
    Install Instructions
    0. Drop the zupa folder in your mission file   1. In your fn_selfactions.sqf
    Place:
    _buyV = player addAction ["<t color='#0059FF'>Advanced Trading</t>", "zupa\advancedTrading\init.sqf",(_traderMenu select 0), 999, true, false, "",""]; s_player_parts set [count s_player_parts,_buyV]; above
    // Database menu _buy = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\show_dialog.sqf",(_traderMenu select 0), 999, true, false, "",""]; s_player_parts set [count s_player_parts,_buy]; 2. in description.ext, add the following on the bottom
    #include "zupa\advancedTrading\ZSCdefines.hpp" // if u don't have it from ZSC #include "zupa\advancedTrading\advancedTrading.hpp" 3. Add the following exceptions to your antihack if needed
    AdvancedTrading 711197 4. Edit the config.sqf to match your server.
     
    Screenshots:
     
     

     
  20. Like
    Zupa got a reaction from looter809 in [Release] Walkers Zombies / Disable running on zeds   
    This little edit will change the run speed of zombies chasing poeple.
     
    Change in your compiles.sqf ( You need an own compiles.sqf ofcourse). If you do not, get it from the epoch pbo's: dayz_code\init\compiles.sqf and change the path in init.sqf)
    zombie_generate = .... wild_spawnZombies = ... to
    zombie_generate =     compile preprocessFileLineNumbers "zupa\walkers\zombie_generate.sqf"; wild_spawnZombies = compile preprocessFileLineNumbers "zupa\walkers\wild_spawnZombies.sqf"; and place the following files in your missions pbo
     
    https://github.com/DevZupa/Walkers
     
     
    What did i edit?
     
    I simple edited the zombie monitor, it force speed to 2 instead of 10 on chasing zombies.
     
     
     
  21. Like
    Zupa got a reaction from Richie in [Release] Advanced Trading 2.1 !UPDATED!   
    Some info regarding the feature:
    Advanced Trading is included in the latest Epoch 1.6 ( Which is coming eventually ).
    Various changes and bugfixes have been applied by the Community devs ( Credits will be given later).
    Also features like vehicle buying have been added. 
     
  22. Like
    Zupa got a reaction from Airwaves Man in [Release] 2.1 Plot Management - UPDATED Object Counter   
    Plot Management 2.1 With Object Counter
     


    By Zupa & rosska85 


    Explanation
     
    This scripts adds a dialog to the plotpole where you can add people form the surroundings to your plotpole. They will be able to build for ALWAYS in the radius of that plotpole untill he gets removed from the plotpole. Everyone on the plot can "Manage" the plot. Owner will always be the highest power on the plote.


    If you dont use plotForLife mod and you add yourself to the plot, you will alwyas be able to build even after you die.


    Add yourself in admin list (fn selfactions section), so admin can manage all plots.


    Technical


    The people on the plotpole gets saved to the DB in the gear variable of the plotpole. The friends are in the plotfriends variable.
    [["46446465","Zupa],["456749879","MyLonelyFriend"]


    Maintain Version:


    You can use the maintain version with Default of SingleCurrency version of Epoch. This will allow you to maintain the area in your plot management menu!
    Show the plot area with a fancy dome made by Zero Remorse's Scripter! 
    Preview any cost before it gets spent!


    Credits


    rosska85 : His people saving on the plotpole gear field! Maca: The idea and code inspiration for this public mod Zero Remorse: Great Dome to show plot area.

    Screenshot


    Default Version:




     
    NEW Maintain version:
     



     Installation
     
     

    Files needed:


    https://github.com/DevZupa/PlotManagement


    Download it with the zip button on right side.


     
    Installation Instructions are on the github readme's


    MAINTAIN VERSION 2.1 !:


    Which files are updated:


    plotObjects.sqf (new) initPlotManagement.sqf (udpated) plotManagement.hpp add extra line in compiles.sqf change 1 number in player_build.sqf





    Same as the default but also add
    MaintainPlot = compile preprocessFileLineNumbers "zupa\plotManagement\maintain_area.sqf"; PlotPreview = compile preprocessFileLineNumbers "zupa\plotManagement\plotToggleMarkers.sqf"; PlotObjects = compile preprocessFileLineNumbers "zupa\plotManagement\plotObjects.sqf"; // NEW to your compiles.sqf  after
    if (!isDedicated) then { Now default max range is 30m to check if there are too many objects in one spot. 
    Lets change that to the plotRadius, so my plot menu can show u how many objects ( that can be maintain) are still able to be build.
     
    in player_build.sqf 
     
    look in a IF for:

    nearObjects ["All",30]change that to
    nearObjects ["All",DZE_PlotPole select 0]To change maintani price ( for default very obvious in maintain_area.sqf). for single currency


    change the 1 to any price you want per object.
    _theCost = _count * 1;For example
    _theCost = _count * 150; // 150 coins per object. INFINISTAR:


    Add the following number to the dialogs array:
    711194 AND


    Add
    "PlotManagement" to 
    _cMenu = You've succesfull have plotManagement






    NEW Update 1.1:


    Github updated with file:
    plotNearbyHumans  - ALLPLAYERS.sqf


    Rename to:
    plotNearbyHumans.sqf (overwrite default)


    IF YOU WANT ALL PLAYERS LISTED ON THE LEFT


    New Update 2.0:


    Fixed all players showing in list Added maintain area/ preview area cost/ preview area (in a dome)

    IF you have single currency user the maintain_areaSC as maintain_area ( rename it and delete the other one).


    Important info:
  23. Like
    Zupa got a reaction from WeskeRo in {Request} Vehicle Garage   
    As i know he would change his comment:
     

  24. Like
    Zupa got a reaction from IncsyUK in [Server Addon] ZCP - Zupa's Capture Points 2.0 Updated for Epoch 0.3   
    Will u pay me cus i've put time in making this? :p
  25. Like
    Zupa got a reaction from PryMary in [Server Addon] ZCP - Zupa's Capture Points 2.0 Updated for Epoch 0.3   
    Will u pay me cus i've put time in making this? :p
×
×
  • Create New...