Posts: 41
Threads: 13
Joined: Jun 2011
Reputation:
2
I've seen in a couple mods where they force weapons and right after selecting a side you spawn. I figured out how to force weapons but I'm not sure how to bypass the class loadout screen. Anyone know how to go about doing that?
Secondly, is there any tutorials on creating custom menus floating around, for example if I wanted to make a menu for weapon selections, I've seen this in cmmod but haven't been able to find it anywhere else.
Thanks for the help.
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
06-26-2011, 06:25
(This post was last modified: 06-26-2011, 06:26 by koil.)
setDvar("scr_disable_cac", 0);
setting it to 1 enables it again.
Posts: 41
Threads: 13
Joined: Jun 2011
Reputation:
2
This doesn't seem to be working for me the way I had hoped. How is this supposed to work? I would like it so when a person joins the server, they choose a team and then they spawn with forced weapons, totally skipping the choose a class menu.
Also, as I asked before, anyone know of some information on how to go about creating a custom menu?
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
06-27-2011, 00:55
(This post was last modified: 06-27-2011, 00:55 by koil.)
if you put
setDvar("scr_disable_cac", 1);
In the on init thread, it should disable class selection instantly, then for a custom menu, well, you will have to work that out and make me one! I think 1 is disabled, not 0 like my previous post sort of points at.