MantisBT - Zandronum
View Issue Details
0003011Zandronum[All Projects] Bugpublic2017-02-10 22:222017-11-08 22:05
buu342 
 
normaltweakhave not tried
closedno change required 
MicrosoftWindowsXP/Vista/7
2.1 
 
0003011: GetCVar("screenblocks") does not return the correct value in multiplayer
GetCVar("screenblocks") seems to return the incorrect value, but only in multiplayer. I'm trying to make a weapon show on the screen through HudMessage, and I've made two versions. One has the bottom most part cut off in order to not overlap with the default Doom status bar, and one version which shows the entire weapon for when GetCVar("screenblocks") > 10. However, in multiplayer it always seems to return that it is >10, causing the weapon to overlap the default Doom status bar.

Sample Code:'http://pastebin.com/1Ed0jRjJ [^]'
No tags attached.
? HudIssue.wad (840,859) 2017-02-11 16:11
/tracker/file_download.php?file_id=2024&type=bug
Issue History
2017-02-10 22:22buu342New Issue
2017-02-11 15:40Torr SamahoNote Added: 0016835
2017-02-11 15:40Torr SamahoStatusnew => feedback
2017-02-11 16:11buu342File Added: HudIssue.wad
2017-02-11 16:13buu342Note Added: 0016836
2017-02-11 16:13buu342Statusfeedback => new
2017-02-12 14:46Torr SamahoNote Added: 0016845
2017-02-12 14:47Torr SamahoStatusnew => feedback
2017-11-08 22:05DuskNote Added: 0018832
2017-11-08 22:05DuskStatusfeedback => closed
2017-11-08 22:05DuskResolutionopen => no change required

Notes
(0016835)
Torr Samaho   
2017-02-11 15:40   
Please post a minimal example wad that allows to reproduce the problem.
(0016836)
buu342   
2017-02-11 16:13   
Uploaded an example wad. Join the game and repeatedly press your shoot button to continue the animation. Try with different HUD sizes, and try with it in multiplayer.
(0016845)
Torr Samaho   
2017-02-12 14:46   
If GetCVar("screenblocks") is called, it returns the value of screenblocks from the machine that executes the script. So for a normal script online, it will return the value of screenblocks of the server.
(0018832)
Dusk   
2017-11-08 22:05   
If you call getcvar("screenblocks") on the server, then you get the screenblocks of the server. So there's no bug here.