Leather Realms Posted January 9, 2024 I don't really get how this code works exactly. I was messing around Doom Shinobi and Third Person.wad and I realized that these mods use CVAR for Chase Camera. I think this is how they made it default camera mode instead of toggling it from First Person to Chase Camera. 0 Quote Share this post Link to post
AbeAwesome Posted January 9, 2024 CVAR just stands for "Console Variable." It's a way to store (and set) the engine settings. Usually, there will be a menu provided to change these, but sometimes, there isn't and you have to set them via the console. It's unlikely the WADs you mention "use" CVARs "for" the chance camera. Rather, the variable is used to set that option. 1 Quote Share this post Link to post
Leather Realms Posted January 9, 2024 2 hours ago, AbeAwesome said: It's unlikely the WADs you mention "use" CVARs "for" the chance camera. Rather, the variable is used to set that option. What do you mean it is unlikely for them to use CVARs for the chase camera? 0 Quote Share this post Link to post
AbeAwesome Posted January 10, 2024 (edited) 14 hours ago, Leather Realms said: What do you mean it is unlikely for them to use CVARs for the chase camera? I mean that chase-cam behavior is either defined in-engine, or scripted using ZScript or something like that (if the WAD includes some non-standard camera behavior). The CVAR is (most likely) just used to toggle the effect on/of, and maybe adjust some options, but most runtime variables should not be exposed to the end-user. To give an example with a different concept: player speed, ammo count, and monster health are are variables, but they're not console variables. Autorun on/of is a CVAR, and it has an effect on player speed, but it doesn't control it. Edited January 10, 2024 by AbeAwesome 2 Quote Share this post Link to post
Leather Realms Posted January 10, 2024 (edited) 4 hours ago, AbeAwesome said: I mean that chase-cam behavior is either defined in-engine, or scripted using ZScript or something like that (if the WAD includes some non-standard camera behavior). The CVAR is (most likely) just used to toggle the effect on/of, and maybe adjust some options, but most runtime variables should not be exposed to the end-user. To give an example with a different concept: player speed, ammo count, and monster health are are variables, but they're not console variables. Autorun on/of is a CVAR, and it has an effect on player speed, but it doesn't control it. How come I can't toggle on/off Chase Camera when I played Doom Shinobi? I don't get it. Edited January 10, 2024 by Leather Realms 0 Quote Share this post Link to post
Horizon Posted January 26, 2024 On 1/10/2024 at 12:57 PM, Leather Realms said: How come I can't toggle on/off Chase Camera when I played Doom Shinobi? set cvar dmflags2 2097152 if that doesn't work, idk what will - I don't use GZDoom 0 Quote Share this post Link to post
Leather Realms Posted February 3, 2024 On 1/26/2024 at 4:27 AM, Horizon said: set cvar dmflags2 2097152 if that doesn't work, idk what will - I don't use GZDoom I don't get it then, why are you telling me this code if you don't use GZDoom? 0 Quote Share this post Link to post
TheMagicMushroomMan Posted February 3, 2024 (edited) 1 hour ago, Leather Realms said: I don't get it then, why are you telling me this code if you don't use GZDoom? I think Horizon is just pretty much saying that they can't guarantee it'll work. Or perhaps it is something much more nefarious. Edited February 3, 2024 by TheMagicMushroomMan 1 Quote Share this post Link to post
Shepardus Posted February 4, 2024 (edited) On 1/10/2024 at 4:57 AM, Leather Realms said: How come I can't toggle on/off Chase Camera when I played Doom Shinobi? I don't get it. Doom Shinobi has its own chase camera implementation that doesn't read GZDoom's built-in "chase" toggle, probably because GZDoom's chase camera is pretty bare-bones and doesn't let you do things like have the camera face a different direction than the player. Though it still uses chase_dist as the setting for how far away the camera should be. Edited February 4, 2024 by Shepardus 2 Quote Share this post Link to post
Leather Realms Posted February 5, 2024 On 2/3/2024 at 8:00 PM, Shepardus said: Doom Shinobi has its own chase camera implementation that doesn't read GZDoom's built-in "chase" toggle, probably because GZDoom's chase camera is pretty bare-bones and doesn't let you do things like have the camera face a different direction than the player. Though it still uses chase_dist as the setting for how far away the camera should be. OHHH so, they made their own chase camera and they made it default. The GZDoom engine read the script and made it in the way Doom Shinobi wanted too. If that's not what you are saying then, I'm still confused. What are we talking about? 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.