Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002187Zandronum[All Projects] Bugpublic2015-04-14 00:072018-09-30 21:37
Reporternax 
Assigned ToEdward-san 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version2.0 
Target Version2.1Fixed in Version2.1 
Summary0002187: A_CustomPunch lifesteal does not update clients' HP visual on Multiplayer
DescriptionIn Single Player, setting a lifesteal value when using A_CustomPunch will gain HP from every hit as intended. In Multiplayer, it still works, but it simply doesn't visually update a clients' HP when connected to a server.

ie:
Singleplayer - HP: 50. after attacking enemy, hp reads 55.
Multiplayer - HP: 50. after enemy attack, hp reads 50 - enemy deals 1 damage to you, your HP is now 54.
Steps To Reproducecreate a fist weapon using A_CustomPunch with a lifesteal value of whatever. my addon uses

A_CustomPunch(random(15,20)*5,1,0,"FistPuff",0,0.09)

for the damage / lifesteal component.

---

Go into Singleplayer, ensure your HP is below 100, and attack an enemy. Do so in Multiplayer, and notice no drop in HP.
Attached Filestxt file icon decorate.txt [^] (216 bytes) 2015-04-14 12:32 [Show Content]

- Relationships
related to 0002335closedEdward-san A_Saw lifesteal attack desync online 

-  Notes
User avatar (0012105)
Edward-san (developer)
2015-04-14 08:31

Can you provide an example wad for this issue?
User avatar (0012106)
Edward-san (developer)
2015-04-14 12:36

I managed to reproduce the issue with the attached example decorate file, with sv_cheats 1 and 'give fist2'.

I fixed this with'https://bitbucket.org/crimsondusk/zandronum-sandbox/commits/958595a0273f62fd9d61e8adaa102f9486f17997 [^]' .
User avatar (0012111)
nax (reporter)
2015-04-15 00:36

Sorry, haven't been feeling too good lately. Just for clarity's sake, I tested again with edward's own example (thanks) and is easily reproduced.

"Go into Singleplayer, ensure your HP is below 100, and attack an enemy. Do so in Multiplayer, and notice no drop in HP."

I mean that last bit to say "no gain in HP." Whoops!
User avatar (0012134)
Torr Samaho (administrator)
2015-04-18 13:38

Overall, the patch looks pretty good. I left two comments on bitbucket.
User avatar (0012137)
cobalt (updater)
2015-04-18 17:21

Issue addressed by commit bbae072: - Fixed possible health desync issues in some situations (addresses 2187). Specifically: 1) add the server handling inside the function P_GiveBody; 2) simplify the server handling outside the function P_GiveBody; 3) add missing server handling in places where health was changed. 4) add #error for when zdoom r3438, which simplifies AHealth::TryPickup by using P_GiveBody, will be backported
Committed by edward_san [edward-san] on Saturday 18 April 2015 17:59:14

Changes in files:
 docs/zandronum-history.txt | 1 +
 src/g_hexen/a_healingradius.cpp | 4 ----
 src/g_shared/a_pickups.cpp | 22 ++++++++++++++++++++++
 src/p_interaction.cpp | 6 +-----
 src/p_map.cpp | 4 ----
 src/p_user.cpp | 6 +-----
 6 files changed, 25 insertions(+), 18 deletions(-)
User avatar (0012162)
Hypnotoad (reporter)
2015-04-24 00:57

Tested using Edward-san's code: confirmed to work fine on local server.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: nax
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2015-04-14 00:07 nax New Issue
2015-04-14 08:19 Edward-san Assigned To => Edward-san
2015-04-14 08:19 Edward-san Status new => assigned
2015-04-14 08:31 Edward-san Note Added: 0012105
2015-04-14 08:31 Edward-san Status assigned => feedback
2015-04-14 12:32 Edward-san File Added: decorate.txt
2015-04-14 12:36 Edward-san Note Added: 0012106
2015-04-14 12:36 Edward-san Status feedback => needs review
2015-04-15 00:36 nax Note Added: 0012111
2015-04-18 13:38 Torr Samaho Note Added: 0012134
2015-04-18 13:38 Torr Samaho Status needs review => feedback
2015-04-18 17:21 cobalt Status feedback => needs testing
2015-04-18 17:21 cobalt Target Version => 2.1
2015-04-18 17:21 cobalt Description Updated View Revisions
2015-04-18 17:21 cobalt Steps to Reproduce Updated View Revisions
2015-04-18 17:21 cobalt Note Added: 0012137
2015-04-24 00:57 Hypnotoad Note Added: 0012162
2015-04-24 03:59 Dusk Status needs testing => resolved
2015-04-24 03:59 Dusk Fixed in Version => 2.1
2015-04-24 03:59 Dusk Resolution open => fixed
2015-07-07 18:11 Edward-san Relationship added related to 0002335
2018-09-30 21:37 Blzut3 Status resolved => closed






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker