Is it possible to pick character based on profile name?


(felixmvg) #1

Hello everyone,

I hope I am posting this query in the proper place. If not, my humble apologies in advance!

Quick question about making a possible change to Enemy Territory:

Up until now I’ve been dabbling with the pk3 files and making low-level type changes; adding sounds, adding custom graphics to levels, that kind of thing. Recently, we got to thinking about how it would be nice if we could actually have the server determine the character (graphics - specifically the head) to use based on the profile name of the player. So, put it another way, instead of the stock ‘cvops’, ‘medic’, ‘soldier’ definitions that can be found in “characters/temperate/<side>/<class>.char” I would like to know if you can add code to one of the scripts somewhere that would check the profile name of the player and based on the profile name, either:

  1. Use the ‘generic’ characters
  2. Use a customized character, i.e. a custom head placed on an existing class

I know how to do the actual graphics manipulation, and would be able to add the char sections. I just don’t know if it possible to make a determination based on profile name?!

Any help would be appreciated, right down to “No, you moron it is not possible” or the more eagerly anticipated “Sure dummy, you need to edit this script…”.

Thanks!

Felix


(kamikazee) #2

It needs a mod, afaik.

A few mods have it, like the upcoming FalckonET release and the upcoming No Quarter mod.


(carnage) #3

you would need to prgram and by the sounds of it you would need some kind of extra .UI and posible to save more options in player configs

changing apearance based on profile name would be posible with code buts it more likely that players would want some kinda of options where they chose things and then this leads to the posibilty of saving this information within the player config so you say set ur apearance in the main menu then its the same on all servers