[CSS] Random Skin/Model Change
3 Attachment(s)
Description
Gives each player a random custom skin. You can specify between 1 to 8 separate models per team. When the plugin is enabled, the player is given a random model every spawn. Disabling the plugin will revert player models back to the standard CSS models. The models used can be changed by updating ini files and doing a map change. No plugin code modification required to change customs models used. *.mdl file names are extracted from model ini files. No CVAR's used. Comments, leading, and trailing white space allowed in ini files. Servers using this mod: http://www.game-monitor.com/search.p..._version=1.0.5 Compatibility I have tested and used this plugin on my server only
Files cstrike/addons/sourcemod/plugins/sm_skinapp.smx cstrike/addons/sourcemod/configs/models_ct.ini cstrike/addons/sourcemod/configs/models_t.ini Installation The two ini files below are configured for models from TechKnow's model site. See http://techknowmodels.19.forumer.com/index.php Unless you have these 4 models on your server, you MUST modify these file for the plugin to function.
This ensures that clients download the files required to render the models. Make sure you copy the files to you fastdownload web server and all filenames are correct. If you see big red ERRORS This means that the client can't find the model files specified. Check for typo's. Make sure client is able download missing files. Check your fast url server's logs. The model files should end up under this folder on the client: Code:
[Program Files]\Steam\SteamApps\[SteamUserName]\counter-strike source\cstrike Based upon TechKnow's masterchief Theme model changer plugin http://forums.alliedmods.net/showthread.php?t=77692 sm_masterchief based partially on Preds Menu Posted 2008 - 09/19 Meng maintains a Fork of TechKnow's plugin for applying custom skins to certain players (admins/bot/all) http://forums.alliedmods.net/showthread.php?t=98261 http://forums.alliedmods.net/showpos...0&postcount=17 Posted 2009 - 07/24 Uses SetEntityModel instead of SDK Calls, removing need for a custom gamedata file. Thanks DJ Tsunami for suggetion http://forums.alliedmods.net/showpos...2&postcount=10 Posted 2008 - 09/26 Commands sm_skinapp - Lists available commands and plugin status sm_skinapp 0 - Disable plugin and reset player models to game default now sm_skinapp 1 - Enable plugin; Changes models now if not waiting for map change sm_skinapp list - Lists models found in ini files Changelog 1.0.5 - 2009 - 12/06 Replaced SDK Calls with SetEntityModel Removed CVAR's Added code to match /\*\.mdl$/ in ini files Replaced code to strip trailing newline in ini file with TrimString Added code to support multiple models per team Added code to prevent model change without client download files Added reporting and minor error handling Added code to list models found 1.0 - 2008 - 09/19 TechKnow's original sm_masterchief.sp |
Re: [CSS] Random Skin/Model Change
hi my friend great idea currently using this on our server , i have one request for this , we use a few bots on our server and wondered if you wouldnt mind excluding them from this so they stay with the default skins.
Great work much appreciated best regards smithy |
Re: [CSS] Random Skin/Model Change
Quote:
/cstrike/addons/sourcemod/scripting Insert this on line 239 if (IsFakeClient(client_index)) return; Compile the revised sm_skinapp.sp and replace the sm_skinapp.smx in your plugins folder with the new one |
Re: [CSS] Random Skin/Model Change
We have an admin model plugin on our sever right now and are using 4 Christmas themed admin models (Santa, Grinch, MilitiaSanta and Jack Skellington) from Techknows site.
If I set this plugin up so we can have a Santa (CT model) vs Grinch (T model) round or 2 (by turning it on/off via the cvar), will it change admins models that are using the other 2 models I have and will it conflict with the admin model plugin I already have? |
Re: [CSS] Random Skin/Model Change
Quote:
Will anyone be excessively offended if you, the server operator, change their models for a few rounds? Also, you can modify this plugin to exclude admins. I think inserting this onto line 239 should do the trick: if (GetUserFlagBits(client_index) & ADMFLAG_CUSTOM5) return; |
Re: [CSS] Random Skin/Model Change
Hi my friend
I have tried altering the script with the suggestions u have made above , and i get these errors when trying to compile Code:
Code:
best regards smithy |
Re: [CSS] Random Skin/Model Change
Quote:
Loose Indentation Warnings are just that. They're not fatal, just add or remove tabs at the beginning of the line to make them go away. If you want to change the admin level, see http://docs.sourcemod.net/dox/_i_adm...48ec73af7b6815 |
Re: [CSS] Random Skin/Model Change
Quote:
best regards smithy |
Re: [CSS] Random Skin/Model Change
Quote:
I search and search and search i didnt found anything whats a Christmas Skin. Can you help me please ? |
Re: [CSS] Random Skin/Model Change
Code:
Error Vertex File for 'player/ct_urban.mdl' checksum 639885657 should be -1825505500 They all downloaded fine, it just isn't loading. Probably doing something wrong, I tried to change all the models to this; http://www.fpsbanana.com/skins/71393 models_ct.ini Code:
models/shogunner_equals_fat/chubby_heads/ct_gign.dx80.vtx Code:
models/shogunner_equals_fat/chubby_heads/t_arctic.dx80.vtx |
All times are GMT -4. The time now is 02:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.