Commit Graph

41 Commits

Author SHA1 Message Date
A Man
876e264e33 Fix change clothes and login over sea level
This also aims for the fix that the player still gets damaged while in debug. It looks like that allowDamage gets lifted when it should not. fn_exitSwim set too early the damage true which can be a problem. Ive decided to remove the handled damage from fn_exitSwim and set allowDamage always false before we enter this function.
This needs intensive testing to be sure it works without any new problems.

Thx to ndavalos and iben.
2022-04-16 17:20:28 +02:00
seelenapparat
d1abb66e9f Revert "Revert "Merge branch 'master' of https://github.com/EpochModTeam/DayZ-Epoch""
This reverts commit 109ec5c9a3.
2021-08-24 15:47:06 +02:00
seelenapparat
109ec5c9a3 Revert "Merge branch 'master' of https://github.com/EpochModTeam/DayZ-Epoch"
This reverts commit 4bbb3ac609, reversing
changes made to 96f1d40a71.
2021-08-24 15:32:43 +02:00
A Man
9852778ba9 Fix weapon dupe with server_playerSync
This reverts all the last changes to server_playerSync and creates a new global variable for dayz_onBack. This should be the best way to save the gear correct and still get dayz_onBack if the player leaves the server. This change removes the constant sending of the whole player inventory over the network from force or regluar_save. It should no longer be needed since the server does the counting now.
2021-08-19 16:46:06 +02:00
A Man
6becd3d89f Fix radio state reset after changing clothes 2021-06-06 21:27:45 +02:00
AirwavesMan
e8f2f3fcf0 Fix potential magazine and weapon dupes
This reverts 4b171cb.

player_regularSave should only be used if player_forceSave would interrupt an action like fire a weapon since it opens a dialog. player_regularSave does not save the ammo count but all magazines. Do not use nil instead of the magazines player array since it makes duping possible.

Thx to mmrsz
2021-04-16 13:24:18 +02:00
AirwavesMan
0b26ae1246 Fix potential kills doubling after change clothes
Fix by @seelenapparat
2020-09-13 15:18:17 +02:00
AirwavesMan
67153096bc Update player_humanityMorph.sqf 2020-09-13 02:20:14 +02:00
worldwidesorrow
38e42ac742 Update player_humanityMorph.sqf 2020-07-29 15:28:21 -05:00
ebayShopper
cfc6ad08af Remove unused parameter in PVDZ_hlt_Bleed
Vanilla commit:

83bf13c786
2017-12-17 12:44:03 -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
f74e065de1 Remove redundant setVariable in humanityMorph
Setvariables made redundant by 9cc3c82

Also changed removeEventHandler to remove all, so if switchModel exits
at one of the exitWiths the player will not be left invincible.
2017-10-29 15:39:05 -04:00
icomrade
9cc3c82d5d set humanity early 2017-08-01 19:34:15 -04:00
icomrade
bc4be38629 tweak switch model/morph again 2017-07-29 14:50:24 -04:00
icomrade
bd35e0a574 Should prevent change clothes dupe
awaiting feedback, but I half-commited it in my previous commit accidently, so whatever
2017-07-26 12:46:58 -04:00
ebayShopper
9fc72a8b87 Change dayz_survived to actual play time
Vanilla commits:

18eaecb19f

b76b1200ca

78ea61e334

8309427f0d

Should be ready for Hive update @icomrade . If you upload it to a test
folder I'll test it.
2017-04-13 18:35:28 -04:00
oiad
2ec5390b70 Standardize coin variables, prevent coins not refreshing on skin change. (#1904)
* Standardize coin variables, prevent coins not refreshing on skin change.

* Add missing commit
2017-03-11 13:05:34 -05:00
ebaydayz
e33519ffd4 Readd changes from #1836
I accidentally removed these when resolving merge conflicts with 854c41c
.
2016-12-30 14:16:18 -05:00
ebaydayz
b4c239729c Fix self actions duplicating when changing clothes and looking at a safe
This was also a bug in 1051. Thanks to Epoch forums user jOoPs for
reporting.
2016-12-12 15:23:31 -05:00
ebaydayz
b01a4165a8 Comment some unused achievement code
Vanilla commits:

3ec1cc3c5d

3171f68bee
2016-11-18 13:22:36 -05:00
ebaydayz
0a17804e36 Change inCombat to bool instead of number
When a variable is only going to be 0 or 1 it makes more sense to use a
bool.

Also avoided unnecessary network broadcasts of inCombat from e446603
2016-10-01 13:07:59 -04:00
icomrade
e446603ea2 Fix combat logging
In the initialize section of the fsm r_player_unconscious and
r_player_timeout return their default values (false and 0). Also, the
Vanilla server-side combat check doesn't appear to work, or it doesn't
work with the antihack disabled (I haven't tested with it enabled).

New variable inCombat is set more quickly than the combatTimeout
variable
2016-07-26 20:51:10 -04:00
icomrade
705057bedb Sync combattimeout on change clothes 2016-07-25 23:22:50 -04:00
ebaydayz
03c57f3b77 Fix for Confirmed Kills system on change clothes.
Vanilla development commit:

d499246e2e
2016-07-25 12:19:45 -04:00
ebaydayz
f2687345cd Testing Confirmed Kills System.
Vanilla development commit:
4881e00ecf

New - Journal Kills will only update during the session on confirmed
Kills (study dead body).
2016-07-21 11:31:47 -04:00
icomrade
72f3779edb Fix death when changing clothes + minor changes
removing the Respawn EH fixes this, I haven't noticed any adverse
effects from removing it yet.

Also changing groups now deletes the old group. The machine which the
group is local to must execute the deleteGroup command, the server
previously had to wait until the player disconnects to delete their
empty groups.
2016-05-09 00:27:34 -04:00
ebaydayz
cc64d2e7fb Cleanup player_switchModel 2016-03-21 20:25:01 -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
b96cd2d971 Update compiles - 2 more files to do
fn_selfActions.sqf
player_updateGui.sqf
2016-02-29 00:26:12 -05:00
ebaydayz
0075b44c0e Add option to restrict wearable clothes
See #1560

Note: Already wearing check is not needed in player_humanityMorph
because it is already done in player_wearClothes. See:

0726311df5
2016-02-20 22:08:20 -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
infiSTAR
0726311df5 prevent morphing in the same skin (some do that to refill their magazines) 2013-12-19 21:11:07 +01:00
HARLAN
434cea2555 #848 remember melee mags after skinchange 2013-12-06 11:36:04 -05:00
[VB]AWOL
f104e02c19 setdate experiment 2013-10-19 21:53:40 -05:00
Zac Surplice
d3f7e67647 player_build.sqf Enhancements and PV renames 2013-10-07 10:56:47 +11:00
[VB]AWOL
c911a7cdab 1.0.1.94 DEV BUILD 2013-08-26 02:29:18 -05:00
vbawol
483279c126 Organize files a bit and removed non source pbo's 2013-06-24 06:26:15 -05:00