Prophets - European Nexuiz & Xonotic Clan
Would you like to react to this message? Create an account in a few clicks or log in to continue.


.::: European Nexuiz & Xonotic Clan .:::. Best Frags & Finest Movements since Jan. 2009 :::.
 
HomePortalGallerySearchLatest imagesMemberlistRegisterLog in

 

 [Help]Script for changing colors in the name

Go down 
4 posters
AuthorMessage
Growl
Side Admin
Growl


Posts : 980
Join date : 2008-07-20
Location : Germany

[Help]Script for changing colors in the name Empty
PostSubject: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeMon Jan 05, 2009 5:11 am

Hello Smile

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
Back to top Go down
lost
Side Admin
lost


Posts : 1417
Join date : 2008-06-12
Location : England

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeMon 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...
Back to top Go down
https://prophets.aforumfree.com/
Growl
Side Admin
Growl


Posts : 980
Join date : 2008-07-20
Location : Germany

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeMon 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
Back to top Go down
lost
Side Admin
lost


Posts : 1417
Join date : 2008-06-12
Location : England

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeMon 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). Wink
Back to top Go down
https://prophets.aforumfree.com/
Growl
Side Admin
Growl


Posts : 980
Join date : 2008-07-20
Location : Germany

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeMon Jan 05, 2009 8:55 pm

Thanks m8,

you are a genious Very Happy

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
Back to top Go down
Growl
Side Admin
Growl


Posts : 980
Join date : 2008-07-20
Location : Germany

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeTue 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 model

The defer command changes the time between sending the commands
Back to top Go down
painless
Inactiv Clan Member
painless


Posts : 742
Join date : 2008-11-13
Location : Italy

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeTue 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"
Back to top Go down
lost
Side Admin
lost


Posts : 1417
Join date : 2008-06-12
Location : England

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeTue 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.

What a Face
Back to top Go down
https://prophets.aforumfree.com/
Growl
Side Admin
Growl


Posts : 980
Join date : 2008-07-20
Location : Germany

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeTue 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 Wink
I think same goes for TDM...so only useable in DM-games
Back to top Go down
lost
Side Admin
lost


Posts : 1417
Join date : 2008-06-12
Location : England

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeTue Jan 06, 2009 10:13 pm

What are these things you speak of?
Back to top Go down
https://prophets.aforumfree.com/
Growl
Side Admin
Growl


Posts : 980
Join date : 2008-07-20
Location : Germany

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeTue Jan 06, 2009 10:46 pm

DM = Deathmatch
TDM = The Deathmatch
CTF = Wrong spelling of Deathmatch

dunno why ppl make things so complicated scratch
Back to top Go down
lost
Side Admin
lost


Posts : 1417
Join date : 2008-06-12
Location : England

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeTue Jan 06, 2009 11:53 pm

Thx Marc Smile


lol!
Back to top Go down
https://prophets.aforumfree.com/
od@r

od@r


Posts : 256
Join date : 2008-11-24
Location : Slovakia

[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitimeSat Jan 17, 2009 8:25 pm

thanks guys,looks nice Very Happy
Back to top Go down
http://nknexuiz.slovakforum.net/
Sponsored content





[Help]Script for changing colors in the name Empty
PostSubject: Re: [Help]Script for changing colors in the name   [Help]Script for changing colors in the name Icon_minitime

Back to top Go down
 
[Help]Script for changing colors in the name
Back to top 
Page 1 of 1
 Similar topics
-
» dem2vid bash script

Permissions in this forum:You cannot reply to topics in this forum
Prophets - European Nexuiz & Xonotic Clan :: Gameplay & Tweaks :: Scripture-
Jump to: