Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003084Zandronum[All Projects] Bugpublic2017-04-23 13:072017-04-23 20:34
Reporterforrestmarkx 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusfeedbackResolutionopen 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version3.0-beta 
Target VersionFixed in Version 
Summary0003084: User Variables don't work on weapons
DescriptionFor User Variables to work on weapons it needs to be defined in the playerclass but if it's not defined in the weapon it will error out saying the var doesn't exist.

If you add the var to the weapon itself then the var will no longer work.
Steps To ReproduceHave a user var on the player then try and check it inside a weapon using A_JumpIf
Attached Files

- Relationships

-  Notes
User avatar (0017271)
forrestmarkx (reporter)
2017-04-23 13:09

Hmm now that I read up on the wiki the only way for it to work on weapons is using GetUserVariable from ACS
User avatar (0017273)
Torr Samaho (administrator)
2017-04-23 13:11

Please first check whether what you are trying to do works in GZDoom 1.8.6.
User avatar (0017275)
forrestmarkx (reporter)
2017-04-23 13:29

It does if I use ACS but sadly this doesn't help what I was trying to do. (Saving a ACS call in a user variable to reduce calls to the ACS function)
User avatar (0017279)
Cutman (reporter)
2017-04-23 15:00

'https://zdoom.org/wiki/User_variable [^]'

     Weapon

        * The player itself must have the user variables. Defining the user variables is completely unnecessary on weapons as they are never stored.
        * Weapons may set the user variables on the player via DECORATE or ACS.

Unfortunate as it would be very handy, but they have to be defined in the playerclass if you want to use them.
User avatar (0017285)
Torr Samaho (administrator)
2017-04-23 17:33

So sounds like this is not a bug of Zandronum 3.0 then, right?
User avatar (0017296)
Edward-san (developer)
2017-04-23 20:34

AFAIR user variables can't be used reliably on weapons because of a bad implementation of Decorate (inherited from (G)Zdoom). ZScript fixes this, hence [WFZS].

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2017-04-23 13:07 forrestmarkx New Issue
2017-04-23 13:09 forrestmarkx Note Added: 0017271
2017-04-23 13:11 Torr Samaho Note Added: 0017273
2017-04-23 13:11 Torr Samaho Status new => feedback
2017-04-23 13:29 forrestmarkx Note Added: 0017275
2017-04-23 13:29 forrestmarkx Status feedback => new
2017-04-23 15:00 Cutman Note Added: 0017279
2017-04-23 17:33 Torr Samaho Note Added: 0017285
2017-04-23 17:33 Torr Samaho Status new => feedback
2017-04-23 20:34 Edward-san Note Added: 0017296






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker