Anonymous | Login | Signup for a new account | 2025-06-19 23:56 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0003084 | Zandronum | [All Projects] Bug | public | 2017-04-23 13:07 | 2017-04-23 20:34 | ||||||||
Reporter | forrestmarkx | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | feedback | Resolution | open | ||||||||||
Platform | Microsoft | OS | Windows | OS Version | XP/Vista/7 | ||||||||
Product Version | 3.0-beta | ||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0003084: User Variables don't work on weapons | ||||||||||||
Description | For 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 Reproduce | Have a user var on the player then try and check it inside a weapon using A_JumpIf | ||||||||||||
Attached Files | |||||||||||||
![]() |
|
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 |
Torr Samaho (administrator) 2017-04-23 13:11 |
Please first check whether what you are trying to do works in GZDoom 1.8.6. |
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) |
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. |
Torr Samaho (administrator) 2017-04-23 17:33 |
So sounds like this is not a bug of Zandronum 3.0 then, right? |
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]. |
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. |
![]() |
|||
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 |
Copyright © 2000 - 2025 MantisBT Team |