Commit Graph

53 Commits

Author SHA1 Message Date
ebaydayz
74579bcf2f Allow remove with Crowbar in hands or onBack
Now crowbar can be in your toolbelt, hands or onBack when removing
modular items, mining ore, opening supply crates, etc.
2016-08-12 19:38:23 -04:00
ebaydayz
5b7ef99569 Fix _distance in dze_buildChecks
Passing false as the second parameter to fnc_find_plots always returns
DZE_PlotPole select 0. In dze_buildchecks we want to use DZE_PlotPole
select 1 if the classname is a plot pole.

_distance is already defined as DZE_PlotPole select 0 in the other three
files, so it is redundant to redefine it as the return value.

In player_upgrade.sqf the check for DZE_permanentPlot is not necessary,
because FNC_check_access handles both cases.
2016-06-16 20:15:51 -04:00
ebaydayz
01d8197d12 Remove redundant function fn_check_owner_friends
Fn_check_access provides the same functionality and more.

Removed folders that only contained a single file to clean things up.

Also added epoch tag friendly code to vanilla player_updateGui for now.
2016-06-15 20:09:04 -04:00
ebaydayz
20066de673 Rename FNC_check_owner --> FNC_check_owner_friends
Use a more descriptive name for what it actually does now.
2016-06-12 13:30:49 -04:00
ebaydayz
835d750c0c Use single config variable for Plot for Life and Plot Management
Plot for Life and Plot Management work best together. They essentially
provide the same functionality. Both let you keep your plot after death
by using UID instead of CharacterID. Plot Management doesn't even have
an option to save characterID, so by default it is always keeping all
friends and the owner permanently until they are removed. The only major
difference between them is Plot For Life also adds permanent ownership
of built items on the plot, which is behavior most people expect. It
doesn't make sense to keep ownership of the plot after death but not the
other objects built on it. The other functionality it adds (take
ownership) can be toggled with a config variable.

It is rare that someone would want Plot For Life enabled, but Plot
Management disabled or vice versa. If they really want that they can
still do it manually, but consolidating them to a single config option
greatly simplifies things for everyone else.

I removed links to mod githubs because many changes have been made to
the 1.0.6 versions, so outdated information there will likely confuse
people. Authors are already credited in the README and change log.

In variables.sqf "DZ_storage_base" is now the parent class which
includes all tents and stashes. DZE_checkNearbyRadius variable is not
used (identical to DZE_PlotPole select 0).
2016-06-12 12:54:46 -04:00
ebaydayz
edd53597b0 Don't pass DZE_plotManagement to fn_check_owner
The whole point of a global variable is you do not need to pass it.
DZE_plotManagement and DZE_plotmanagementAdmins are always defined and
do not change, so there is no need to pass them as parameters.
2016-05-20 12:14:48 -04:00
icomrade
575682b7c8 Add A Plot For Life modification by RimBlock
A Plot For Life also includes Precise Base Building by Mikeeeyy. Precise
base building has no variable to switch it on or off, I don't think it
should.

Seems to work well enough, this may conflict with the duplicate object
uid fix, it appears to spam my server rpt.
2016-05-02 20:42:37 -04:00
icomrade
83694a452e Gem Trading mostly finished
Sometimes displays incorrect total price in advanced trading menu.
2016-04-30 11:17:41 -04:00
ebaydayz
5157228e67 Update all cutText to dayz_rollingMessages 2016-04-16 15:47:49 -04:00
ebaydayz
e69364991c New config variable dayz_toolBreaking
Tool breaking is disabled by default.

Also made all scripts use Epoch sledge, which is a different model from
vanilla sledge.

PK_DZ was a duplicate of the new PKM_DZ.
2016-04-03 16:34:14 -04:00
ebaydayz
77e760fe73 Update private tags
From
e69f8d5306

Moved dog files to the \dog\ folder and pzombie files to the \pzombie\
folder. Also removed some legacy files that are no longer used.

The actions\ and compile\ folders are fully up to date now
2016-03-30 14:55:45 -04:00
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
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
icomrade
bad0a2e461 add 2 new vars and fix up variable names
DZE_HeartBeat
DZE_UseBloodTypes
2016-03-01 00:23:14 -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
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
Florian Kinder
d4416e8849 Fixed Error in expression remove buildings
Error in expression <= getNumber(configFile >> "_objType" >> _classname
>> "constructioncount");
diag>
Error position: <_classname >> "constructioncount");
diag>
Error Undefined variable in expression: _classname
File z\addons\dayz_code\actions\remove.sqf, line 50
2014-02-09 15:06:38 +01:00
Florian Kinder
246d19381d Update 2014-02-06 18:55:57 +01:00
[VB]AWOL
bc8083b4ed 40% chance to payout gem on removal of mine ruins 2014-01-21 17:58:38 -06:00
HARLAN
825c603026 localize fixes 2013-12-23 11:52:29 -05:00
HARLAN
adaf0a9c9e #852 localize 2013-12-20 12:49:43 -05:00
Skaronator
ed3cd2219c Thats now a correctly Fix for the exitWith thing 2013-12-15 18:22:34 +01:00
[VB]AWOL
f33f406c73 fixes 2013-11-28 01:34:24 -06:00
HARLAN
8a14a33ff2 Merge pull request #807 from dayz10k/master
#762
2013-11-26 22:20:52 -08:00
HARLAN
4e940a21cc #762 2013-11-27 01:20:33 -05:00
HARLAN
ff41e022e1 #761 owner remove modular 2013-11-27 00:07:22 -05: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
e92d212d16 added logging to swap object and changed to getPlayerUID 2013-11-26 14:12:23 -06:00
dayz10k
a07adf9406 Update remove.sqf 2013-11-23 17:13:58 -05:00
dayz10k
3c1984ba88 #761 allow owner to remove modular(no refund, no rubble) 2013-11-22 17:47:11 -05:00
dayz10k
a0b171d3f5 #761 allow owner to remove modular(no refund, no rubble) 2013-11-22 17:43:53 -05:00
Zac Surplice
9a601182bb localization #3 2013-11-07 02:05:05 +11:00
Zac Surplice
cf2cdc037a localization #2 2013-11-06 19:34:53 +11:00
[VB]AWOL
c087d3860e missing setposatl 2013-10-30 17:18:31 -05:00
[VB]AWOL
d603a8f3f4 Open gear menu instantly after action completes 2013-10-27 11:50:41 -05:00
[VB]AWOL
478eb29a23 prevent sinking into ground 2013-10-27 10:34:48 -05:00
[VB]AWOL
aa14a03c4e added server side logging of purchases of vehicles and removals 2013-10-27 10:22:29 -05:00
[VB]AWOL
e303e033b6 Fixed: #599 2013-10-21 21:58:58 -05:00
Zac Surplice
d3f7e67647 player_build.sqf Enhancements and PV renames 2013-10-07 10:56:47 +11:00
[VB]AWOL
27300140a8 1.0.2.4 RC1 2013-10-05 06:29:39 -05:00
[VB]AWOL
dc1328c05a 1.0.2.16 dev test 2013-09-15 19:57:22 -05:00
[VB]AWOL
becff1ed84 prevent refund on objects that are not setup 2013-09-10 16:36:02 -05:00
[VB]AWOL
7b15ee415d 1.0.2.13 developer build 2013-09-10 16:23:01 -05:00
[VB]AWOL
9fcb43fde1 1.0.2.11 2013-09-08 00:23:30 -05:00
[VB]AWOL
8744ace1ee prevent remove option while script is running 2013-08-23 11:24:00 -05:00
[VB]AWOL
cd96e8df2a 1.0.1.8 part 2 2013-08-10 08:32:23 -05:00
vbawol
d635831074 1.0.1.5 RC5
+ [CHANGED] Default construction count lowered from 5 to 3.
+ [FIXED] fixed tag friendly system and epoch aura.
+ [CHANGED] some recipes input and construction counts reduced.
2013-07-11 11:09:04 -05:00
vbawol
8663c52657 typo 2013-07-08 08:31:45 -05:00