Anonymous | Login | Signup for a new account | 2025-07-29 16:30 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | All Projects Issue Support Ranking | Rules | My Account |
View Revisions: Issue #4236 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0004236: ACS function to create temporary CVars | ||
Revision | 2024-04-22 00:46 by Kaminsky | ||
Description | Add an ACS function like CreateTemporaryCvar(str CVar) to replace ConsoleCommand(StrParam(s:"set ", s:MyMadeUpCVarName)) acting as a superb version of global int. Clients cannot read it and it won't disappear with map command unlike global. Very useful for certain Survival cases(with unexpected Exit event, before the game could save some data), especially the ones that use hub system(Lexicon). It also prevents from CVARINFO turning into a mess with lots and lots of definitions, especially if the mod is targeted towards 64 players. |
||
Revision | 2024-04-21 18:06 by Necrodoom | ||
Description | 1) Add ConsoleCommand replacement function MapChange(int map). A replacement for map X map puked from a clientside script that is puked from a menu button allows the game to begin (in TITLEMAP), if map is replaced with ChangeLevel or ExitNormal it'll keep you in a menu mode, and you cannot control the player anyhow. 2) Add ConsoleCommand replacement function JoinGame(). A replacement for ConsoleCommand("Join"); and ConsoleCommand("menu_joingame"). Reference uploaded image. A unique example as a single menu button can do a different thing thanks to ConsoleCommand(Zan) and ZScript(GZD). See video in attached discord message in Additional Information ("GZDoom singleplayer" section is what happens if ChangeLevel is used In zandronum) 3) Add ConsoleCommand replacement function CreateTemporaryCvar(str CVar). A replacement of ConsoleCommand(StrParam(s:"Set ", s:MyMadeUpCVarName)) acting as a superb version of global int. Clients cannot read it and it won't disappear with map command unlike global. Very useful for certain Survival cases(with unexpected Exit event, before the game could save some data), especially the ones that use hub system(Lexicon). It also prevents from CVARINFO turning into mess with lots and lots of definitions, especially if the mod is targeted towards 64 players. |
Copyright © 2000 - 2025 MantisBT Team |