What to say? It's hats. Hats are everywhere
This plugin is based on
hats plugin by
Silvers, so all the credits goes to him.
ConVars:
dod_hats_enable = Whether or not enable DoD:S Hats plugin
dod_hats_admflag = Add specified admin flag name or blank to allow all players access to the hats menu
dod_hats_opaque = How transparent or solid should the hats appear: 0 = Translucent, 255 = Opaque
dod_hats_random = Whether or not attach a random hat when player is respawning (saved hats will be ignored)
dod_hats_save = Whether or not save player's selected hats and attach when they spawn or rejoin the server
Commands:
sm_hat /
sm_hats = Displays a menu of hats allowing players to change what they are wearing
sm_hatoff = Toggle to turn on or off the ability of wearing hats
sm_hatshow /
sm_hatview = Reload hats configuration file
Admin commands ('z' flag is required):
sm_hatreload = Reload hats configuration file
sm_hatoffc /
sm_hatblock = Toggle the ability of wearing hats on specific players
sm_hatc /
sm_hatchange = Displays a menu listing players, select one to change their hat
sm_hatrandom /
sm_hatrand = Randomizes all players hats
sm_hatadd = Adds specified model to the config (must be the full model path)
sm_hatdel /
sm_hatdelete = Removes a model from the config (either by index or partial name matching)
sm_hatlist = Displays a list of all the hat models (for use with sm_hatdel)
sm_hatsave = Saves the hat position and angels to the hat config
sm_hatload /
sm_hatforce = Changes all players hats to the one you have
sm_hatang /
sm_hatangles = Shows a menu allowing you to adjust the hat angles (affects all hats/players)
sm_hatpos /
sm_hatorigin = Shows a menu allowing you to adjust the hat position (affects all hats/players)
sm_hatsize = Shows a menu allowing you to adjust the hat size (affects all hats/players)
Requirements:
More Colors (for compilation)
Updater (to keep plugin always up-to-date and for compilation)
Adding hats:
-To add more hats in config go to addons/sourcemod/configs folder and open dod_hats.cfg file.
-If you will add hats ingame, make sure server have a custom (if avalible) hat model and (custom) model is downloaded & precached!
Notes:
-Only 64 hats are supported
-sm_hatshow/sm_hatview commands will toggle thirdperson view
-Admin flag may not work if you manage admins by sourcebans
-To edit hat size, hat position and angles I'd recommend to select hat, force to all clients and do stuff via appropriate commands
-Not all models can be resized!
-Plugin will ignore client preferences if dod_hats_random = 1
ToDo:
-Add categories, like glasses etc
-Add team restrictions
-Add more hats
-Other suggestions?
Other:
-You can get hats
from garrysmod.org site. However 1/3 hats are unused from this pack
-You can download pack of used hats from
here. And if you have a fastdownload url, upload
this to your http server
Servers with this plugin
Download plugin
Browse source code