Commit Graph

805 Commits

Author SHA1 Message Date
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:

e826a8bda9
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:

8e844e2b63
2016-10-29 16:05:08 -04:00
ebaydayz
0be3a8522e Add sleep before refreshing controls
Vanilla commit:

e6e0d057dd
2016-10-29 15:52:55 -04:00
ebaydayz
fda831bf4f Consolidate redundant getPlayerUID in selfActions
Vanilla commit:

8c51a24956
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:

604c1f0577
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:

2d47c7250c

94a0bac524

44b7114129
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:

7402b240df
2016-10-17 14:52:34 -04:00
ebaydayz
7ddee142b0 Update confirmed kills system
Vanilla commits applied:

347105c036

e6b6814f51

1009828d8e
2016-10-15 15:08:48 -04:00
ebaydayz
05fda7b229 Block binding multiple controls to hold breath
Vanilla commits:

d77c47fdc1

2ffe5b4337
2016-10-14 20:14:34 -04:00
ebaydayz
6cf740e7d4 Update _object_damage private array
Vanilla commits:

21ea5984c9

a13e7240dc
2016-10-14 16:07:03 -04:00
ebaydayz
5e51787e59 Remove rSwitchMove in Turbo key block
Vanilla commit:

8b551681d9
2016-10-14 15:03:53 -04:00
ebaydayz
d44696be3a Delay player_death 1s if spawned from Killed EH
Vanilla commit:

96c9be3ecf
2016-10-14 12:40:19 -04:00
ebaydayz
916f1733eb Add back melee ammo after removal for BIS_fnc_inv
Vanilla commit:

516d1d538c
2016-10-13 20:26:07 -04:00
ebaydayz
7044b0095d Get player name before death
Vanilla commit:

3e8c9410c5
2016-10-13 16:01:55 -04:00
ebaydayz
0b9c4a7ade Allow physics damage from vehicle crash
Vanilla commit:

804445830f

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:

15e923fb19
2016-10-11 19:57:14 -04:00
ebaydayz
05fa3e6a9a Update keyboard_keys after changing controls in-game
Vanilla commit:

e9b21a7e79

@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:

6326f1186d
2016-10-11 13:06:57 -04:00
ebaydayz
7869288f39 Reblock turbo when on foot
Vanilla commit:

5bf403bb43

See:

46af339ce5
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:

dfb199fbc3
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:

ef3600bd32
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:

589791e9f9

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:

c5f2447f14

45e757ece2
2016-10-03 12:27:43 -04:00
ebaydayz
591af81575 Add exit in fn_waitForObject.sqf
This is just in case something goes very wrong (like bad server lag) and
the object doesn't spawn.
2016-10-02 22:30:38 -04:00
ebaydayz
8196c2343a Fix inCombat checks from 0a17804
My mistake from 0a17804
2016-10-02 21:13:17 -04:00