# cg\_gunX, cg\_gunY, cg\_gunZ, r\_znear: can you build a release with this variables unlocked?

**URL:** <https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489>\
**Category:** Uncategorized\
**Created:** [June 5, 2020, 12:00am UTC](https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489 "2020-06-05T00:00:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![SolivaN](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.ioquake.org/solivan/32/524_2.png) [@SolivaN](https://discourse.ioquake.org/u/SolivaN)\
**Post date:** [June 5, 2020, 12:00am UTC](https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489/1 "2020-06-05T00:00:23Z")

</div>

Hi guys.

I know a .pk3 called ztm-flexible-hud, but this solution are too restrictive to manage freely the weapon model in other FOV values.

In fact, I’ve search for hel in other great project called Quake 3 Spearmint were a great guy called **zturtleman** have listened my petition from a idea taked from another game called Serious Sam 2, where I’ve detected that the render makes the weapon model independent from the embiroment render, so the result is when you changes the FOV in game, the weapon model is not altered for the FOV value.  
Sadly, this guy have decided to stop developing this grear source port  
[https://clover.moe/spearmint/](https://clover.moe/spearmint/)

Long live to Spearmint, what memories! 😔

The problem with this solution, is I can’t change the X Y Z values from weapon model.

The second try was with a cool russian guy called **Берсеркер** (Berserker) with a wonderfoul project called Quake 3 Berseker (obious).  
[http://quakegate.ru/forum/topic429/page155/](http://quakegate.ru/forum/topic429/page155/)

In this case, I’ve requested to make the X Y Z variables unlocked. And the cool guy responds me: “Hello SolivaN, I will unlock this cvars”  
here: [https://cloud.mail.ru/public/3Akr/jopYJCvbX](https://cloud.mail.ru/public/3Akr/jopYJCvbX)  
post: [http://quakegate.ru/forum/topic429/page156/](http://quakegate.ru/forum/topic429/page156/)

The problem with this source port, is with his eyecandy features (Fake PPL renderer,  
True PPL renderer, Parallax mapping, Specular mapping, Texture distortion, Advanced material system, etc) is that the FPS drops dramatically even on my RTX 2070! 😮

So’ I’ve thinking about Vulkan render that is the solution for all things in the life, vulkan brings a solution for my low self-esteem, for the love of the girl that I don’t have, the solution for, ejem, sorry. 😅

So, vkQuake3 is here: [https://github.com/suijingfeng/vkQuake3/releases](https://github.com/suijingfeng/vkQuake3/releases)  
This project have a excelent performance on the FPS stability. Very very smooth.  
But, this project are implemented from ioquake3 code. So this source port have heredated the same omitted locked variables: **cg\_gunX, cg\_gunY, cg\_gunZ**

So, I would like to have the possibility to move X, Y, Z axes of my weapon on the screen (HUD weapon), because I like to make the appeareance of weapons more brave and more deteailed.

Here’s a serie of screenshots that shows the possibility that we have with this 3 commands.

First I will make a comparison between Quake 3 Vanilla 1.32 with the view cg\_gunx 0, cg\_guny 0 and cg\_gunz 0 with a classic 4: 3 resolution in 640x480 and cg\_fov in 90:

Light Gun: cg\_fov 90; cg\_gunx 0; cg\_guny 0; cg\_gunz 0

 ![asd](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/4c1bd3304828aaf92edb5523e7758d39a5a42076.jpeg)

**In the following case, we can see that if we want to configure Lightgun in the same way as in XBOX360, we need to change CVAR cg\_gun**

Light Gun Quake 3 Arcade (XBOX 360) comparison:

**XBOX360 Light Gun HUD**

 ![](https://r6kqmw.sn.files.1drv.com/y4moVpmxAMClAez8YiwSJFdi9EUUolEaajCpTHNuHcypXprVLc67j7l_VZBe8j3FIXV8rU5ZX6WMUAmlMJwLOYmzpRNAooPPsJQAZa-qj1qAzDBYOm5Jnl5iWoDCvFa5w-juzheY9o5e5MhXVx-UjZBXLFgynMbpWZsFs-0YTVrnnu4IABEIHKoLyuYG5aTWf7RKKUkYNjevFveiH6W9AuV8w?width=1000&height=562&cropmode=none)

**Vanilla Quake 3 Light Gun HUD with cg\_gunx 2.4 and cg\_fov at 115**

 ![](https://rqlz1q.dm.files.1drv.com/y4m2OYhCj6RTcqYAAe1abNag-jBJQT-6Stoe4ZwLqC3bBWo1mhfVqzxXE59ouwGLM2v-6ef39E--9u5Ggh3hLBIRh_gvkCOC9jGeLVJOa4GhqwFOlcG6xTGDxPGM69olY70Jtz4a0cIRmcqgO74pRfz8kEreFt3u55xUArJKz-IAZV-74PwFGukWb2O0Fl33mWbEgYgoq5NLSSMJOOz9vaKvQ?width=1024&height=576&cropmode=none)

**Plasma Gun example in 640x480 without changes to cg\_gun CVAR or cg\_fov CVAR:**

 ![](https://e8d1pg.sn.files.1drv.com/y4mvfRs3A9s7B1C0sH4TyPzgww4VLjsxK-5sK_MiTtAXmquvHApT9YjnTxkJFMRpgcjkAPtOJSZw0rakcn81y3wvH08O5eHO5bEMZmuPZbN7RJH5vOfPWUS9al1F8wp-pC3ljbQJ0g1ILrjUyITBLkLhJVQvnb0ImDVxA_BGHiJYjct4gEyLp_ysBN9I6bR2zNdgx-oxzLL26JIIYA2n23s4Q?width=1024&height=819&cropmode=none)

But if we change CVAR cg\_fov, the weapon model (in the HUD) will decrease dramatically

Plasma Gun: cg\_fov 110; cg\_gunx 0; cg\_guny 0; cg\_gunz 0  
 ![](https://cmd1pg.sn.files.1drv.com/y4mFTuG9JBzml9kaJWC0c20G5Xl9A_PhXw9AAyuexkPbZ8auIUmMERXd1BYcarzpZF99TIKZDd4k0jYh9mRdZLAJqzLUvIQEIcSpAW7o49x1muLTvhWOD5ZhENkROXoet7V4lOnqfVURzn2J84u7DeMjx5Vl6UfLJjxauSD3ewDW9PqCcK91df_APlK3vMrbLFomhL9BB2M2U9kim0Ubq9spQ?width=640&height=480&cropmode=none)

To fix the perspective of the plasma gun, we need to change the CVAR cg\_gun parameters:

Plasma Gun: **cg\_fov 110** ; **cg\_gunx -3.5** ; cg\_guny 0; **cg\_gunz 5**  
 ![](https://ccd1pg.sn.files.1drv.com/y4mbdTIoFRuCJCmbtwnvTZFZ_wzFl6GV7ACEq_AUO-q7nRCJ5kOd9N0_6gWoOzV_pHoHr6A8SKk3Ct5EvML3QU16LZs9vT0RoIZmlbEh67_ZFYGtY0eRINZAAXKbXCA0-5-xVOT8OETEp6l2oDMS0mmkcu9HcmV344_IyG4kQbi2xx_g4ff0JU_0njt166Sb3h5c1ioW7v-2fjcSmZ6U5jrsQ?width=640&height=480&cropmode=none)

Now we will make a comparison in Quake 3 Berseker to see its behavior.  
Quake 3 Berserker compilation on May 25, 2019 with a view of cg\_gunx 0, cg\_guny 0 and cg\_gunz 0 with panoramic resolution from 16: 9 to 2560x1440 (2k):

Machine Gun example in 2560x1440 unchanged in cg\_gun CVAR

 ![](https://dcay1w.sn.files.1drv.com/y4meEfbiX6hcO_glsit4XIHP1hjpTTMidspPP9ICwhbgH-IxuBt6qPejlFcEqipPsL25SGXyAV3G7ORK-dSUVPAHjhbs6odz4QY0OzJaeeAFF6h2YhDan_yqUqVcb85xzGBlPJAarQlqzq8aezUMMHJHKwM4V_7QComoSsA3BCeojgQZsfWYSUdkQqE3H7k4QFkSM3tLGOlskVN26d25lL_YA?width=1024&height=576&cropmode=none)

Until then, Q3 Berseker excels at 16: 9 with CVAR cg\_fov at 90  
But let’s see what happens when we change cg\_fov’s CVAR to 110

 ![](https://cmd87q.sn.files.1drv.com/y4mruvnBGjA7i3qEFL3567_UjanfgAbi48bPxvesPbGjH9uW7v74Hi3PSmgVnYQD9dTn6j4VhPdI-x-cUwt6LiF5rUvUCmZ8CoLuwOlZ2JZXk3gjjEP-BgFM6zqNr09XmKXZnd_ZjjoaszC2VQWxF45Fh2PbwTV_tIRp0K-lgjzqTw2csQmQnKwGsMqS6tt31mu7NYaHB6EjRbFKE03mGD4_w?width=1024&height=576&cropmode=none)

It can be seen that the same thing happens in Vanilla Q3, the weapon model decreases when CVAR changes. Cg\_fov  
To fix this problem, we need to change CVAR cg\_gun, as shown below:

Machine Gun: **cg\_fov 110** ; **cg\_gunx -0.1** ; cg\_guny 0; **cg\_gunz 3.4; r\_znear 4**

 ![](https://d8bheq.sn.files.1drv.com/y4mLi1AubXnq9h-X2uf9_8ayN6HzXGR0nQT3moCU1TftN7vAFbwR4Arpt421EY2E8FypzUpxbKtX4HTNclKyjiVj3Je8dJiZ9YQclowHwNMaqfykDPcsIoL1SZiAUP0ttvtwyXy_XouSWHSjMtZYWPL8SSjxQeDT0AVIjY3_MG84plTgpWmzI1kNtz2dMdM8UOBmLGt6jXKVv7U4BL5f6gMSQ?width=1024&height=576&cropmode=none)

We see that CVAR r\_znear 4 affects the weapon pattern when we try to adjust the perspective of the weapon model in the HUD. Same happens with ioquake3, spearmint, and vkQuake. (and vanilla quake 3 of course)

To completely fix this problem, we need to change the r\_znear value to 1

**I think that z\_near is dangerous for hacking, wallhack, etc. So, a good idea is to limit his values from 0 to 4 (like Quake Live does with his cvars)** 😉

 ![](https://cmbheq.sn.files.1drv.com/y4mNlu8HH-Lul8kdWQik4B8rmbLUkz30ystEkegaD9TaT1MSo9Qo6OaHY0Hm7xVOYYYJ7xc6L4zz06yy4A3zjgbwbAoBtfbbUl5LeMrA-6CiZJbLfE9yzeZvZUzoEkFvz38Y9s5_2PGzYGcVPnMuOjYHf0MYA4hAHWU63KM7sAG487bihzyJP99db0T3WEdnSN1t4iMPUgmDfL1yd1N8XPw2Q?width=2560&height=1440&cropmode=none)

We can also customize the impressive BFG 9000 to look like **UnrealTournament99Redeemer** :

 ![](https://i.ytimg.com/vi/iGQAgl1X3ZM/maxresdefault.jpg)  
BFG 9000: cg\_fov 110; cg\_gunx 1.5; cg\_guny -9; cg\_gunz 6; r\_znear 1  
 ![](https://d8d87q.sn.files.1drv.com/y4mXNs-X2Blzdwkx7bimJqk8dDPk-FagMovt5YfyTGTna5KcugcNJfMdUiiXWOOQ9NPj12vcTegY15yrmXMpuaU-qxI1f9a_NWkv9nPqysaRaC4mKZn5riSkHS09-T8btthStT9l4krGh6j_cL5BlcrnxtD8byOIwUSeYwxsW-PvuifgOh5tZvBO9PPq_WfYQszbuW72FmNmvX5NThAQB6gSA?width=2560&height=1440&cropmode=none)

In conclusion, I want to show that unlocking CVAR cg\_gunx, cg\_guny, cg\_gunz and r\_znear will help Quake 3 Source Ports become even more universal with HUD.

This source is incredible, they really did an excellent job, and I congratulate you and thank you for this wonderful work with such dedication to the classic Quake 3 Arena.

Many thanks to all you dudes, developers! of the best source ports  
that I have had the opportunity to probe (ioquake3, berserker, spearmint) 🙌

My respect to all your, masters! 👊 🕶

Some of my dedicated videos to Quake 3, Spearmint and ioquake3 :

- Searching a problem with downsampling in Spearmint (solved): [https://www.youtube.com/watch?v=l34\_AEAOjv0](https://www.youtube.com/watch?v=l34_AEAOjv0)

- Testing in slowmotion the new graphics features in ioquake3: [https://www.youtube.com/watch?v=Doux9fq14Ao](https://www.youtube.com/watch?v=Doux9fq14Ao)

- Testing the Excessive Plus MOD in Vanila Q3: [https://www.youtube.com/watch?v=CDBzmWx-SuQ](https://www.youtube.com/watch?v=CDBzmWx-SuQ)  
💓 ❤ 💥 💖 💝 🧡 💛 💚 💜 💙 🤍

---

<div class="post-metadata">

**Author:** ![zturtleman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.ioquake.org/zturtleman/32/718_2.png) [@zturtleman](https://discourse.ioquake.org/u/zturtleman)\
**Post date:** [June 6, 2020, 12:58am UTC](https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489/2 "2020-06-06T00:58:53Z")

</div>

Alternate solution:

Use `devmap q3dm1` to find cg\_gunX/Y/Z offsets you want for a weapon and then modify `models/weapons2/*/*_hand.md3` which controls the first person weapon placement. This also allows for per-weapon control and works with all mods and engines.

The new `*_hand.md3` models won’t be allowed on pure servers but neither is a CGame VM with the cg\_gunX/Y/Z cvars made non-cheat protected. Though both can be used on a pure server if the pk3 with the custom hand models or cgame is on the server.

## Extract

Extract the models with a zip program and keep the same directories (`models/weapons2/`).

### Quake 3

baseq3/pak0.pk3

- models/weapons2/gauntlet/gauntlet\_hand.md3
- models/weapons2/shotgun/shotgun\_hand.md3
- models/weapons2/machinegun/machinegun\_hand.md3
- models/weapons2/grenadel/grenadel\_hand.md3
- models/weapons2/rocketl/rocketl\_hand.md3
- models/weapons2/lightning/lightning\_hand.md3
- models/weapons2/railgun/railgun\_hand.md3
- models/weapons2/plasma/plasma\_hand.md3
- models/weapons2/bfg/bfg\_hand.md3
- models/weapons2/grapple/grapple\_hand.md3

### Team Arena

missionpack/pak0.pk3

Team Arena dropped the 2 for whatever reason.

- models/weapons/nailgun/nailgun\_hand.md3
- models/weapons/proxmine/proxmine\_hand.md3
- models/weapons/vulcan/vulcan\_hand.md3 (chain gun)

## Modify

Using [Maverick Model 3D](https://clover.moe/mm3d) (or Misfit Model 3D) you can load the `*_hand.md3` model and translate it like cg\_gunX/Y/Z. Use menubar -\> Model -\> Transform Model. On the default Translate tab set X = gunX, Y = gunZ, Z = gunY (yes, Y and Z have to be swapped for MM3D) and click Translate. Then save the model. Note that `*_hand.md3` is not rendered so it only has “MD3 tags” to set tag\_weapon position/rotation.

## Make a pk3

Zip your modified files (with the same `models/weapons2/` directories) and rename the .zip to .pk3. The filename needs to be alphabetically after “pak”, such as q.pk3 since Q is after P.

For testing with ioquake3 and Spearmint you can create a directory with “.pk3dir” at the end (`baseq3/zz_new-hands.pk3dir/models/weapons2/...`) and set sv\_pure 0 to use the models without having to zip the files.

---

<div class="post-metadata">

**Author:** ![SolivaN](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.ioquake.org/solivan/32/524_2.png) [@SolivaN](https://discourse.ioquake.org/u/SolivaN)\
**Post date:** [June 15, 2020, 11:25pm UTC](https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489/3 "2020-06-15T23:25:37Z")

</div>

zturtleman? is it you? WOW!! man! I don’t know what you are here! MEN!! Thanks a LOT for your GREAT work with SPEARMINT MEN! Is very very impressive to see you here dude!

Well, I’ve follow step by step your manual and the result of the .PK3 is awesome!  
I’ve loaded the XBOX 360 Weapon Models on your Spearmint, and the result are sublime

 ![Sin título](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/95801fbf275141adbc28c573442cdaf785d0a654.jpeg)

However, the problem of cutted weapon model by znear is there yet. look:

 ![shot0005](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/db01ea9381a07b9a052c671a338e372d2462a706.jpeg)  
 ![shot0008](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/f720f1b96b36cf03b862142637de1324e8f3f540.jpeg)  
 ![shot0010](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/b3d6a3ec0b4b12be40e8ef0f2125feca456ad880.jpeg)

Is possible with your knowledge make a spearmint release (or ioquake release) with the r\_znear cvar unlocked?  
Or if do you prefer, make the r\_znear cvar like Quake Live does (limit his values between 0 to 4) for example.

Quake Live manage the cg\_gunX, Y and Z between a range values, so, is a great idea for bring to other source ports, I think.

Thanks again dude for your great help throug all this years.  
Cheers! 😉

---

<div class="post-metadata">

**Author:** ![zturtleman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.ioquake.org/zturtleman/32/718_2.png) [@zturtleman](https://discourse.ioquake.org/u/zturtleman)\
**Post date:** [June 16, 2020, 2:21am UTC](https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489/4 "2020-06-16T02:21:10Z")

</div>

Yep, it’s me. Ah, yeah I don’t have a clever workaround for r\_znear. It should indeed be range checked so people can’t (as easily) look through walls.

By the way what is the Quake Live range of cg\_gunX, Y, Z?

---

<div class="post-metadata">

**Author:** ![SolivaN](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.ioquake.org/solivan/32/524_2.png) [@SolivaN](https://discourse.ioquake.org/u/SolivaN)\
**Post date:** [June 18, 2020, 1:33am UTC](https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489/5 "2020-06-18T01:33:55Z")

</div>

Well, the way to manage all the cvars into the QL are optimized and more controlled.  
I mean, if you take a close look in the console, you’ll see the cvars (and some commands) are limited between a range of values (to bring some freedom to the users) but without neglect the security cheats (the same you say “look through walls” for the r\_znear cvar case).

 ![20200616220803_1-2](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/372c33e661a873d29179b7656fd5af9be475faa6.jpeg)

However, the idsoftware guys (or Bethesda) have been limit too much the cg\_gunX, Y, Z cvars, because you can’t move the Z axis to positive values (cg\_gunZ 1, cg\_gunZ 2, cg\_gunZ 3, etc) only you can set the Z axis with negative values (cg\_gunZ 0, cg\_gunZ -1, cg\_gunZ -2, until -10 if I remember).

This great way to manage the cvars, is a good idea to implement in other source ports, I think.

And for other hand… if I remember right, exactly yourself have been unlocked other CVARS (like r\_lodcurveerror and r\_subdivisions cvars) when I posted to you some of this same points that I’ve talking about now. It was on the active forum era of Spearmint, rembember this pics???

 ![shot0005](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/1b1e048e04296bbdc7b3f02d1984f178b5011d9e.jpeg)  
 ![shot0006](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/7181c9271042272f77d61b46bf37e8916894512c.jpeg)

Actually, your Spearmint have unlocked the r\_lodcurveerror and r\_rsubdivisions CVARS  
Can’t you do the same with r\_znear? Look:

 ![shot0003](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/31aaa448b4fee26fdc8eafd6eb6d323fc869bd50.jpeg)  
 ![shot0004](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/c15a9bb1ab18a2c770f9684dc0eaa813aa562b16.jpeg)

Well, If you need some help about the source code for Berserker Quake 3 with unlocked cvars, here is the forum where you can contact with Berserker Quake 3 author:  
[https://translate.google.cl/translate?hl=es-419&tab=wT&authuser=0&sl=ru&tl=en&u=http%3A%2F%2Fquakegate.ru%2Fforum%2F](https://translate.google.cl/translate?hl=es-419&tab=wT&authuser=0&sl=ru&tl=en&u=http%3A%2F%2Fquakegate.ru%2Fforum%2F)

Let me what do you think about.  
Thanks for all! 😄

---

<div class="post-metadata">

**Author:** ![zturtleman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.ioquake.org/zturtleman/32/718_2.png) [@zturtleman](https://discourse.ioquake.org/u/zturtleman)\
**Post date:** [June 18, 2020, 2:08am UTC](https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489/6 "2020-06-18T02:08:00Z")

</div>

Thanks for checking the cg\_gunX, Y, Z cvar range in Quake Live.

Yeah, I know how to un-cheat protect a cvar. I may allow r\_znear and cg\_gunX, Y, Z range in Spearmint 1.1.0 (feature update) but there is currently no announcement as to when it will be released.

r\_subdivisions is not cheat protected in vanilla Quake 3. r\_lodcurveerror is cheat protected in Quake 3 but not in Wolfenstein: Enemy Territory. Though I still haven’t tracked down if Wolf:ET unlocked it or if a later Q3 patch make it cheat protected. It’s impressive that high quality curves are possible in such an old game and I want people to use it.

---

<div class="post-metadata">

**Author:** ![SolivaN](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.ioquake.org/solivan/32/524_2.png) [@SolivaN](https://discourse.ioquake.org/u/SolivaN)\
**Post date:** [June 18, 2020, 2:49am UTC](https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489/7 "2020-06-18T02:49:45Z")

</div>

Yaicks! I can’t wait to be released! Thanks for hear me again zturtleman! You are great code developer!

PS: I can suggest values range between -20 to 40 in the cg\_gun cases? And for r\_znear a range from 0.3 to 4 it will enough.

Also I’ve remembered that the Rail Gun and BFG trail path are not coded to follow the position of the model gun (in the case of the BFG the projectile always shoot out from the center of the screen). And the Rail Gun are always fixed to a static point. Here’s a fixed example of this, look:

**fixed CG code path for EV\_RAILTRAIL: correct rail trail start position according cg\_gun**  
 ![](https://c.radikal.ru/c38/1908/a9/ae7a558ea419t.jpg)

If too much all this, never mind, with the r\_znear fix and cg\_guns unlocked are sufficient. (may be for future future re release maybe 😉)

---

<div class="post-metadata">

**Author:** ![SolivaN](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.ioquake.org/solivan/32/524_2.png) [@SolivaN](https://discourse.ioquake.org/u/SolivaN)\
**Post date:** [June 20, 2020, 12:49am UTC](https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489/8 "2020-06-20T00:49:21Z")

</div>

Apologize my trusting, but I prefer to mention this before it’s too late.

The face HUD have a zrange limit that affect to some graphics effects for some champs. Look:

 ![shot0000-2-gigapixel-scale-2x](https://canada1.discourse-cdn.com/flex030/uploads/ioquake/original/1X/a4cb971e4568d6da3e25fca8bb770485567840cc.jpeg)

If you could raise this zrange limit too, it will be great.  
Again, if is very annoying all that I’ve requested, is no problem, forget it.

Sorry for request too much on this.  
And thanks for your patience.

---

<div class="post-metadata">

**Author:** ![zturtleman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.ioquake.org/zturtleman/32/718_2.png) [@zturtleman](https://discourse.ioquake.org/u/zturtleman)\
**Post date:** [June 23, 2020, 3:21pm UTC](https://discourse.ioquake.org/t/cg-gunx-cg-guny-cg-gunz-r-znear-can-you-build-a-release-with-this-variables-unlocked/1489/9 "2020-06-23T15:21:46Z")

</div>

The head model on HUD is in a small 3D scene. So that line you drew is likely the edge of the scene bounds not znear related. But yeah, it might be nice if it was fixed.
