Alprnn357 / cs16-menu-extended

The CS 1.6 VGUI Menu Extended Edition for CS16Client Android
Apache License 2.0
5 stars 0 forks source link

Condition Zero autodetecting #1

Closed Vladislav4KZ closed 2 years ago

Vladislav4KZ commented 2 years ago

In your config file, you said that the fifth team class is only available in CSMoE, but in reality it is not so. CS16Client has Condition Zero support, which is turned on by the third secret button in the launcher.

So make this check in your menu configs. if $gamedir == czero :condition zero mode activated, here write commands to show 5 playerclasses else :show 4 playerclasses

if $gamedir == czero
:touch_addbutton "#Seal Team 6"
:touch_addbutton "#GSG-9"
:touch_addbutton "#SAS"
:touch_addbutton "#GIGN"
:touch_addbutton "#Russian Spetsnaz"
else
:touch_addbutton "#Seal Team 6" // etc...

Thanks to this, an additional cvar in the config is not needed and the script will automatically detect the Condition Zero

The same check can be done for csmoe.

Vladislav4KZ commented 2 years ago

Or you can do this: if $gamedir == cstrike :here are commands to display 4 classes else // Condition Zero or CSMoE :show 5 classes

Alprnn357 commented 2 years ago

In your config file, you said that the fifth team class is only available in CSMoE, but in reality it is not so. CS16Client has Condition Zero support, which is turned on by the third secret button in the launcher.

So make this check in your menu configs. if $gamedir == czero :condition zero mode activated, here write commands to show 5 playerclasses else :show 4 playerclasses

if $gamedir == czero
:touch_addbutton "#Seal Team 6"
:touch_addbutton "#GSG-9"
:touch_addbutton "#SAS"
:touch_addbutton "#GIGN"
:touch_addbutton "#Russian Spetsnaz"
else
:touch_addbutton "#Seal Team 6" // etc...

Thanks to this, an additional cvar in the config is not needed and the script will automatically detect the Condition Zero

The same check can be done for csmoe.

Thank you for the suggestion. I didn't know the secret button thing and don't know how to enable it. I will take a note it for next release.

Vladislav4KZ commented 2 years ago

Thank you for the suggestion. I didn't know the secret button thing and don't know how to enable it. I will take a note it for next release.

Just press many times on the cs16client logo and this button will appear

Screenshot_20211224-110348.png

Alprnn357 commented 2 years ago

Thank you for the suggestion. I didn't know the secret button thing and don't know how to enable it. I will take a note it for next release.

Just press many times on the cs16client logo and this button will appear

Screenshot_20211224-110348.png

Thank you, i will do a new release after the Entity Menu.