Anonymous | Login | Signup for a new account | 2025-07-27 12:15 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0002187 | Zandronum | [All Projects] Bug | public | 2015-04-14 00:07 | 2018-09-30 21:37 | ||||
Reporter | nax | ||||||||
Assigned To | Edward-san | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Microsoft | OS | Windows | OS Version | XP/Vista/7 | ||||
Product Version | 2.0 | ||||||||
Target Version | 2.1 | Fixed in Version | 2.1 | ||||||
Summary | 0002187: A_CustomPunch lifesteal does not update clients' HP visual on Multiplayer | ||||||||
Description | In 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 Reproduce | create 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 Files | ![]() | ||||||||
![]() |
||||||
|
![]() |
|
Edward-san (developer) 2015-04-14 08:31 |
Can you provide an example wad for this issue? |
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 [^]' . |
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! |
Torr Samaho (administrator) 2015-04-18 13:38 |
Overall, the patch looks pretty good. I left two comments on bitbucket. |
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(-) |
Hypnotoad (reporter) 2015-04-24 00:57 |
Tested using Edward-san's code: confirmed to work fine on local server. |
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. |
![]() |
|||
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 |
Copyright © 2000 - 2025 MantisBT Team |