MantisBT - Zandronum
View Issue Details
0000796Zandronum[All Projects] Bugpublic2012-04-21 00:532024-02-29 16:44
Dusk 
Dusk 
normalmajoralways
resolvedfixed 
1.0-beta 
3.23.2 
0000796: [Hexen] Flechettes lack netcode altogether
WOO ANOTHER ONE
Join an online game as a fighter and grab a flechette and cast it. The flechette flies through trees... and even appears to explode where the client percieves the flechette to have landed. They normally bounce off them.
No tags attached.
parent of 0002948resolved  SetThingFlags: couldn't find actor 
parent of 0002949resolved  MoveThingExact: couldn't find actor 
diff flechettefixpatch.diff (2,213) 2024-01-09 20:31
https://zandronum.com/tracker/file_download.php?file_id=2883&type=bug
diff flechettefixpatch2.diff (2,326) 2024-01-29 04:13
https://zandronum.com/tracker/file_download.php?file_id=2899&type=bug
Issue History
2012-04-21 00:53DuskNew Issue
2012-04-21 00:53DuskStatusnew => assigned
2012-04-21 00:53DuskAssigned To => Dusk
2012-04-21 00:54DuskSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1789#r1789
2012-04-21 00:54DuskSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1790#r1790
2012-04-21 01:46DuskNote Added: 0003352
2012-04-21 01:46DuskStatusassigned => feedback
2012-04-21 16:46Torr SamahoNote Added: 0003359
2012-04-21 17:30DuskNote Added: 0003363
2012-04-21 17:30DuskStatusfeedback => assigned
2012-04-21 17:30DuskStatusassigned => feedback
2012-06-09 13:22Torr SamahoCategoryGeneral => Bug
2013-09-27 10:39DuskStatusfeedback => confirmed
2016-05-14 18:20Ru5tK1ngNote Added: 0014913
2016-05-14 18:21Ru5tK1ngStatusconfirmed => resolved
2016-05-14 18:21Ru5tK1ngResolutionopen => fixed
2016-05-14 18:49Ru5tK1ngNote Added: 0014918
2016-05-14 18:49Ru5tK1ngStatusresolved => feedback
2016-05-14 18:49Ru5tK1ngResolutionfixed => reopened
2016-05-14 18:49Ru5tK1ngNote Deleted: 0014913
2016-05-14 19:08Ru5tK1ngStatusfeedback => confirmed
2024-01-09 20:31Ru5tK1ngFile Added: flechettefixpatch.diff
2024-01-09 20:32Ru5tK1ngNote Added: 0022982
2024-01-09 20:32Ru5tK1ngStatusconfirmed => needs review
2024-01-09 20:32Ru5tK1ngTarget Version => 3.2
2024-01-23 19:50Torr SamahoNote Added: 0022997
2024-01-24 22:13Ru5tK1ngNote Added: 0023002
2024-01-28 20:03Torr SamahoNote Added: 0023019
2024-01-28 21:04Torr SamahoNote Edited: 0023019bug_revision_view_page.php?bugnote_id=23019#r14058
2024-01-29 04:13Ru5tK1ngFile Added: flechettefixpatch2.diff
2024-01-29 04:13Ru5tK1ngNote Added: 0023027
2024-02-04 20:24Torr SamahoNote Added: 0023055
2024-02-04 20:24Torr SamahoStatusneeds review => needs testing
2024-02-04 22:33Ru5tK1ngRelationship addedparent of 0002948
2024-02-04 22:33Ru5tK1ngRelationship addedparent of 0002949
2024-02-29 16:43Ru5tK1ngNote Added: 0023117
2024-02-29 16:44Ru5tK1ngStatusneeds testing => resolved
2024-02-29 16:44Ru5tK1ngResolutionreopened => fixed
2024-02-29 16:44Ru5tK1ngFixed in Version => 3.2

Notes
(0003352)
Dusk   
2012-04-21 01:46   
I went over the flechette code and added network handling where appropriate:
'https://bitbucket.org/CrimsonDusk/notebola/changeset/e4934b53af72 [^]'

But I guess something of this magnitude needs to be tested on NE first before it can be even considered to be ported. And I still can't make windows builds of that...
(0003359)
Torr Samaho   
2012-04-21 16:46   
Small remark: SERVERCOMMANDS_SetThingState should be called before the state is actually set on the server. This is consistently done everywhere so far.
(0003363)
Dusk   
2012-04-21 17:30   
Corrected:
'https://bitbucket.org/CrimsonDusk/notebola/changeset/d0cac35282c0 [^]'
(0014918)
Ru5tK1ng   
2016-05-14 18:49   
<WaTaKiD> the fighter flechettes should bounce off trees
<WaTaKiD> as is, they appear to explode on contact with a tree, however they actually desync and bounce elsewhere
(0022982)
Ru5tK1ng   
2024-01-09 20:32   
I have uploaded a patch that fixes the remaining issue here as well as the ones outlined in 2948 and 2949.
(0022997)
Torr Samaho   
2024-01-23 19:50   
I had a quick look at the patch and wonder whether NETWORK_InClientMode() needs to be replaced with NETWORK_InClientModeAndActorNotClientHandled( this ). Otherwise, this will not work for client side actors.
(0023002)
Ru5tK1ng   
2024-01-24 22:13   
Wouldn't it still work with client side actors since the actual actor being spawned is ThrowingBomb? In this example code, the projectile is clientsided and scaled by 2.0:

ACTOR NewBomb : ThrowingBomb replaces ThrowingBomb
{
    +CLIENTSIDEONLY
    Scale 2.0
}

I tested this online and it seemed to work fine.
(0023019)
Torr Samaho   
2024-01-28 20:03   
(edited on: 2024-01-28 21:04)
The problem would only occur if the actor calling AArtiPoisonBag3::Use is CLIENTSIDEONLY.

(0023027)
Ru5tK1ng   
2024-01-29 04:13   
I have uploaded a version 2 of the patch that considers client-side inventory use items.
(0023055)
Torr Samaho   
2024-02-04 20:24   
Thanks! I added the updated patch.
(0023117)
Ru5tK1ng   
2024-02-29 16:43   
Tested with latest changes and the sound plays properly when using the item and the bounce behavior is now correct online.