Commit Graph

35 Commits

Author SHA1 Message Date
A Man
ff94bfa931 Add a few new building previews to handle some exploits
Thx @TheFirstNoob for letting me know
2022-04-17 16:14:03 +02:00
seelenapparat
5461729599 Added support for the elevator script via 3 new kits and objects
This was made, so that you don't have to use the normal epoch buildables for the elevator anymore.
You can now instead use these distinct items for the script.

Classnames:

Kits:
elevatorstart_kit
elevatorstop_glass_kit
elevatorstop_transparent_kit

Objects:
ElevatorStart_DZ
ElevatorStop_Glass_DZ
ElevatorStop_Transparent_DZ
2022-01-20 15:49:52 +01:00
A Man
abbedc7ddf Update snappoints and vector helpers
Mady by @Victor-the-Cleaner
2021-12-23 16:40:04 +01:00
A Man
58c4a4d1f7 Update remove/deconstruct, add helpers
Removing and Deconstructing Objects

- Now adds colored helpers to modular objects.
- Green: Refund one kit.
- Blue:  Refund entire recipe of parts (multiple items).
- Red:	 No refund will be given. Either because the object is too damaged, or the refund feature is disabled.
- If the object has a door open while selected, no helper will display/float in the open door space.
- The gear panel will only open if a refund is available.
- If a lit fire barrel is removed, the flame will now be extinguished.
- If a plot pole is removed, plot boundary helpers will now be deleted.
- Refunds for non-modular objects are handled by their respective config settings.
- Removed non-lockable storage objects will now refund their contents.
- The corresponding storage kit will be refunded.
- If there is room outdoors, backpacks will be arranged in a neat circle close to the refund point.
- If the spawn point is too close to a building, backpacks will spawn at the player's location.
- Helpers will now appear on wrecked/ruined modular objects.
- Helper color arrays were changed to helper transparency values only, to make it easier (and safer) for server owners.

Upgrading, Downgrading, Maintaining and Packing Objects

- Now includes colored helper spheres for improved player experience.
- Reapply damage to upgraded/downgraded object if necessary.

Changes made by @Victor-the-Cleaner
2021-09-19 18:50:14 +02:00
A Man
17f9ebd1ac Update building offsets for new modular_build
Thx @Victor-the-Cleaner
2021-09-19 18:34:13 +02:00
worldwidesorrow
f68e92d552 Update snappoints.hpp
Adjust z position to center of metal and glass floors. Adjust the top of the cinder walls so they line up with the top of the cinder gate when stacked 2 high. Add additional snap points to the 4x metal floors.

The 3d models of the wood floors need adjustment so the x and y axis are at the center of the models.
2021-07-28 13:01:42 -05:00
A Man
f24a819384 Fix wrong snappoint name 2021-05-31 21:03:11 +02:00
AirwavesMan
890919dd6e Update snappoints.hpp 2021-02-07 17:23:30 +01:00
AirwavesMan
8e8727dd63 Update snappoints.hpp
Update snappoints for the new storage sheds models.
Add Metal/wood pillar and tall safe to snapping.
2021-01-28 10:56:46 +01:00
AirwavesMan
73db461480 Update snapping for wood floors 2021-01-26 17:34:56 +01:00
AirwavesMan
5d3975acc2 Add StorageShed_Preview_DZ to snapping 2021-01-24 18:06:21 +01:00
AirwavesMan
01c022060f Update snappoints.hpp 2021-01-20 18:34:17 +01:00
AirwavesMan
a27408af7b Update snappoints.hpp 2021-01-19 13:32:05 +01:00
AirwavesMan
c4bd8ffe44 Update snappoints.hpp 2021-01-17 10:24:11 +01:00
AirwavesMan
ba18a997e4 Update snappoints.hpp
All stairs can be snapped now.
2021-01-14 16:33:44 +01:00
AirwavesMan
95537153b2 More snap work 2021-01-11 12:27:13 +01:00
AirwavesMan
02736ec836 More snapping work 2021-01-10 12:32:54 +01:00
AirwavesMan
ca05896f2e Update snappoints.hpp 2021-01-08 20:24:29 +01:00
AirwavesMan
c49ab8f354 Update snappoints.hpp 2021-01-07 20:24:33 +01:00
AirwavesMan
3724a1f385 Add DayZ Mod fences and gates
Epoch has its own DayZ Mod fence versions now. The old fences can still be used. The new fences have a full upgrade and snap  support. all gates work with the door management too.
2020-06-18 15:53:28 +02:00
A Man
fe1d7fb48d Update Snap and Vector build
- pre compile all snap and vector functions, it was only pre compiled if got started from modular_build before but not if it got called from the action menu
- localize snap and vector building
- clean up the code
- remove old Cinderwall vector fix, it looks like it is not needed anymore
- Update modular_build and player_build
2020-03-08 14:08:45 +01:00
A Man
8f10a36b99 Fix snap point for half cinder wall 2019-10-20 18:30:29 +02:00
ebaydayz
84d549d0a1 Revisions for #1777 (#1778)
* Update z_at_buyItems.sqf

* Update z_at_buyItems.sqf

* Update z_at_canAfford.sqf

* Update z_at_fillBuyableList.sqf

All of this is already checked in z_checkCloseVehicle at startup. If Z_VehicleChanges between the time the menu is started and the buyable list is filled it's not a big deal, since it only affects the highlighted color.

* Update server_handleSafeGear.sqf

* Update snappoints.hpp

* Update z_at_buyItems.sqf
2016-10-25 13:59:56 -04:00
oiad
bef2506653 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
2016-10-25 13:10:48 -04:00
oiad
c02053176d Advanced trading bugfix, Snap building typo and snap point fixes
Fixes a bug with advanced trading green "you have this item" text in
buyables list, this was showing you had the item when you didn't.
Snap building typo
Snap building snap points for large cinder walls as reported by
@SmokeyBR
https://github.com/EpochModTeam/DayZ-Epoch/issues/1766#issuecomment-248021073
2016-09-24 18:53:02 +12:00
oiad
7c4d25ef1a Advanced trading tidying, spelling fixes, private fixes and string fixes (#1716)
* Advanced trading tidying, spelling fixes, private fixes and string fixes.

Fixes snap building issue with metal floors
Fixed spelling mistakes in various scripts
Fixed formatting uglyness in various scripts
Fixed invalid private lines in various scripts
Changed Advanced trading so buying worked more like selling, You can't
select backpack if you don't have a pack nor can you select a vehicle if
you don't have a vehicle.
Removed some redundant strings from Advanced trading and changed a few
of the strings to be more englishy
Removed the ability to buy a backpack into your backpack (You cant do
this anyway)
Fixed a bug where if you had nothing in your backpack it would break the
checkArrayInConfig script so the titlebar would not refresh correctly
Removed slot counts on no backpack and no vehicle (No need for it, just
clutter)
Moved backpack/vehicle checking to z_at_getContainer.sqf

* Last part of tidyness fixes

Last part of tidyness fixes

* Actual backpack fix

Lets actually fix the buying backpack into backpack or backpack when you
already have one.

* Missing from commit

Missing from commit
2016-07-30 10:03:00 -04:00
oiad
ad9694844d Snap point changes
This correctly fixes snap points for all cinder related to metal floors.

Anything cinder will now correctly snap to full cinder walls and vice
versa
Metal floors will not have gaps so you can correclty create a 1x1 cube
(as it should be)

Renamed cinder_wall_kit to half_cinder_wall_kit to be in line with
full_cinder_wall_kit since I felt it was confusing. cinder_wall_kit
seems like it would be full to me.

Fixed a string issue when building cancelling to make it more readable.
2016-07-26 13:22:10 +12:00
icomrade
0563f621e2 Fix full cinder wall snap points 2016-07-24 15:28:18 -04:00
ebaydayz
326fda70b1 Add missing SnapPro commit
Missing SnapPro update from
52d5bf8af4

Fix Wood Floor short side snap point
2016-07-09 12:33:53 -04:00
oiad
06c8fef001 Various changes (snappoints, dooraccess and fn_selfactions) (#1706)
* Changes to snappoints.hpp fixes issues with metal floors snapping to a cinder wall. Cinder to cinder will create small gaps and then metal floors won't properly line up unless you start with a metal floor then snap cinders. By making both the same snap size, this fixes this issue.

Changes to doorAccess.hpp makes it possible to unlock doors and downgrade them again. It was setting dze_lock_door to the players UID instead of the door code as it should so the conditions would not be met in fn_selfActions to give you additional access.

Changes to fn_selfActions refine access to certain points more accurately (the way they should be IMO)

1) Adds a check to see if the building item can be upgraded anymore before presenting the menu, this stops you receiving the "upgrade item" action even when the item is fully upgraded
2) Adds access checks to the maintain individual item menu action so only item owner, plot owner and plot friends will see it, same with the above upgrade item menu action, this will also stop you receiving this when you are on someone elses plot that you may not have access to (I.e it's useless)
3) Changes modular building access to be item owner, plot owner and plot friend to remove modular items.
4) Changes plot managment action menu so item owner, plot owner and plot friend can access it. I thought there could be a situation where item owner != plot owner. This can be reverted if that is never possible.
5) Changes downgrading so only item owner, plot owner and plot friends can access it. If someone has the door code that doesn't mean they should be able to remove the combo (IMO)

* typo.
2016-07-09 12:28:39 -04:00
raymix
14ebc32bd4 minor range adjustments 2014-08-09 14:21:21 +01:00
raymix
95077f35f8 snap optimization for large bases 2014-07-17 20:00:26 +01:00
raymix
a297cfea63 snap building plotpole / infinite drag fix 2014-07-16 06:38:27 +01:00
raymix
2355d6b18e snap code optimization, vault points added 2014-07-12 20:23:42 +01:00
raymix
5c8da27d4d optional snap building added 2014-07-10 20:13:30 +01:00