Commit Graph

807 Commits

Author SHA1 Message Date
ebaydayz 615f21165a Fix rejoin group after change clothes
Also removed redundant delete and remove for _oldUnit since it is
already done in call _switchUnit
2016-11-05 17:48:07 -04:00
oiad 497b065663 Localization changes/additions. (#1787)
* Localization changes/additions.

Fixes a few localizations, extends range for removing camo nets from
toolbox by 10m, I have found that 5m is just not enough.

* Toolbox change

Update camonet removal to 10m instead of 5m

* Safe zone no building near/blacklisted buildings no building near

Adds a check in dze_buildChecks to disallow building within a certain
distance of a safezone or a blacklisted object name.

* typo

fix typo

* Safezone/blacklisted changes

As per requests.

* Rework

Rework

* Remove unused variables

as per subject

* Misc changes

Fix unprivated var in calcfreespace
Made single currency buy/sell reporting more englishery
Localization cleanup of extra spaces

* rework

rework
2016-11-04 12:08:47 -04:00
ebaydayz bff0e3281a Auto promote group leader after changing clothes 2016-10-31 18:11:28 -04:00
ebaydayz 1b3ed13a47 Remove unnecessary check in damage diag_log
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/e826a8bda95dbc8b5dc25b7efd1be3ee79b395b1
2016-10-31 16:04:27 -04:00
ebaydayz 25d6b6e448 Increase DZ_BlackScreen resource layer
Prevent rolling messages from showing over the top of it.

Also fixed grammar typo @oiad
2016-10-30 15:34:24 -04:00
oiad b1171c5f9b player_wearclothes changes, string changes and maintain area moving (#1783)
* player_wearclothes changes, string changes and maintain area moving

Adds 2 toggles for admins to modify:

DZE_backpackRemove forces the player to drop his/her backpack when they
change gear.
DZE_maintainCurrencyRate modifies the amount of worth each item is worth
to maintain.

Changes the error message in player_wearClothes to tell the player why
they can't change gear yet
Remove some debug lines that spam RPT

* Rework

Rework as per @ebaydayz

* Rework

Rework
2016-10-30 14:11:54 -04:00
ebaydayz abb0475d28 Use joinSilent instead of join 2016-10-30 13:54:55 -04:00
ebaydayz c4ef6e3115 Hide showOnScreen for lock and unlock inside vehicle action 2016-10-29 17:06:47 -04:00
ebaydayz 92d6257b92 Updated humanity Regen when under 1
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/8e844e2b6302d1682ff8653a00df8604be1c8b76
2016-10-29 16:05:08 -04:00
ebaydayz 0be3a8522e Add sleep before refreshing controls
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/e6e0d057dd9977b0b46a1c096e25d784b3969669
2016-10-29 15:52:55 -04:00
ebaydayz fda831bf4f Consolidate redundant getPlayerUID in selfActions
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/8c51a24956e99db02279956282c362e311f98cfd
2016-10-29 15:25:36 -04:00
oiad cf8e06bc8b Reduce client RPT spam
As per subject
2016-10-29 12:59:21 +13:00
ebaydayz f770b0a85d Add group system
Initial commit, not tested in multiplayer yet. Some revisions still left
to do.
2016-10-27 16:06:49 -04:00
icomrade f92d84f720 Fix issue laying down near buildables 2016-10-26 16:58:06 -04:00
ebaydayz 9689301b07 Hide show on screen text for Vehicle Locked and Destroy %1 2016-10-20 14:46:08 -04:00
ebaydayz 5e170029d0 Fix dayz_playerUID undefined in selfActions when target is not null at login
Selfactions can run before dayz_playerUID is defined in
player_monitor.fsm.
2016-10-20 14:34:48 -04:00
ebaydayz cf0ef07ade Fix process hit running twice
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/604c1f05777a44f47dcae324473df129cf44c902
2016-10-20 13:00:58 -04:00
ebaydayz b8aba38dca Fix humanity hit when crashing vehicle 2016-10-19 19:53:52 -04:00
ebaydayz 17c0661094 Increase crash damage scale 2016-10-19 18:29:25 -04:00
ebaydayz 8beba72cbb Remove unneeded check in toggle streamer mode 2016-10-19 16:02:43 -04:00
ebaydayz d13aafcd0c Add streamer mode game options setting
The chat list does not appear to be toggleable on the fly because it is
a display with no accessible controls. Giving it an idd and using
closeDisplay did not work. So it needs to be manually set off screen in
its config or covered up.
2016-10-19 15:49:30 -04:00
ebaydayz fffcf43bbb Spawn infectious waterholes locally on each machine
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/2d47c7250c3eb6b4e746be9b130a11d4848779f3

https://github.com/DayZMod/DayZ/commit/94a0bac524b76eb630e9902318a807d5d0264619

https://github.com/DayZMod/DayZ/commit/44b71141293f19ddc316aa171fb84107f729f692
2016-10-17 16:49:24 -04:00
ebaydayz 1964a084ff Avoid sending humanity hit if source is local
We only want to send a humanity hit if the source is a remote player.
Note it's not necessary to check isNull since (isPlayer objNull) returns
false.

Vanilla commit:

https://github.com/DayZMod/DayZ/commit/7402b240df8dadd0e11f95885721cd0e7de87599
2016-10-17 14:52:34 -04:00
ebaydayz 7ddee142b0 Update confirmed kills system
Vanilla commits applied:

https://github.com/DayZMod/DayZ/commit/347105c036c56a8cac9bb2382aa11b4999b39063

https://github.com/DayZMod/DayZ/commit/e6b6814f51a34d84ccf47cb5551727a2c29dc75d

https://github.com/DayZMod/DayZ/commit/1009828d8e9998ab06c2da5c3fe3a0c917abde66
2016-10-15 15:08:48 -04:00
ebaydayz 05fda7b229 Block binding multiple controls to hold breath
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/d77c47fdc1ec6defcbdca71e2f2684a7019e6e4d

https://github.com/DayZMod/DayZ/commit/2ffe5b43378f98235fa886ad3ee00549bd929940
2016-10-14 20:14:34 -04:00
ebaydayz 6cf740e7d4 Update _object_damage private array
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/21ea5984c94f83d940ebb23c985202ca40cd3929

https://github.com/DayZMod/DayZ/commit/a13e7240dcc6c3b9b736d3649f68eaf611459f03
2016-10-14 16:07:03 -04:00
ebaydayz 5e51787e59 Remove rSwitchMove in Turbo key block
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/8b551681d9fabf25a992b27187e182337e44b525
2016-10-14 15:03:53 -04:00
ebaydayz d44696be3a Delay player_death 1s if spawned from Killed EH
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/96c9be3ecf37e04c8048f70b559f88c71201d668
2016-10-14 12:40:19 -04:00
ebaydayz 916f1733eb Add back melee ammo after removal for BIS_fnc_inv
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/516d1d538c99becacda91c16e617d3df0a8ffc71
2016-10-13 20:26:07 -04:00
ebaydayz 7044b0095d Get player name before death
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/3e8c9410c5419f76b545d57fe42a51ce2883b326
2016-10-13 16:01:55 -04:00
ebaydayz 0b9c4a7ade Allow physics damage from vehicle crash
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/804445830ffa38bba742cc20c6645b75333725f5

This was exiting with 0 damage if _hit=="". It accounts for vehicles not
being damaged at all when crashing full speed into walls. It was also
causing the player to sometimes glitch out of the vehicle or into the
ground when crashing as you noticed before @icomrade.

Also fixed driver getting a humanity hit for damaging passengers in
crash. Reverting 22b2a3a since this is more reliable.
2016-10-13 13:45:01 -04:00
icomrade c89031e089 Fix clothes change exit on gear count fail 2016-10-13 11:42:01 -04:00
ebaydayz 22b2a3a79f Prevent humanity hit to driver when crash damages passengers
I forgot to account for this when allowing humanity hit to players in a
vehicle:

https://github.com/DayZMod/DayZ/commit/15e923fb19ce0f52ae0c994269b56eb3aab6249b
2016-10-11 19:57:14 -04:00
ebaydayz 05fa3e6a9a Update keyboard_keys after changing controls in-game
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/e9b21a7e796417b783d661fab053676d164d723b

@icomrade we forgot to refresh keyboard_keys after the player changes
their controls in-game. The keyhandler was still using the old
keyboard_keys array since it is only set once at login time. The new
keys they set in-game wouldn't work until they relogged.
2016-10-11 15:34:10 -04:00
ebaydayz fbb8cc645c Prevent automatic humanity morph when in vehicles
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/6326f1186d5fdd2ce8d39116cc30fe726126b70b
2016-10-11 13:06:57 -04:00
ebaydayz 7869288f39 Reblock turbo when on foot
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/5bf403bb43f0a1b32a3e0af4f648ea1e310ed413

See:

https://github.com/DayZMod/DayZ/commit/46af339ce52e9a36f8b3c614f2094880df0af4a4
2016-10-10 16:34:40 -04:00
icomrade 347c531edc Fix reversed variable 2016-10-10 15:38:09 -04:00
ebaydayz 4670f16e89 Rename _isOwner variable to _hasAccess
This is a more logical name in these cases, since friendlies and admins
are not the owner.
2016-10-08 15:57:51 -04:00
ebaydayz e6d1e0050d Remove redundant _canDo and cursorTarget checks in selfActions
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/dfb199fbc3c87995739c187031161d7d67d6b9c3
2016-10-08 15:36:38 -04:00
ebaydayz 534abdbdf0 Remove excessive door management config variables
Too many config variables made this unnecessarily complicated. Most
servers will want the defaults. For those that want to customize further
they can easily overwrite these files.

These seem like the most logical defaults to me. Allow all of these
people to manage and unlock by default:
- door owner
- plot owner
- plot friend
- plot admin
- door friend
- door admin

Door friends should be able to manage by default so they don't have to
wait for the owner to come back online to add someone as a door friend.

Plot friends and plot admins can get around the door by removing it and
building another one anyway, so locking them out is pointless. It is
still useful to have these as separate variables for servers that do not
require plot poles though.

Regular friendlies should not be included by default, since we have the
more fine grained plot friends and door friends lists for that. Regular
friendlies will probably be replaced by groups in the near future
anyway.

Please post a comment if there are any issues with these defaults I'm
forgetting. Thanks.
2016-10-08 14:49:59 -04:00
oiad 78fac87333 dze_BuildChecks changes
This changes the reasons to be more understandable about why you can't
build somewhere.
Some localization fixes to be more englishy.
2016-10-08 12:53:25 +13:00
ebaydayz 8a2d95295b Restrict access to show plot boundary action
Only the owner, plot owner, plot friends and plot admins should be able
to see the plot boundary. Randoms just use it for griefing.

Also renamed the targetX variables to the more appropriate doorX in
fn_check_access since they are only used if the target is a door.
2016-10-07 17:39:06 -04:00
ebaydayz 3604d77823 Fix reversed comments for RunOver/Dragged
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/ef3600bd32d239531ed6a791cf9f5d3a0336e199
2016-10-07 14:19:08 -04:00
icomrade b25b7636a7 Direct menu to cursortarget or player
Please test the living hell out of this.
2016-10-07 13:46:53 -04:00
ebaydayz 5b158b398a Fix damage handling of vehicle explosions
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/589791e9f9116e8b230e01d51fabde028298ea7a

This was being falsely triggered before because the distance (3m) was
far too small and it was only counting fast moving vehicles. The player
can be damaged up to 25m away from the vehicle explosion.

The comment was incorrect. It can be easily checked by using the
included diag_log at the top of this file.
2016-10-07 13:42:05 -04:00
ebaydayz b193ad925a Use more efficient check for "shot" death message
Most of the time the source will be local (zombie) or player (physics).
The next most common will be getting shot by a remote player, the least
common will be getting shot by a remote vehicle.
2016-10-06 19:13:46 -04:00
ebaydayz 7909f0089f Make minor adjustments to damage handler
These variables were moved down so they aren't checked unnecessarily
when the script exits.
2016-10-06 16:25:39 -04:00
icomrade 5381748c63 better gear menu check
should be less annoying
2016-10-05 20:13:26 -04:00
ebaydayz 97796bf524 Update change log 2016-10-03 15:45:13 -04:00
ebaydayz da524041ee Update vanilla fences
Vanilla commits applied:

https://github.com/DayZMod/DayZ/commit/c5f2447f14f29121426b6b4006f86e95973f7b9b

https://github.com/DayZMod/DayZ/commit/45e757ece2fdb099dade57350eb62eaf7986375d
2016-10-03 12:27:43 -04:00