iconberg Jul 29 @ 11:24am
Cant change my config.cfg
just with steam cloud turned off it gets overwritten. I just want to make own chat bindings.
The only mod i found contains cheats and dont look trusty and i dont want to use it.

Any idea how to slove this?
Showing 1-15 of 23 comments
< >
iconberg Jul 29 @ 11:41am 
Ah, nevermind, it dont like every key, and change it back, ~ is one of them.
I V O R K Jul 30 @ 3:18am 
Else you could just make a .cfg file with
bind z +left
bind x +right
bind v "say !dlr;btk;sm_b;buy;xpm"
etc etc and just re-execute that each time or stick it in your autoexec if you really don't want to use the cloud.
Last edited by I V O R K; Jul 30 @ 3:18am
I V O R K Jul 30 @ 3:20am 
Additionally any VPK mod (steam workshop or otherwise) won't get you VAC banned or anything of the sort.
iconberg Jul 30 @ 7:56am 
Originally posted by I V O R K:
Else you could just make a .cfg file with
bind z +left
bind x +right
bind v "say !dlr;btk;sm_b;buy;xpm"
etc etc and just re-execute that each time or stick it in your autoexec if you really don't want to use the cloud.

Thanks for the answer. Was searching for msg, message, chat, teamchat, ...
Didnt guess "say" is the command for chat :D

Can you answer me one question more, i cant find an if-condition.
It is not possible to check a variable and say "hip" or "hop"?
I V O R K Jul 30 @ 9:44am 
I don't really follow what you're asking sorry... You can bind multiple commands to one key ie
Bind h "cl_interp 0.00166; cl_interp_ratio 0.00166; say !ready"
If that's what you meant...
Last edited by I V O R K; Jul 30 @ 10:27am
I V O R K Jul 30 @ 9:46am 
Oh, right.. re-read that... you mean to check the value of a cvar then print into chat based on its value?

TL;DR: No.
Not from the ingame/through script.cfgs

I would just type the variable into console and that will print back its value. ie
]sv_alltalk
sv_alltalk = 1 (def. = 0)

Just out of interest why would you want such an option anyway?
Last edited by I V O R K; Jul 30 @ 9:50am
iconberg Jul 30 @ 9:57am 
For my last massive online game that i played for years, i have shortcuts for chat on my numeric pad for both races, humans and beasts, for different level of alert. For example, if i press 1 as beast i say "care, sniper out there", the same key as human tells "care, lighting up here". Or i press 3 for incoming enemy, and the next key 1, 2 or 3 gives how much enemy income, it forms a sentence and send it. Or i give enemy and a direction that forms to a sentence that i send.

So if i understand it is only possible with a real mod?
I V O R K Jul 30 @ 10:13am 
Only by mod UNLESS you use separate configs to rebind those keys and also have a key to toggle inbetween survivor and infected.

ie
bind end "exec infected"
//infected.cfg
bind end "exec survivor"
Bind num1 "say_team hold your spawn & sync up pls"
Etc
Etc
Etc
//survivor.cfg
Bind end "exec infected"
Bind num1 "say_team Stick together team pls"
Etc
Etc
Etc

But in my 3000hr experience, you don't really need that sort of text bind communication unless you play competitively (above pub level) and have no way in the world of using a microphone.

Hope it helps brah.
Last edited by I V O R K; Jul 30 @ 10:19am
I V O R K Jul 30 @ 10:30am 
And as far as I am aware, mods like that haven't been created either
iconberg Jul 30 @ 10:52am 
Thanks for your answer again. :)

Well, i see and try out what can i get out of reload bindings. Perhaps in combination with user values i can increase usage.

Yes, in the first moment it makes not big sence, special if you want to play competitively. But i didnt want it for that, iam out of clanlife, to old for that, it costs too much time. I want too used it on public games with normal players, support my team with infos and better informations. It will help newbies to get faster and easier into the game.

I would like to try things like that, to give l4d example:

num 1: Letz prepare area for incoming tanks, <playername 1> and <playername 2> please fetch fuels and lay it down in the probably way for tanks. <playername 3> please come with me getting and settup incernate ammo.

num 2: <check player health and items and make advise> <playername x> dont forget to use meds.

num 3: Going to help <playername under cursor> up, massive attack incoming, <playername x> please cover me. <Or if a player has boomer in items> <Player y> please throw boomer to disctract the horde.

I didnt find the voicecommands very useful, but with good chat or i combination of chat and voicecommands it increase gameplay.

And i must say i never was a fan of headsets :D
I V O R K Jul 30 @ 11:02am 
To my knowledge anything that needs I/O from the game itself would have to be a mod or server plugin I'm afraid. And I honestly can't name any that perform as you describe so assume it isn't possible with this engine sorry.

But goodluck
Last edited by I V O R K; Jul 30 @ 11:05am
iconberg Jul 30 @ 11:14am 
Thanks, lucky i found my red string at valve: https://developer.valvesoftware.com/wiki/L4D2_Vscripts
I guess i can get into it.


The workshop is really bad categorized, every 2nd mod comes up under script, even if it has nearly nothing to do with it :D
scintillating luminescence Jul 30 @ 12:48pm 
Don't modify config.cfg yourself, the game touches that one. For example if you go into console and type "bind p +attack", when you quit the game, the engine will make sure that your new binding for p was stored in config.cfg

If you want to add your own binds, I recommend adding them to autoexec.cfg which is automatically executed by the engine for you.

Also, there is no "if" condition for Source client-side scripting. The best you can get is alias.

A good example is the Null Canceling Movement Script. I didn't come up with this script, but it's a good example of using aliases. The purpose of this specific script is to make it so when you press strafe left, and then strafe right, you move to the right instead of standing still.

bind w +mfwd
bind s +mback
bind a +mleft
bind d +mright

alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""

For example, you press w, which executes +mfwd command. This executes -back (if you were moving forward, you stop), then +forward (if you weren't moving forward, you are now), and then it aliases checkfwd to be +forward (for later...). When you release w, it executes the -mfwd command. This executes the -forward (you stop moving forward), the checkback alias (which is none right now and therefore does nothing), and then it sets the checkfwd alias to none.

Now consider if you press w (+mfwd), then you press s (+mback). +mback will execute -forward, +back, and alias checback to be +back. So this stopped you from moving forward and started you moving backwards.

Then you release s (-mback). This will execute -back, and then the checkfwd alias. Remember that +mfwd set the checkfwd alias to +forward! The checkfwd alias "remembers" that we were moving forward and restores that motion when we release s. And if we weren't pressing w, checkfwd would be none, and it would do nothing.

---

Many mods for this game involve modifying script files inside vpks. For example, there are text scripts that declare which melee weapons are available on which campaign.
iconberg Jul 30 @ 1:29pm 
Must be an infected haxor brain which figured this out :D
But it is still useful, a way to store a command if another is executed.

Thanks for sharing and explain this script, scintillating luminescence.
scintillating luminescence Jul 31 @ 10:10am 
My pleasure.

Using this technique, you could avoid executing binds all the time. For example

bind KP_END SomeAlias
bind KP_DOWN SomeAlias2

Now you can have

alias FriendlyAlias "alias SomeAlias say hi; alias SomeAlias2 say bye"
alias CombatAlias "alias SomeAlias say attack; alias SomeAlias2 say defend"

And now you can swap whole sections of keys in one stroke.

bind KP_DIVIDE FriendlyAlias
bind KP_MULTIPLY CombatAlias

Now you can press * on the keypad when you're fighting, and / when you're not. And you can always use keypad 1 and 2 for the same things.
Showing 1-15 of 23 comments
< >
Per page: 15 30 50