Custom selection of allowed player models

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Custom selection of allowed player models

Postby MirceaKitsune » Thu Aug 27, 2009 8:08 pm

Long story short, I want to make a dedicated server where players may only wear some player models from a package file. I have a .pk3 with a few characters and want only them to be wearable on my server (if someone is wearing a default character from Nexuiz be forced to a character from my .pk3, but also allowed to change to any of the characters in my package).

I know how to force all players to the same player model, but not how to restrict player models to a custom selection of allowed characters. I also need my pack to be downloaded to everyone who enters the server of course... must that be specified separately or does the whole pk3 download automatically when a file from it is requested? Thanks.
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby divVerent » Fri Aug 28, 2009 6:12 am

Unknown models use a hardcoded replacement to Marine. You cannot disallow that one.

Any other one can be deleted locally, if you use a svn checkout, and then the server will replace it by Marine.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby MirceaKitsune » Fri Aug 28, 2009 7:49 am

Hmm... I remember Marine being the default model was a cvar in some cases. I think it would be useful to make it one if that would be agreed on, since it may want be changed in different situations. I have to leave for a few weeks today and won't be able to code, so I made a quick patch to address this here (I marked it as 2.5.2 but if it's too late for that it can be saved for 2.5.3).

As for deleting the others locally, I'd prefer not doing that since it's the same install I use to play. Was wondering if instead there could be a way to block only the dedicated server from accessing them (like a cvar or cmd to forbid the server to do so). If not I'll use a different install without them, thanks :)
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby k0jak » Fri Aug 28, 2009 3:10 pm

MirceaKitsune sent you a PM if you could read and reply to me asap would be great help, thanks!
:]

Image

kojn translates into horse.

Signature Pic based on UT-Clan Mates describing trying to spam me and getting confused which routes I take :D
k0jak
Forum addon
 
Posts: 1103
Joined: Tue Feb 28, 2006 11:36 pm


Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron