Raised This Month: $32 Target: $400
 8% 

[DoD:S] Hats


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Plugin ID:
3359
Plugin Version:
1.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Attaches specified models to players above their head
Old 11-09-2012 , 10:12   [DoD:S] Hats
Reply With Quote #1

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
Attached Files
File Type: ini downloads_simple.ini (267 Bytes, 582 views)
File Type: ini downloads.ini (5.4 KB, 381 views)
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot

Last edited by Root_; 01-24-2014 at 17:35.
Root_ is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-09-2012 , 10:28   Re: [DoD:S] Hats (beta)
Reply With Quote #2

Does the Hats plugin not work in DoD:S?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 11-09-2012 , 10:31   Re: [DoD:S] Hats (beta)
Reply With Quote #3

Cool. Finally Hats for the Axis ^^

I am glad, that you are still developing for DODS Root_

Where can I get the models, you have predefined in the hats.cfg? Would be nice, if you attache them


EDIT
Quote:
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
-I've attached a downloader config. Put this in configs/ folder and set sm_downloader_normal 0; sm_downloader_simple 1
Sorry ^^

__________________

Last edited by micazoid; 11-09-2012 at 10:35.
micazoid is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 11-09-2012 , 10:58   Re: [DoD:S] Hats (beta)
Reply With Quote #4

Powerlord that plugin is not working because DoD:S dont have an generic attachment 'forward'
Also I wanted a hats plugin with more functions
Quote:
Originally Posted by micazoid View Post
I am glad, that you are still developing for DODS
You are welcome! Feel free to request something dods-related and i'll try to create a plugin while I have some time
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 11-13-2012 , 17:35   Re: [DoD:S] Hats (beta)
Reply With Quote #5

Some screenshots
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	827
Size:	18.0 KB
ID:	112132   Click image for larger version

Name:	2.jpg
Views:	818
Size:	17.3 KB
ID:	112133   Click image for larger version

Name:	3.jpg
Views:	728
Size:	17.3 KB
ID:	112134   Click image for larger version

Name:	4.jpg
Views:	835
Size:	17.5 KB
ID:	112135  
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 11-14-2012 , 03:46   Re: [DoD:S] Hats (beta)
Reply With Quote #6

add unusual effects %D
Leonardo is offline
Happy DODs player
AlliedModders Donor
Join Date: Sep 2009
Old 11-14-2012 , 13:33   Re: [DoD:S] Hats (beta)
Reply With Quote #7

Looks pretty sweet.,

Will install this on my Fun_server
Happy DODs player is offline
benarnold
New Member
Join Date: May 2013
Old 05-03-2013 , 19:23   Re: [DoD:S] Hats (beta)
Reply With Quote #8

Any updates on this plugin ?, I run it on my server until the last steam update now all hats are in strange position and it conflicting with parachute mod as well. Love this plugin
benarnold is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 05-06-2013 , 09:32   Re: [DoD:S] Hats (beta)
Reply With Quote #9

benarnold, yeah I'll update this plugin soon... I just need beta testers to fix bugs
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
cushycush
Junior Member
Join Date: Oct 2012
Old 07-05-2013 , 18:27   Re: [DoD:S] Hats (beta)
Reply With Quote #10

tnx root! this plugin works great for me just i need it so spectators can't have hats cuz when they use hats on spectate the spectated player has a hat blocking his vision sometimes.
cushycush is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode