| [Help]Script for changing colors in the name | |
|
|
Author | Message |
---|
Growl Side Admin
Posts : 980 Join date : 2008-07-20 Location : Germany
| Subject: [Help]Script for changing colors in the name Mon Jan 05, 2009 5:11 am | |
| Hello You all know that i am a damn noob in those script things. But i am not to proud to ask for your help^^ I would like to change my name during game, but only the colors...so make the 666 sometimes red, green, yellow...everything The best thing would be if it changes in a fix time. Maybe every 5 seconds it goes to the next color. Also ok, but not that cool(because too hectic) if i bind it to one of my keys...maybe fire and rope Problem is also: you can only change your name every 5 seconds Can u help me? I tried bind p "toggle name a, b, c" I wanted to name first a, then b and then c...but i get an error Thats a poor try i know, but i am sure someone here can help me i figured out it works with the alias command. but how to do this? Now i have: alias +ch_name "name a;wait;+attack" alias -ch_name "name b;wait;+attack" bind p ch_name result: a name b With regards Growl
Last edited by Growl on Mon Jan 05, 2009 5:43 am; edited 1 time in total | |
|
| |
lost Side Admin
Posts : 1417 Join date : 2008-06-12 Location : England
| Subject: Re: [Help]Script for changing colors in the name Mon Jan 05, 2009 5:38 am | |
| This bind works...
bind n "toggle _cl_name ^0Gr^1o^0wl^1[^0666^1] ^0Gr^2o^0wl^2[^0666^2] ^0Gr^3o^0wl^3[^0666^3]"
You can't really bind it to your attack keys tho, as you can only change name once in 5 seconds... | |
|
| |
Growl Side Admin
Posts : 980 Join date : 2008-07-20 Location : Germany
| Subject: Re: [Help]Script for changing colors in the name Mon Jan 05, 2009 5:46 am | |
| any chance to make 5 second brakes into it?
But it works....thats nice already =)
Now its on the n-key
how to put it on fire? together with the primary fire? This won't slow down my game or even the server, wont it?
my try:
alias „attack+name“ „toggle _cl_name ^0Growl^1[666] ^0Growl^2[666] ^0Growl^3[666] ^0Growl^4[666] ^0Growl^5[666]; +attack „ bind MOUSE1 „attack+name"
doesn't work....first it says unknown cvar "attack+name" then i retype the alias line in my console and i can't join a game anymore... but it changes my name..
last time it worked ingame, my nex started to fire instantly and didn't stopped until i had no more ammo | |
|
| |
lost Side Admin
Posts : 1417 Join date : 2008-06-12 Location : England
| Subject: Re: [Help]Script for changing colors in the name Mon Jan 05, 2009 11:49 am | |
| Put this in autoexec.cfg (config.cfg wont save it): - Code:
-
alias colorz "toggle _cl_name ^1lost ^2lost ^3lost" alias loop "colorz; defer 6 loop" Just enter 'loop' & it'll toggle colour every 6 seconds (more reliable than 5). | |
|
| |
Growl Side Admin
Posts : 980 Join date : 2008-07-20 Location : Germany
| Subject: Re: [Help]Script for changing colors in the name Mon Jan 05, 2009 8:55 pm | |
| Thanks m8, you are a genious works great little update: I put a "defer 10 loop" in front of the code and now it works when u enter a game automatically | |
|
| |
Growl Side Admin
Posts : 980 Join date : 2008-07-20 Location : Germany
| Subject: Re: [Help]Script for changing colors in the name Tue Jan 06, 2009 2:07 am | |
| If anyone interested. Download this Autoexec.cfg and put it into your nexuiz/data folder If u already have an autoexec file, just add the code into it. Change the names in it, the time if u dont like 6 second breaks. And decide if u want to keep the model change also Changing name colors and player modelThe defer command changes the time between sending the commands | |
|
| |
painless Inactiv Clan Member
Posts : 742 Join date : 2008-11-13 Location : Italy
| Subject: Re: [Help]Script for changing colors in the name Tue Jan 06, 2009 2:32 am | |
| defer 10 loop alias colorz "toggle _cl_name ^7–aiŒ^0Ães”^7ê^0∂^7∂^0∂^7ë ^1–aiŒ^4Ães”^1ê^40∂^1∂^4∂^1ë ^2–aiŒ^3Ães”^2ê^3∂^2∂^3∂^2ë ^8–aiŒ^9Ães”^0ê^8∂^9∂^8∂^0ë ^0–aiŒ^1Ães”^4ê^8∂^2∂^8∂^4ë" alias loop "colorz; defer 10 loop" | |
|
| |
lost Side Admin
Posts : 1417 Join date : 2008-06-12 Location : England
| Subject: Re: [Help]Script for changing colors in the name Tue Jan 06, 2009 12:26 pm | |
| Some more craziness for you: - Code:
-
set cc $_cl_color alias orig "color $cc" alias blue "color 13" alias red "color 4" alias green "color 3" alias cycle "blue; defer 0.1 red; defer 0.2 green; defer 0.3 orig" bind MOUSE1 " attack; cycle" To stop it just enter alias cycle "" & to restart enter exec autoexec.cfg. Same goes for Growls, tho it's loop instead of cycle. | |
|
| |
Growl Side Admin
Posts : 980 Join date : 2008-07-20 Location : Germany
| Subject: Re: [Help]Script for changing colors in the name Tue Jan 06, 2009 10:05 pm | |
| don't use lost's script in ctf, u will kill yourself, because the game thinks u want to change teams I think same goes for TDM...so only useable in DM-games | |
|
| |
lost Side Admin
Posts : 1417 Join date : 2008-06-12 Location : England
| Subject: Re: [Help]Script for changing colors in the name Tue Jan 06, 2009 10:13 pm | |
| What are these things you speak of? | |
|
| |
Growl Side Admin
Posts : 980 Join date : 2008-07-20 Location : Germany
| Subject: Re: [Help]Script for changing colors in the name Tue Jan 06, 2009 10:46 pm | |
| DM = Deathmatch TDM = The Deathmatch CTF = Wrong spelling of Deathmatch dunno why ppl make things so complicated | |
|
| |
lost Side Admin
Posts : 1417 Join date : 2008-06-12 Location : England
| |
| |
od@r
Posts : 256 Join date : 2008-11-24 Location : Slovakia
| Subject: Re: [Help]Script for changing colors in the name Sat Jan 17, 2009 8:25 pm | |
| thanks guys,looks nice | |
|
| |
Sponsored content
| Subject: Re: [Help]Script for changing colors in the name | |
| |
|
| |
| [Help]Script for changing colors in the name | |
|