mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Advanced trading fixes, server_handleSafeGear human readibility (#1777)
* Advanced trading fixes Fixes a few issues and a dupe with advanced trading as well as some localization of where a vehicle key is going. Z_at_buyItems: Now adds localization for the key getting added to your toolbelt, backpack and vehicle, this stops players thinking they didn't get a key when infact it was added to their backpack/vehicle. Z_at_canAfford.sqf: This fixes a dupe from a bad copy paste for whomever wrote this script, it was using _backpackMoney in the z_allowTakingMoneyFromVehicle part, changed to the proper variable _vehicleMoney. z_at_fillBuyableList.sqf: this fixes a bug where a vehicle would show green even when it isn't local, just basically added more checking to make sure the vehicle it's making green in the list is a) local, b) alive and that the typeOf == _name. z_at_logTrade.sqf: fixes some tidyness. advancedTrading/init.sqf: adds a z_checkCloseVehicle call otherwise even with Z_AllowTakingMoneyFromVehicle = true it will not get currency from your vehicle until you clicked on the "Vehicle" tab. dayz_server/server_tradeObject.sqf: More tidying as per the z_at_logTrade and removes the useless Player:, as it is obvious a player has bought something not an AI. dayz_server/server_handleSafeGear.sqf: Makes the diag_log at the end more human readable with GPS coordinates as well as the lock code for the safe or the lockbox. * advanced trading fixes. I hate you github WHY U GET MISSED?? STUPID GITHUB. * snappoints changes Fixes the issue @SmokeyBR reported https://github.com/EpochModTeam/DayZ-Epoch/issues/1766#issuecomment-253864795 Adds all floor types to snap list for all barriers so you can snap a sandbag etc to a floor instead of manually lining it up
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
Created by Raymix
|
||||
*/
|
||||
|
||||
|
||||
class SnapBuilding {
|
||||
//Barriers whitelist
|
||||
class Barrier {
|
||||
@@ -12,11 +11,14 @@ class SnapBuilding {
|
||||
"Land_HBarrier1_DZ",
|
||||
"Sandbag1_DZ",
|
||||
"BagFenceRound_DZ",
|
||||
"Fort_RazorWire"
|
||||
"Fort_RazorWire",
|
||||
"WoodFloorQuarter_DZ",
|
||||
"WoodFloorHalf_DZ",
|
||||
"WoodFloor_DZ",
|
||||
"MetalFloor_DZ"
|
||||
};
|
||||
radius = 5;
|
||||
};
|
||||
//snap points
|
||||
class Land_HBarrier5Preview: Barrier{ //fix for broken offsets in ghost
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
@@ -242,8 +244,8 @@ class SnapBuilding {
|
||||
class Cinder_DZE: FloorsWallsStairs { //All cinder walls and doors
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-2.64, 0, 0,"Left"},
|
||||
{2.64, 0, 0,"Right"},
|
||||
{-2.64, 0, 1.685,"Left"},
|
||||
{2.64, 0, 1.685,"Right"},
|
||||
{0, 0, 3.37042,"Top"}
|
||||
};
|
||||
radius = 10;
|
||||
@@ -257,6 +259,22 @@ class SnapBuilding {
|
||||
{0,0,-1.685,"Bottom"}
|
||||
};
|
||||
};
|
||||
class CinderWallDoorway_Preview_DZ: Cinder_DZE {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-2.64, 0, 1.685,"Left"},
|
||||
{2.64, 0, 1.685,"Right"},
|
||||
{0, 0, 3.37042,"Top"}
|
||||
};
|
||||
};
|
||||
class CinderWallSmallDoorway_Preview_DZ: Cinder_DZE {
|
||||
points[] = {
|
||||
{0,0,0,"Pivot"},
|
||||
{-2.64, 0, 1.685,"Left"},
|
||||
{2.64, 0, 1.685,"Right"},
|
||||
{0, 0, 3.37042,"Top"}
|
||||
};
|
||||
};
|
||||
class CinderWallDoorway_Preview_DZ: Cinder_DZE {};
|
||||
class CinderWallSmallDoorway_Preview_DZ: Cinder_DZE {};
|
||||
class CinderWallHalf_Preview_DZ: Cinder_DZE {
|
||||
|
||||
Reference in New Issue
Block a user