Xonotic Forums
[SOLVED] vcall for player colors - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16)
+--- Thread: [SOLVED] vcall for player colors (/showthread.php?tid=4759)



vcall for player colors - -maniac|Su- - 02-06-2014

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


RE: vcall for player colors - Halogene - 02-06-2014

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.


RE: vcall for player colors - zykure - 02-06-2014

Just try using single-quotes instead:

Code:
alias coloroff "sv_defaultplayercolors ''"



RE: vcall for player colors - -maniac|Su- - 02-06-2014

"sv_defaultplayercolors ' ' " results white player models Undecided

GreetZ Su


RE: vcall for player colors - Mirio - 02-06-2014

Why not force colors in menu?


RE: vcall for player colors - -maniac|Su- - 02-06-2014

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


RE: vcall for player colors - Mirio - 02-06-2014

Yeah well, but you can force model and colors in menu so everyone looks like you. Confused


RE: vcall for player colors - -maniac|Su- - 02-06-2014

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


RE: vcall for player colors - Mirio - 02-06-2014

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



RE: vcall for player colors - -maniac|Su- - 02-06-2014

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


RE: vcall for player colors - Halogene - 02-07-2014

o.O I seem to have hit the spot Cool


RE: vcall for player colors - -maniac|Su- - 02-07-2014

yeah - you.re a sexy coolio one Cool

GreetZ Su


RE: vcall for player colors - Halogene - 02-07-2014

*gloat*


RE: vcall for player colors - Antibody - 02-07-2014

Halogene, I would like to subscribe to your newsletter!


RE: vcall for player colors - Mr. Bougo - 02-09-2014

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.