Xonotic Forums

Full Version: vcall for player colors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi peepZ

Is it possible to create a alias for a vcall on server for all players using only one player model but their own colors?

I.ve tried:
Code:
alias coloroff "sv_defaultplayercolors """
but it dosn.t work ... Tongue

When I done a sv_defaultplayercolors "" in server console it works - but I.ll make it available for everybody.
Normally the duel server starts with sv_fbskin_green 1.

Any ideas?

GreetZ Su
Being a real noob with regard to programming and syntax, I probably have no clue whatsoever, but it looks to me like you're closing the alias definition with the first " just after sv_defaultplayercolors, so the alias doesn't include the double " as it should. So it will be effectively only returning the value but not changing it. It might be you need to preface them with something like "\" but I don't know about the correct syntax.
Just try using single-quotes instead:

Code:
alias coloroff "sv_defaultplayercolors ''"
"sv_defaultplayercolors ' ' " results white player models Undecided

GreetZ Su
Why not force colors in menu?
it was a request by some players on server ...

atm I.ve 5 possibilities for "Votable Appearance" for players on server:
  1. - skinred
  2. - skingreen
  3. - skinorange
  4. - rainbow
  5. - skinoff

The request was how to enable one player model for all but they want to use their own choosen color .... so why not respond =)
GreetZ Su
Yeah well, but you can force model and colors in menu so everyone looks like you. Confused
dear Mirio Heart

I know how to force the player model in menu ...

But the request was to force all players to one player model and keep at last their personality of the player colors Exclamation

GreetZ Su
I am just saying that a player can do all this by himself. >: D

Code:
// =================================
// Playermodel options and aliases
// =================================
set _fullbright_model "models/player/megaerebus.iqm"
votable_alias sv_fbskin_model_megaerebus "_fullbright_model \"models/player/megaerebus.iqm\""
votable_alias sv_fbskin_model_erebus "_fullbright_model \"models/player/erebus.iqm\""

votable_alias sv_fbskin_unique "sv_defaultcharacter 1; sv_defaultplayermodel ${_fullbright_model}; sv_defaultplayerskin 1; sv_defaultplayercolors \"\""
votable_alias sv_fbskin_green "sv_defaultcharacter 1; sv_defaultplayermodel ${_fullbright_model}; sv_defaultplayerskin 1; sv_defaultplayercolors 51"
votable_alias sv_fbskin_red "sv_defaultcharacter 1; sv_defaultplayermodel ${_fullbright_model}; sv_defaultplayerskin 1; sv_defaultplayercolors 68"
votable_alias sv_fbskin_orange "sv_defaultcharacter 1; sv_defaultplayermodel ${_fullbright_model}; sv_defaultplayerskin 1; sv_defaultplayercolors 238"
votable_alias sv_fbskin_rainbow "sv_defaultcharacter 1; sv_defaultplayermodel ${_fullbright_model}; sv_defaultplayerskin 1; sv_defaultplayercolors 95"

// use sv_fbskin_unique by default
sv_fbskin_unique
yay - thank you very much Mirio - Big Grin - that it was Idea

Code:
alias coloroff "sv_defaultplayercolors \"\""

Now it works and is voteable for all

GreetZ Su
o.O I seem to have hit the spot Cool
yeah - you.re a sexy coolio one Cool

GreetZ Su
*gloat*
Halogene, I would like to subscribe to your newsletter!
Note that single quotes don't have any special meaning in the console, they're just characters. That is why zykure's suggestion did not work.