Commit Graph

1054 Commits

Author SHA1 Message Date
A Man
b0edf3cb75 Fill mixed gas into a chainsaw requires a chainsaw now 2019-11-02 09:57:05 +01:00
A Man
4828c087ce Adding more lazy evaluation for fn_selfactions 2019-10-30 20:08:57 +01:00
A Man
ad541b03b0 Adding more lazy evaluation for damage_actions 2019-10-30 20:08:08 +01:00
A Man
915cf72df3 Adding dayz mod waterbottles
This commit adds the waterbottles from DayZ Mod. The icons were made by @DeVloek. The waterbottles are fully functional with all actions. To boil a plastic waterbottle you need an empty trash can.

Dogs could not be watered with other waterbottle than the ItemWaterbottle itself. This is fixed now. Also fix missing reset action from hide body.
2019-10-29 15:23:30 +01:00
A Man
1268f55f32 Fix floating loot after remove, pack or output from fn_dropItem 2019-10-23 12:46:08 +02:00
A Man
c0e9fe62e1 Make Hide Body customizable
Do not use hideBody as command without the action. It just hides the body but it still can be geared. If using hideBody in correlation with deleteVehicle it breaks the allDead command.

player action ["hideBody", body] deletes the body and the marker from the map but it stays inside allDead.

This fixes the issue that hided players were still shown on the map and still searched for their body.

Needs additional testing for a new release.
2019-10-20 07:26:51 +02:00
F507DMT
b798abf7fb Update player_switchModel.sqf (#2031)
delete all items, if used custom skins
2019-03-11 22:47:07 +13:00
ebayShopper
73118c249b Fix error in 634a01a #2029
Vanilla commit: https://github.com/DayZMod/DayZ/commit/42368d7
2019-01-26 11:28:10 -05:00
F507DMT
967abbdcd9 Update player_countMagazinesWBackpack.sqf
There may be too long pauses with low FPS.
2019-01-15 01:58:39 +06:00
F507DMT
b4e5a38db5 Update private tags 2019-01-07 21:23:08 +06:00
oiad
0391fef4ff Update private tags
This was breaking scripts that use a variable called `_chance`

_chance = 30;
[player,"repair",0,false,50] call dayz_zombieSpeak;

_chance would get changed to 0
2019-01-05 11:12:29 +13:00
oiad
387f77b9da Update private tags 2019-01-05 09:32:12 +13:00
F507DMT
3dc7db7a7a Update player_countMagazines.sqf
Variables("_item","_val","_max") get lost in other scripts, causing errors.
2019-01-04 18:49:20 +06:00
oiad
c3cbca144e Add penalties for wrong safe/lockbox code
As per
6f072982c3 (diff-2b5340930b14ce1ae29d38ebc575c75a)
2018-05-26 21:42:50 +12:00
oiad
bac0071745 Remove duplicate "DZ_buildables"
DZ_buildables is already part of DZE_maintainClasses
2018-04-16 23:45:14 +12:00
oiad
f65dedf9ed Change DZE_limitPlots to be configurable
This allows you to now specificy a maximum amount of plots per player
for them to place.

This is disabled by default.
2018-03-31 15:53:56 +13:00
icomrade
f03f2454c9 Update for A2 1.64 GetHit
Replaced vehicle sethit/setvariable method with sethit/gethit and removed setvariable "Hit_" commands for vehicles (hit_partname can now probably be added to the setvariable filters list).

Modified object_getHit.sqf return to now provide the selection name in order to reduce redundant config lookups. Returns '[Damage, Part Name]', instead of just 'Damage'

Modified vehicle_GetHitpoints.sqf to remove incorrect hipoints from returning. Previously this script would return all hitpoints from any vehicle the current vehicle config inherited from, even if the hitpoint didn't exist in the calling vehicle. this posed a problem since getHit on an invalid part name returns Nil
2018-01-21 17:26:35 -05:00
ebayShopper
e04f0fcac5 Add status icons disabled notification
Vanilla commit:
fe063a8896
2018-01-17 17:17:33 -05:00
ebayShopper
634a01a8d3 Block firing during unconscious wake up animation
Vanilla commit:
10cb55b8aa
2018-01-17 17:02:27 -05:00
ebayShopper
6caba339c9 Update change log
Minor improvement to b791dee and 6248add
2018-01-11 15:41:13 -05:00
oiad
b791deeea8 Condense variables and remove unneeded _isPZombie checks
We're already checking for _isPZombie here:
https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/compile/fn_selfActions.sqf#L223
so we don't need to check it again with the trader or the attach to
heli.

Condensed the distance check to a variable
2018-01-06 17:37:06 +13:00
ebayShopper
e89eebc843 Fix ArmoredSUV gunner glitch #2009
Fixes #2009

Note the fn_damageActions.sqf change can be applied without the config
change and it will still fix the problem most of the time.
2017-12-29 17:21:40 -05:00
ebayShopper
694ea87d0d Update scripts.txt
- Updated exceptions, added new filters and removed some which were not
useful
- Removed exceptions for testkit because it is not part of the mod
- Added notes to clarify for now, will move this info to BI wiki later
- Removed two unused files
2017-12-26 00:55:10 -05:00
ebayShopper
cfc6ad08af Remove unused parameter in PVDZ_hlt_Bleed
Vanilla commit:

83bf13c786
2017-12-17 12:44:03 -05:00
ebayShopper
b9c9d504d0 Stop antiwall running on m240 nest getOut 2017-12-13 13:52:58 -05:00
ebayShopper
13c90993fc Sync Zupa dialog colors
Heights on the trader menu filter search box and amount box have also
been fixed.
Old: https://imgur.com/a/ld4XF
New: https://imgur.com/a/9T8VP
2017-12-08 18:03:23 -05:00
ebayShopper
6edc98adb9 Fix death cam height and rare duplicate weapon error
Vanilla commit:

1e01536fa7
2017-12-05 14:19:55 -05:00
ebayShopper
5e9a7271e9 Add option to toggle status icons
Vanilla commit:

44bb49e326
2017-12-04 18:14:48 -05:00
ebayShopper
da7ea3bb4e Do not set player in combat for throwing flare or chemlight
Vanilla commit:

848b03042d
2017-12-04 14:59:21 -05:00
ebayShopper
ac10daeb4d Update humanity morphing
Vanilla commits:

33d4165e64

6674be6d5f

f4d18a6fef
2017-11-25 14:52:06 -05:00
ebayShopper
1e65d5d324 Move server_getDiff to missionNameSpace
Vanilla commits:

dc984fd219

d82f430c28
2017-11-25 12:47:25 -05:00
ebayShopper
90487cde10 Update player_fired.sqf
Vanilla commits:

70fc007062

f327c99b02
2017-11-22 12:49:06 -05:00
ebayShopper
c671cf9661 Update player_death.sqf
Vanilla commit:

0e0ffa1d6e
2017-11-21 16:30:19 -05:00
ebayShopper
4ea3f36830 Update PVDZ_sec_atp logs
This reverts commit 7b287a2

Vanilla commit:

a81dd8164c
2017-11-21 15:05:07 -05:00
ebayShopper
4b4bdbbc29 Update vanilla player_breakin.sqf
Vanilla commits:

63aaf07a30

b074e7d847

fb3f69a69a

416cc5dcf1

b6c0dd5849

39a3d45965
2017-11-20 13:57:19 -05:00
ebayShopper
89a43cad8a Update vanilla vehicle_getOut log
Vanilla commits:

403861fa1a

b4798403a8
2017-11-19 10:31:51 -05:00
ebayShopper
137f448793 Update vanilla fence damage
Vanilla commits:

b56d85eb99

2eb963dc3f

8b4a985cf6
2017-11-18 17:43:06 -05:00
oiad
9b96ddd2c3 Consolidate ItemKeyXXX/Colors to arrays.
Tidies up scripts inside epoch and for script creators.
Moved z_at_buyItems to epoch_generateKey.
2017-11-19 11:27:02 +13:00
oiad
2f178d8978 Consolidate weapon/magazine/backpack adding to function
This moves a lot of duplicated code from a server side only function
(server_addCargo) to a client/server function called fn_addCargo.
2017-11-19 11:06:00 +13:00
ebayShopper
9d64d318f6 Revert 83dd363, c4816c8
This reverts commits c4816c8 and 83dd363.

These were not errors, oiad did not properly update his dayz_server
before testing.

Renamed variables and added comments to clarify object or position can
be used
2017-11-18 11:39:41 -05:00
oiad
83dd363ff1 Fix error from c2d2ad2956 (diff-a36371a7b1009b3a95c359f8b1cfa)
Type name error, type Array expected Object
2017-11-18 23:02:00 +13:00
ebayShopper
4953f33fdb Add configurable loot refresh timer
Vanilla commits:

2eb963dc3f

657aaba83a
2017-11-17 17:47:28 -05:00
ebayShopper
14a6252911 Fix DZE_BuildHeightLimit behavior
Corrections for #1988
@BigEgg17 abs(_objHDiff) only tells you how much you have raised the
ghost from where it was when you started building. To test the actual
height above ground or sea level you need to use _position select 2.

Say DZE_BuildHeightLimit was 60m and DZE_buildMaxMoveDistance was 20m.
If the player started building at 55m and then raised the object 20m,
they would be allowed to build at 75m with your check.

Also getPosATL should not be used here. For example, I am swimming on
the surface of the water on Napf and getPosATL returns a height of 29m.

@oiad you missed zombie_wildGenerate.sqf in #1987
2017-11-14 13:09:15 -05:00
ebayShopper
c1110fc61c Fix a rare error with keyboard_keys
Some combo binds will cause actionKeys to return a number greater than
six digits. See AgentRev's note:
https://community.bistudio.com/wiki/actionKeys

An example is NumLock + P [1.15763e+009]. Using a number this large as
an index errors out. Example:
test_array = [];
test_array set [9999991,true];

But six digits or less will not error:
test_array = [];
test_array set [999999,true];
2017-11-13 17:34:43 -05:00
ebayShopper
eefcdf2610 Add basic security checks to object_killed
PVDZ_veh_Save = [_obj,"killed"]; could be abused in the same way as
server_deleteObj (42e0047)
2017-11-13 16:14:22 -05:00
oiad
a1c14a2fd3 Fix broken DZE_SafeZonePosCheck for built items near safezones.
This was forgotten from my original commits
2017-11-12 12:40:34 +13:00
ebayShopper
0fadd1e5fc Slightly speed up a switch model check
Check once instead of twice
2017-11-10 12:03:05 -05:00
ebayShopper
ac32a8b2cd Configure DZE_SafeZonePosArray by default
Zeds and loot should not spawn in trader cities by default, regardless
of whether the server uses safe zones.

For servers that do not use safezones, the only other things affected
are salvage and instant kill for vehicle explosions in trader cities.
Neither is a significant issue. Most servers use safezones anyway.

Following d750f57, changed to exitWith so the check is only called once
instead of multiple times. Also no need to call again in
zombie_generate, since that function is only called by
building_spawnZombies which already checks it.
2017-11-09 13:52:32 -05:00
ebayShopper
89d10fc973 Revert "Only allow lock removal if door is unlocked"
This reverts commit b8dba25

As discussed with oiad on Discord, this serves no purpose now, since
DZE_lockDoor == charID means the player either just unlocked, built,
upgraded or downgraded the door, so they want to see the action.
Logically a combo lock can be removed while a door is open. In case of
it being locked, you already know the code, so it is assumed you put it
in before removing it. Completing two-three steps at once is more
convenient for the player.

Also removed _isDestructable because there are no classes which inherit
from "BuiltItems" and have a lock
2017-11-08 14:15:25 -05:00
ebayShopper
a7959c26de Fix build checks mistake in bbb7da7
@oiad when exitWith is inside an if () then it only exits that control
structure, not the whole script, so _canBuild could be overwritten by
_toolCheck below.
2017-11-08 10:59:22 -05:00