Jump to content

[CSS] how to write a config


KyuZo

Recommended Posts

but you can always use the old "exec x.cfg" to load your config files.. like

 

exec myconfig.cfg

 

just load console and type it..

yea I knew that...but it becomes anoying if you have to do that everytime u load cs...(in my case it's not that much annoying cuz it's just god.cfg :) )

btw do u have any MSN address??if yes add me bl00dy_w4rrior@hotmail.com

 

PS: Just made some changes in my god.cfg like when u buy somthin' with the buyscript your weapon changes to knife

 

Link http://rapidshare.com/files/43884044/god.cfg

 

NumPad 1= ak47/m4a1 and Primary Ammo & Set weapon Knife

NumPad 2= armor & Set weapon Knife

NumPad 3= deagle and Sec Ammo & Set weapon Knife

NumPad 4= Grenades & Set weapon Knife

NumPad 5= Awp and Deagle Primary/Secondary Ammo & Set weapon Knife

NumPad 0= Primary/Secondary ammo & Set weapon Knife

 

//....history. hax0r just formated his pc and lost this file. -- blooddog

Link to comment
Share on other sites

I dont use MSN -_-

I dont play CS:S, I know how config files work because of Quake (same structure).

According to what I read, 'userconfig.cfg' is automatically executed when CS:S starts.. so all u need to do is to open 'userconfig.cfg' and add a line "exec god.cfg" at the beginning of the file.

 

Link to comment
Share on other sites

I dont use MSN -_-

I dont play CS:S, I know how config files work because of Quake (same structure).

According to what I read, 'userconfig.cfg' is automatically executed when CS:S starts.. so all u need to do is to open 'userconfig.cfg' and add a line "exec god.cfg" at the beginning of the file.

 

yea....I've already done it and it works ;)
Link to comment
Share on other sites

Hmmm u say all that u can only start/run/exec scripts from config.cfg and from there then all other but there is another pissibility there is a file "dont know the name of it, when i am @home i will look" from there u can run configs and dont need to put exec 1337g0dl1k3.cfg in your config.cfg

Link to comment
Share on other sites

(talking for cs 1.6) if you add the "exec custom.cfg" into the "config.cfg" it won't simply work...or it might work if you don't change any options in game

If you change any option in game the "config.cfg" will be overwritten by the original one and your "custom.cfg" won't open in the startup.

So here what I've did

The Config.cfg by it's self "tells" the userconfig.cfg(which is never overwritten) to be executed in the startup.So in my userconfig.cfg I added this line:

exec god.cfg

 

 

So that's all

PS:I sent you a PM...

Link to comment
Share on other sites

Yes because that all my settingz are in seperate configs...

 

What i dont like on your god.cfg is:

 

U first creat an alias and then u bind the key and exec the alias...

 

alias buy_ak47-m4a1 "ak47; m4a1; primammo; slot3"

bind KP_END "buy_ak47-m4a1"

 

When u got many Scripts its then to much text in your config...

Why do you dont try this version? (CSS only)

 

bind "KP_END" "buy weapon_ak47; buy weapon_m4a1; use weapon_knife"

 

Its only 1 Line and for unexperience people easier to understand.

 

But this is only my opinien

Link to comment
Share on other sites

aha...I'll try it...I thought I firstly had to create the alias and then bind the alias to a key(as I read in a guide)

edit:for prim/sec ammo I should use "buy weapon_primammo" or "buy primmamo" ?ah you said CSS

so in cs 1.6:

bind KP_END  "ak47; m4a1; primammo; use weapon_knife"

bind KP_DOWNARROW " vesthelm; vest; use weapon_knife"

bind KP_PGDN "deagle; secammo; use weapon_knife"

bind KP_LEFTARROW "hegren; flash;use weapon_knife"

bind KP_5 "awp;  primammo; deagle; secammo; use weapon_knife"

bind KP_INS "primammo; secammo; use weapon_knife"

 

Link to comment
Share on other sites

Sry Haxor buts its a long time ago tha i script for Cs 1.6 so i dont know anymore the right syntaxes.

Ok now i am @home and find the name of the file: valve.rc

 

CSS and i think in 1.6 its the same the valve.rc and config.cfg will started automaticly.

 

What means that for me:

 

I dont need anymore the config.cfg

I write only in the valve.rc "exec script.cfg" and then it will be started now can i delete or overwrite the config and all will work anymore.

 

I think the bug/cheat exist in 1.6:

Haxor try to put gl_monolight 1 in the valve rc and u can play on anyserver with it xD

Link to comment
Share on other sites

it works 100% on 1.6 i asked my friend

 

dont know it it works with non-steam

 

try it so:

 

gl_monolight "1"

 

When it works by u and u will play on a other server then u must quit 1.6 first and then start aigan otherwise it dident will work

Link to comment
Share on other sites

  • 5 months later...

or maybe check the links i posted on the general discussion forums bout binding , there is a program there that is rly rly easy to use and it automaticly bind your keys to what i want through a easy Gui

 

http://www.maxcheaters.com/forum/index.php?topic=17313.0  <--- for cs 1.6

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...