Commit Graph

82 Commits

Author SHA1 Message Date
ebaydayz
91f9b3e33b Make UI toggleable between three options
Admin can choose vanilla, classic epoch or classic epoch dark.

dayz_hungerThirst was replaced with dayz_NutritionSystem
2016-03-29 19:54:19 -04:00
ebaydayz
71b975b05e Actions cleanup 2016-03-29 14:47:28 -04:00
ebaydayz
e1a0bfebc1 Update inits 2016-03-27 23:47:30 -04:00
ebaydayz
e2e6e79394 Minor formatting cleanup 2016-03-21 17:58:23 -04:00
ebaydayz
4bd9a9aa0b Update public variables
It makes no sense to rename the identical DayZ PVs to have an E in their
name. I don't see any good reason it was done in the first place. All it
accomplishes is breaking script compatibility between the two mods and
requiring different publicvariable.txt filters. The only time it makes
sense is for custom Epoch variables that aren't used in vanilla.

All admins have to do to update custom scripts is swap the names
according to the change log.

Note I've submitted a pull request to replace PVDZ_veh_Save with
PVDZ_obj_Save in official too because they are duplicates.
2016-03-18 21:39:22 -04:00
ebaydayz
585841a3ad Fix snap build errors
@raymix in most of your helper functions you are using exitWith {}; in
the same way the main player_build uses it. The problem is exitWith
inside of a called function only exits that function, not the parent
script it was called from.

When a helper function exits the main script continues on with undefined
variables and other problems. The easiest solution was to just remove
these helper functions for now. I just directly substituted their code
back into the main modular_build file and removed the passes to and from
them.

We should consolidate player_build and modular_build into one file first
since they are about 80% identical. After that we need to integrate
plot4life. Dividing player_build up into smaller sub functions like this
can be left for last.

I tested this thoroughly and can confirm the undefined errors are fixed
now.
2016-03-02 22:16:07 -05:00
ebaydayz
78e193d7c4 Fix DZE_BuildLimit check
NearObjects "All" counts things like local plot markers, weapon holders,
ambient life, etc. We only want to count buildables. The radius should
also start at the plot pole if available, not the player position.

Thanks to Epoch forums user jOoPs for pointing this out. I will fix this
in modular_build.sqf too.

Tested and confirmed working.
2016-03-02 17:03:47 -05:00
icomrade
277d87fa3b Some more position fixes 2016-02-18 09:16:20 -05:00
icomrade
254fbff602 Fix #1274 2016-02-18 00:24:50 -05:00
icomrade
c3ed4e49e1 Replace sleep with uiSleep
see the below links for more info. uiSleep is based off of a more
accurate method of tracking time, whereas sleep can fluctuate depending
on application performance since it is based on framerate.
https://community.bistudio.com/wiki/uiSleep
https://community.bistudio.com/wiki/sleep_vs_uiSleep
https://community.bistudio.com/wiki/sleep
2016-02-17 13:03:17 -05:00
Mikeeeyy
49fe5f4846 Update cannot build plot pole within 45m.
Updates the cannot build plot pole within 45m message to use the DZE_PlotPole variable.
2014-08-15 00:10:24 +01:00
Marko
e330fe17aa Update player_build.sqf
Would this work for adding built item code into systemchat? This way people can PageUp to view it, even after its gone from the screen.
2014-07-25 00:34:19 +02:00
Marko
0529324a4b Update player_build.sqf
Changed || back to or. (for messages)
2014-07-21 19:07:54 +02:00
Skaronator.com
919e65d19e Cleanup code #1320 2014-06-18 14:27:54 +02:00
icomrade
6b9b176736 More #1288 2014-06-01 03:29:44 -04:00
icomrade
e54b9983dd Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker
than forEach.
2014-05-27 15:37:57 -04:00
deadeye2
be3cc5e5a5 Account for different _needNear distances
checks for fueltank within 30m and other objects within 3m
fixes #1123
2014-03-01 23:14:44 -05:00
Skaronator
c9181047ab Super Cleanup 2014-02-21 19:32:25 +01:00
Florian Kinder
86ce8f6879 Replaced obsolete variable 2014-02-17 01:32:45 +01:00
Florian Kinder
6d89460dcc Wrong here
Error in expression <LAIN DOWN"];
};

} else {
deleteVehicle
_tmpbuilt;
cutText [format[(localize "st>
Error position: <_tmpbuilt;
cutText [format[(localize "st>
Error Undefined variable in expression: _tmpbuilt
File z\addons\dayz_code\actions\player_build.sqf, line 556
2014-02-11 22:00:20 +01:00
Florian Kinder
387075f6ae Removed obsolete code 2014-02-11 21:56:25 +01:00
Florian Kinder
f999a0f02b Added DZE_StaticConstructionCount
with DZE_StaticConstructionCount you will force the constructioncount
2014-02-06 18:51:45 +01:00
Skaronator
23e509053e Set Buildup Combination to cache variable 2014-01-25 23:16:02 +01:00
[VB]AWOL
3b3ee0d905 removed build timer 2014-01-22 11:53:14 -06:00
[VB]AWOL
20dab78c27 spawn calls need dummy input or error out 2014-01-13 09:48:29 -06:00
[VB]AWOL
35d1dea5b2 fixed typo in player build 2014-01-13 09:26:51 -06:00
[VB]AWOL
172a4b9ad0 incorrect format KISS 2013-12-27 10:10:04 -06:00
[VB]AWOL
8971621d26 fixed incorrect code here 2013-12-27 10:04:45 -06:00
Torndeco
a9f23c6dc5 Typo 2013-12-16 20:34:58 +00:00
HARLAN
ed3266d124 #919 modify global var into array 2013-12-16 13:02:39 -05:00
HARLAN
d25b0fbcb9 #919 override plotpole variables 2013-12-16 10:48:52 -05:00
HARLAN
58f89d8d61 remove allowing tanktraps on roads 2013-12-15 19:58:59 -05:00
HARLAN
7f80557c6b #894 allow tanktraps on road, global toggle on road building
DZE_BuildOnRoads toggle (default False)
2013-12-13 14:12:36 -05:00
HARLAN
acb33e2f00 Merge pull request #899 from dayz10k/plotpreview
#846 Plotpreview
2013-12-13 10:59:01 -08:00
HARLAN
920cdfba78 plot preview #846 only after plot placed 2013-12-13 13:58:07 -05:00
[VB]AWOL
51c7d3fc87 use getposalt instead of position here fixes
http://bmrf.me/vbforums/showthread.php?11562-Smelting-Tin-BUG&p=75405#post75405
2013-12-11 08:17:12 -06:00
[VB]AWOL
a10472270a DZE_requireplot override var added = 0 disables requirement 2013-12-10 16:00:27 -06:00
Skaronator
6956122ff5 Remove Debug 2013-11-30 16:17:24 +01:00
Zac Surplice
6a58370670 small change 2013-11-27 15:42:38 +11:00
[VB]AWOL
84874daa18 added thirst and hunger loss to all medic animation 2013-11-26 16:08:10 -06:00
[VB]AWOL
78dbf9179b suppress debug from building 2013-11-25 15:56:31 -06:00
[VB]AWOL
7ea7dd8c7d temporary building of only dayz fireplaces 2013-11-18 23:49:05 -06:00
[VB]AWOL
4bec90aaa9 added config var to prevent building under ground 2013-11-17 19:40:13 -06:00
[VB]AWOL
6ed3669d9b localization typo in pole requirement 2013-11-17 14:58:42 -06:00
[VB]AWOL
1810c51517 typo 2013-11-17 00:49:34 -06:00
[VB]AWOL
648c91a68d update private array 2013-11-17 00:31:25 -06:00
Zac Surplice
585d38e7b6 more localization 2013-11-09 13:38:07 +11:00
[VB]AWOL
8833fd06f1 zabn localization + halo 2013-11-06 18:06:28 -06:00
dayz10k
4e38da394e Update player_build.sqf
-updated isOnRoad check
-added check to deny building tanktraps underground

#661
2013-11-06 14:01:13 -05:00
Zac Surplice
cf2cdc037a localization #2 2013-11-06 19:34:53 +11:00