TSGK Clan Forum Forum Index TSGK Clan Forum
Half-Life 2 : Deathmatch TSGK Clan forum.
 
 CalendarCalendar   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

dablackdude989
March 27 1992 (32 year old)
JaMac
March 30 1981 (43 year old)
Vengeance_TSGK
April 01 1990 (34 year old)
 TSGK Member 
Calendar
Calendar Calendar
Wed 27 Mar 2024 Thu 28 Mar 2024 Fri 29 Mar 2024 Sat 30 Mar 2024 Sun 31 Mar 2024 Mon 01 Apr 2024 Tue 02 Apr 2024
Birthday dablackdude989  
 
 
Birthday JaMac  
 
Birthday Vengeance_TSGK  
 
The time now is Thu Mar 28, 2024 23:36
All times are UTC + 2 (DST in action)
 Forum index » TSGK General » Tips & Tricks
Multiple binds to one key
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
gtamike_TSGK
TSGK Member


Joined: 20 Aug 2006
Posts: 2991
Location: Mapper since 2007 YouTube: gtamikesvideos
Country:
Browser:
Age: 34

PostPosted: Sat Jul 24, 2010 19:43    Post subject:  Multiple binds to one key
Subject description: e.g. chat message and name change with 1 key
 

Multiple binds to one key

Today I wanted to display a chat message ingame and have my name changed at same time.
So I setup 2 binds for each of the commands but the spam chat message blocked it on server.

Here's a work around I just found Cool

Add this line to your "autoexec.cfg" in the "cfg folder" (If you don't have a autoexec.cfg file you need to make one or download my e.g file)

Code:
bind "f" "exec autoexec2"

Note change the "f" to any key you wish.

Now make another .cfg file in the "cfg folder" called autoexec2.cfg

Open it with a text editing tool like notepad.
Then add this code in

Code:
say Hello
name my_ingame_name_here


I've added the 2 .cfgs in attachment if you just want to edit them or test. Wink

You can change the 2 commands to anything you want E.G. Network settings.
I've only tested with 2 commands in the autoexec2.cfg, but should work fine if you want more than 2 commands.

Enjoy
change_name_test.jpg
 Description   Multiple binds to one key
 Filesize   89.81 KB
 Viewed   318 Time(s)

change_name_test.jpg

cfg.zip
Description 
zip

 Download 
Filename  cfg.zip 
Filesize  302 Bytes 
Downloaded  471 Time(s) 

_________________
http://gamebanana.com/members/215600
https://www.youtube.com/c/gtamikesvideos
Public OneDrive (My Maps/Download)
https://onedrive.live.com/?id=3BA901DF57014CE8%21110&cid=3BA901DF57014CE8

Last edited by gtamike_TSGK on Thu Jul 29, 2010 18:21; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger 
Ade


Joined: 28 Jul 2009
Posts: 78
Location: Iasi, Romania
Country:
Browser:
Age: 38

PostPosted: Sun Jul 25, 2010 19:43    Post subject:  

uhm.. google "hl2dm alias bind"
_________________

Back to top
View user's profile Send private message 
gtamike_TSGK
TSGK Member


Joined: 20 Aug 2006
Posts: 2991
Location: Mapper since 2007 YouTube: gtamikesvideos
Country:
Browser:
Age: 34

PostPosted: Sun Jul 25, 2010 19:53    Post subject:  

Ade wrote:
uhm.. google "hl2dm alias bind"

Not been posted here before and will be useful for others.

Last edited by gtamike_TSGK on Mon Jul 26, 2010 16:28; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger 
Ade


Joined: 28 Jul 2009
Posts: 78
Location: Iasi, Romania
Country:
Browser:
Age: 38

PostPosted: Mon Jul 26, 2010 14:54    Post subject:  

didn't get what ur sayin Razz
I just wanted to say alias is better than making tons of files, especially if the script or w/e is only 2 lines long, u can easily put it in the normal cfg file

_________________

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » TSGK General » Tips & Tricks
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
You cannot post calendar events in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2369s ][ Queries: 17 (0.0117s) ][ Debug on ]