MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000619SoldatOtherpublic2015-06-28 14:582015-07-13 01:17
Reporterhomerofgods 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000619: OnWeaponChange called twice
DescriptionI quote deguix:

- TActivePlayer.ForceWeapon on TActivePlayer.OnAfterRespawn is working while in 1.6.8 it isn't - at least when all weapons in soldat.ini are disabled. There are still bad things though:

Bug: Player chooses a secondary that is not "No weapon" in game options. Then when the player joins a game with that weapon disabled in soldat.ini, server still forces that secondary weapon, then it forces it to WTYPE_NOWEAPON (2 OnWeaponChange are called). It should force weapons directly to WTYPE_NOWEAPON (with only 1 call to OnWeaponChange), like what happens when the secondary chosen in menu is "No weapon".
Additional Informationhttp://forums.soldat.pl/index.php?topic=43954.msg524107#msg524107 [^]
TagsNo tags attached.
Attached Files

- Relationships
related to 0000618closedExHunter Weapon IDs of WTYPE_M2 and other new weaponsreverts to WTYPE_NOWEAPON 
related to 0000617closedExHunter Access violations when aiming WTYPE_M2 and WTYPE_THROWNKNIFE to the right 
related to 0000620new Server forces player WTYPE_NOWEAPON 

-  Notes
(0002480)
ExHunter (developer)
2015-07-13 01:17

I am aware of that issue - it has been present since ever.

No easy way* to fix this though atm. Would result in a kind of workaround in the code, which we really do not need more of at this point.

Explanation: Client informs server that it has this weapon, so weaponchange is called, but server notices that this weapon is not enabled, so it forces another secondary, so it is called again.

(*actually easy, but more spagetthi code...)

- Issue History
Date Modified Username Field Change
2015-06-28 14:58 homerofgods New Issue
2015-06-28 14:59 homerofgods Relationship added related to 0000618
2015-06-28 14:59 homerofgods Relationship added related to 0000617
2015-06-28 15:01 homerofgods Relationship added related to 0000620
2015-07-13 01:17 ExHunter Note Added: 0002480
2015-07-13 01:17 ExHunter Status new => confirmed


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker