ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CPW_CustomBulletAttack & CPW_CustomMissile online issues

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs
View previous topic :: View next topic  
Author Message
Oxyde
Dominating!


Joined: 01 Feb 2012
Location: France (67) Host: Zero Dawn

PostPosted: Sat Mar 10, 2018 10:07 pm    Post subject: CPW_CustomBulletAttack & CPW_CustomMissile online issues Reply with quote

Hi all,
Two quick issues noticed on using these codepointers for custom attacks :
- Infinite Ammo DMFlag doesn't extend to these - So if you happen to use these weapons with this flag on, your ammo will still deplete regardless
- There is a synchronisation issue online regarding remaining ammo: The first shot isn't counted on the client's ammo pool, resulting in a very bad desync. This leads to cases where you can still pull out the weapon, even when it is server-side empty, and attept to shoot but nothing will ever come out of your gun (but still show and play firing animations)

Test wad : https://www.dropbox.com/s/xv3dhtcs1k850lc/test_ammo_depleted.wad?dl=1 (kudos to JCD!)
This wad emulates the pistol and rocket launcher's vanilla behavior, while using a custom attack.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Aeyesx
Dominating!


Joined: 13 Oct 2012

PostPosted: Sun Mar 11, 2018 11:00 am    Post subject: Reply with quote

Hmm too bad nobody found this issue before 1.10 release :/
You can give it infinite ammo using dehacked possibly.
Back to top
View user's profile Send private message Send e-mail
Oxyde
Dominating!


Joined: 01 Feb 2012
Location: France (67) Host: Zero Dawn

PostPosted: Sun Mar 11, 2018 11:58 am    Post subject: Reply with quote

Aeyesx wrote:
Hmm too bad nobody found this issue before 1.10 release :/
You can give it infinite ammo using dehacked possibly.


Actually this could work, but the aim I have for using this flag is for testing purposes ! Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Krawa
There is a limit


Joined: 23 Nov 2008
Location: #SDA

PostPosted: Mon Apr 30, 2018 9:49 pm    Post subject: Reply with quote

Added CPW_BulletAttack to chaingun (with 1 shot instead of 2): test_ammo_depleted2.wad

All 3 functions are affected:
CPW_BulletAttack (A_CP_BulletAttack_Aux)
CPW_CustomBulletAttack (A_CP_CustomBulletAttack_Aux)
CPW_CustomMissile (A_CP_CustomMissile_Aux)

Moved to confirmed.
Back to top
View user's profile Send private message Visit poster's website
Krawa
There is a limit


Joined: 23 Nov 2008
Location: #SDA

PostPosted: Sat May 05, 2018 3:08 pm    Post subject: Reply with quote

Fix for CPW_BulletAttack, CPW_CustomBulletAttack and CPW_CustomMissile: sv_infiniteammo had no effect and ammo counting was wrong online.
Fixed for 1.10.04
Back to top
View user's profile Send private message Visit poster's website
Aeyesx
Dominating!


Joined: 13 Oct 2012

PostPosted: Sat May 05, 2018 3:20 pm    Post subject: Reply with quote

Cool, those generic ones are handy.
Back to top
View user's profile Send private message Send e-mail
Oxyde
Dominating!


Joined: 01 Feb 2012
Location: France (67) Host: Zero Dawn

PostPosted: Mon May 07, 2018 8:21 pm    Post subject: Reply with quote

Sexcellent !
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group