Posts: 5,135
Threads: 241
Joined: Nov 2010
Reputation:
100
08-03-2011, 12:01
(This post was last modified: 08-03-2011, 12:03 by Pozzuh.)
execNow "exec myWhitelist";
works for me.
Edit: No, sorry it is: execnow exec "myWhitelist";
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
execNow exec "mywhitelist.cfg";
works
Posts: 71
Threads: 5
Joined: Dec 2010
Reputation:
1
(08-03-2011, 12:01)Pozzuh Wrote: execNow "exec myWhitelist";
works for me.
Edit: No, sorry it is: execnow exec "myWhitelist";
(08-03-2011, 12:32)koil Wrote: execNow exec "mywhitelist.cfg";
works But you have a custom menu right? i have a quickmenu so i have no idea where to put that. Still not working and im getting crazy with that.
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
08-05-2011, 14:42
(This post was last modified: 08-05-2011, 14:43 by koil.)
1) copy this menu file AND its file structure to your mod..
UI_MP/SCRIPTMENUS/team_marinesopfor.menu
2) add this to the code on around line 108ish it should be.
Code: onOpen
{
execNow exec "mywhitelist.cfg";
if (IsInGame())
{
3) edit your zone source in mod tools to have this line
Code: menufile,ui_mp/scriptmenus/team_marinesopfor.menu
4) now it should run that every time someone joins the server if you dont have auto assign on.. if you have autoassign just find another menu file and use it this same way
Posts: 71
Threads: 5
Joined: Dec 2010
Reputation:
1
08-05-2011, 16:49
(This post was last modified: 08-05-2011, 16:50 by FRAN710.)
(08-05-2011, 14:42)koil Wrote: 1) copy this menu file AND its file structure to your mod..
UI_MP/SCRIPTMENUS/team_marinesopfor.menu
2) add this to the code on around line 108ish it should be.
Code: onOpen
{
execNow exec "mywhitelist.cfg";
if (IsInGame())
{
3) edit your zone source in mod tools to have this line
Code: menufile,ui_mp/scriptmenus/team_marinesopfor.menu
4) now it should run that every time someone joins the server if you dont have auto assign on.. if you have autoassign just find another menu file and use it this same way Tried that and well still enviromental sounds. Dunno what i am doing wrong but i think i have all dvars correctly written:
dvars and perks file where i have the function:
Code: [i]//Removing enviromental sounds[/i]
setDvar( "r_treeScale", "0" );
setDvar( "wind_grass_gust_strength", "0" );
setDvar( "wind_grass_scale", "0" );
setDvar( "wind_grass_tension", "0" );
setDvar( "wind_local_frequency", "0" );
setDvar( "wind_leaf_scale", "0" );
self setclientDvar( "r_treeScale", "0" );
self setclientDvar( "wind_grass_gust_strength", "0" );
self setclientDvar( "wind_grass_scale", "0" );
self setclientDvar( "wind_grass_tension", "0" );
self setclientDvar( "wind_local_frequency", "0" );
self setclientDvar( "wind_leaf_scale", "0" );
wait 0.001;
On myWhitelist.cfg:
Code: // Whitelisted Dvars & Commands
setmoddvar r_treeScale
setmoddvar wind_grass_gust_strength
setmoddvar wind_grass_scale
setmoddvar wind_grass_tension
setmoddvar wind_local_frequency
setmoddvar wind_leaf_scale
setmoddvar r_picmip
setmoddvar r_picmip_bump
setmoddvar r_picmip_manual
setmoddvar r_picmip_spec
setmoddvar r_picmip_water
On server.cfg(tried with or without and it's the same) and team_marinesopfor.menu:
execNow exec "myWhitelist.cfg";
On mod.csv
Code: //MENU
menufile,ui_mp\scriptmenus\mod_menu.menu
menufile,ui_mp\scriptmenus\team_marinesopfor.menu
Also i have all that stuff added to an IWD. Before starting a private match with the mod loaded i run on console "exec server" and console says execing myWhitelist.cfg from fastfile.
I think i will have to make a class menu or that will not work.
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
08-05-2011, 19:57
(This post was last modified: 08-05-2011, 19:57 by koil.)
Code: setDvar( "r_treeScale", "0" );
setDvar( "wind_grass_gust_strength", "0" );
setDvar( "wind_grass_scale", "0" );
setDvar( "wind_grass_tension", "0" );
setDvar( "wind_local_frequency", "0" );
setDvar( "wind_leaf_scale", "0" );
self setclientDvar( "r_treeScale", "0" );
self setclientDvar( "wind_grass_gust_strength", "0" );
self setclientDvar( "wind_grass_scale", "0" );
self setclientDvar( "wind_grass_tension", "0" );
self setclientDvar( "wind_local_frequency", "0" );
self setclientDvar( "wind_leaf_scale", "0" );
wait 0.001;
doesnt remove environmental sounds... they are wind / grass like it says... use the iwd from my mod to remove sounds its done thru the GSC files when u load the map
Posts: 71
Threads: 5
Joined: Dec 2010
Reputation:
1
(08-05-2011, 19:57)koil Wrote: Code: setDvar( "r_treeScale", "0" );
setDvar( "wind_grass_gust_strength", "0" );
setDvar( "wind_grass_scale", "0" );
setDvar( "wind_grass_tension", "0" );
setDvar( "wind_local_frequency", "0" );
setDvar( "wind_leaf_scale", "0" );
self setclientDvar( "r_treeScale", "0" );
self setclientDvar( "wind_grass_gust_strength", "0" );
self setclientDvar( "wind_grass_scale", "0" );
self setclientDvar( "wind_grass_tension", "0" );
self setclientDvar( "wind_local_frequency", "0" );
self setclientDvar( "wind_leaf_scale", "0" );
wait 0.001;
doesnt remove environmental sounds... they are wind / grass like it says... use the iwd from my mod to remove sounds its done thru the GSC files when u load the map Do you mean your _load.gsc file?. Thanks
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
no i mean the file called z_mp_somethinghere
in the first folder
Posts: 71
Threads: 5
Joined: Dec 2010
Reputation:
1
08-05-2011, 20:42
(This post was last modified: 08-05-2011, 20:47 by FRAN710.)
(08-05-2011, 20:38)koil Wrote: no i mean the file called z_mp_somethinghere
in the first folder
Yup but what to extract? all the clientscripts?
nvm found it and its working ty so much, in otherwise can u explain me what does the whitelist thing then? xD
+ rep for u
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
|