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

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002991Zandronum[All Projects] Suggestionpublic2017-01-23 03:472020-10-27 10:44
Assigned To 
PlatformOSOS Version
Product Version3.0 
Target VersionFixed in Version 
Summary0002991: [Edit] Fix GetCVar in A_JumpIf actions
DescriptionThis is a pretty handy ACS function.
It's a part of ZDoom 2.8 but not 2.7.1

Edit: Turns out this does (kind of) exist but crashes the game on startup.
There may also be other ACS functions that also are supposed to work in A_JumpIf but crash instead.
Additional InformationExample of usage
Actor CustomParticle {
    RenderStyle "Stencil"
    States {
            TNT1 A 0
            TNT1 A 0 A_JumpIf(GetCVar("vid_renderer") == 0,"Spawn0")
            TNT1 A 0 A_JumpIf(GetCVar("gl_particles_style") == 1,"Spawn1")
            TNT1 A 0 A_JumpIf(GetCVar("gl_particles_style") == 2,"Spawn2")
            Goto Spawn0
        Spawn0: // Square
            PART A 1 A_FadeOut(1/35)
        Spawn1: // Round
            PART B 1 A_FadeOut(1/35)
        Spawn2: // Smooth
            PART C 1 A_FadeOut(1/35)
Attached Files

- Relationships

-  Notes
User avatar (0016859)
Dark-Assassin (administrator)
2017-02-13 12:08

Ok, this function does exist in ACS, however using directly in A_JumpIf causes the game to crash on startup.
User avatar (0021553)
EpicTyphlosion (reporter)
2020-10-27 05:03

Yeah, this one's pretty cut and dry. No reason that what looks like a very useful, if not essential ACS function from ZDoom should be left out of Zandro.
User avatar (0021555)
Kaminsky (developer)
2020-10-27 10:44

This ticket is referring to the DECORATE version of GetCVar(), which was added in a much later version of (G)ZDoom than the one Zandronum 3.0 is based off of: [^]

There are several or more DECORATE expressions such as this one that look and behave like their ACS counterparts, but aren't currently in Zandronum right now.

It's up to the developers to decide whether it's possible to backport an out of order feature like this one right now. For now, since GetCVar() works in ACS, you could have DECORATE call an ACS script that returns the CVar's value.

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: Unknown EnsaladaDeTomate Dark-Assassin EpicTyphlosion eagle
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2017-01-23 03:47 Dark-Assassin New Issue
2017-02-13 12:08 Dark-Assassin Note Added: 0016859
2020-10-19 07:55 Dark-Assassin Severity feature => crash
2020-10-19 07:55 Dark-Assassin Reproducibility N/A => always
2020-10-19 07:55 Dark-Assassin Product Version => 3.0
2020-10-19 07:55 Dark-Assassin Summary Backport GetCVar => [Edit] Fix GetCVar in A_JumpIf actions
2020-10-19 07:55 Dark-Assassin Description Updated View Revisions
2020-10-27 05:03 EpicTyphlosion Note Added: 0021553
2020-10-27 10:44 Kaminsky Note Added: 0021555

Questions or other issues? Contact Us.


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker