08-03-2011, 12:01
08-03-2011, 12:32
execNow exec "mywhitelist.cfg";
works
works
08-05-2011, 01:08
(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";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.
works
08-05-2011, 14:42
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.
3) edit your zone source in mod tools to have this line
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
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
08-05-2011, 16:49
(08-05-2011, 14:42)koil Wrote: [ -> ]1) copy this menu file AND its file structure to your mod..Tried that and well still enviromental sounds. Dunno what i am doing wrong but i think i have all dvars correctly written:
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
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.
08-05-2011, 19:57
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
08-05-2011, 20:31
(08-05-2011, 19:57)koil Wrote: [ -> ]Do you mean your _load.gsc file?. ThanksCode: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
08-05-2011, 20:38
no i mean the file called z_mp_somethinghere
in the first folder
in the first folder
08-05-2011, 20:42
(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
08-05-2011, 21:05
yuppp