AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Hats! (Version 1.0.4c - 2/19/2012) (https://forums.alliedmods.net/showthread.php?t=174714)

Zephyrus 12-24-2011 05:32

[ANY] Hats! (Version 1.0.4c - 2/19/2012)
 
5 Attachment(s)
No cookies for TF2 players, go away!

I promised I would release this for everyone today. Some of you may know my more powerful hats plugin but this is a rewrite from scratch for all you guys who were asking for this.

Make sure to use latest SDKHooks.

Features:
-Ability to add custom hats
-Ability to restrict a hat for specific flags
-Checks whether the model supports hats
-Works with databomb's ToggleEffects (it's optional) :3
-Hats won't disappear after death (idea stolen from Peace-Maker :3)
-Ability to create categories like glasses, hats, moustaches, etc.
-Set default hat for everyone

Upcoming features:
-Ability to set positio of the hats/restrict them for every model individually (1.0.5)
-A few natives for other plugins (1.0.5)
-A way to detect when someone's model changed and remove the hat if the new model doesnt support them (no forward bone)
-Hats based on date (for example for holidays)
-Random option in the menu

How to add new stuff:
Code:

    "HAT NAME"
    {
            "model"        "MODEL PATH RELATIVE TO CSTRIKE"
            "position"    "<x> <y> <z>"
            "angles"    "<pitch> <yaw> <roll>"
            "flag"  "LEAVE THIS BLANK TO MAKE IT PUBLIC"
            "team" "<0=All/2=Terrorist/3=Counter-Terrorist>
    }


Where to get hats:

The example config has about 30 hats. You can get the models from here:
http://www.garrysmod.org/downloads/?a=view&id=97791
Also you can find awesome hats on http://garrysmod.org.

Install:
-sm_hats.sp goes to scripting
-sm_hats.smx goes to plugins
-hats.txt goes to configs
-hats.gamedata.txt goes to gamedata

What about downloads table?
Use SM File/Folder Downloader and Precacher because it's awesome and it's way more nicer to have all your downloads handled by only one plugin.
http://forums.alliedmods.net/showthread.php?t=69005

ConVars:
sm_hats_remove 0/1 - Whether to remove hats on death

Commands:
sm_hats_default <category id> <model path> - Category ID is the number of the category in the hats.txt and it starts from 0

Changelog:
1.0.4c - Fixed a bug, Zombie Reloaded support
1.0.4b - Fixed a bug
1.0.4 - Crash fixed, thanks for Karnatos for pointing in the right direction, added new features
1.0.3 - Bug fixes, new feature
1.0.2 - Fixed a small bug again
1.0.1 - Fixed a small bug
1.0.0 -Initial release

Is there anything else?
http://images.sodahead.com/polls/001..._2_xlarge.jpeg

secu2 12-24-2011 06:05

Re: [ANY] Hats!
 
AwwwwwwSome, you rule!

Testing it immediatly.

Edit: Works very well, just one thing, it doesn't reapear at each round, your must select a new hat at every round.

Zephyrus 12-24-2011 07:34

Re: [ANY] Hats!
 
Quote:

Originally Posted by secu2 (Post 1618784)
AwwwwwwSome, you rule!

Testing it immediatly.

Edit: Works very well, just one thing, it doesn't reapear at each round, your must select a new hat at every round.

hmm it should

poppin-fresh 12-24-2011 07:39

Re: [ANY] Hats!
 
[SM] Native "PrintToChat" reported: String formatted incorrectly - parameter 3 (total 2)
[SM] Displaying call stack trace for plugin "sm_hats.smx":
[SM] [0] Line 143, sm_hats.sp::Command_Hats()

Zephyrus 12-24-2011 07:43

Re: [ANY] Hats!
 
Quote:

Originally Posted by poppin-fresh (Post 1618818)
[SM] Native "PrintToChat" reported: String formatted incorrectly - parameter 3 (total 2)
[SM] Displaying call stack trace for plugin "sm_hats.smx":
[SM] [0] Line 143, sm_hats.sp::Command_Hats()

oh, lame, fixed:3

edit: also i probably fixed that next round thingy

secu2 12-24-2011 08:35

Re: [ANY] Hats!
 
Quote:

Originally Posted by Zephyrus (Post 1618819)
oh, lame, fixed:3

edit: also i probably fixed that next round thingy

Yes, its repaired.
Also, since the plugin is installed on my server, sometimes players don't see their weapons, I'm testing with the update to say you if its repaired.

Zephyrus 12-24-2011 08:39

Re: [ANY] Hats!
 
Quote:

Originally Posted by secu2 (Post 1618845)
Yes, its repaired.
Also, since the plugin is installed on my server, sometimes players don't see their weapons, I'm testing with the update to say you if its repaired.

:shock: ive been using different hats plugins for half a year now and i havent experienced that ever

poppin-fresh 12-24-2011 08:41

Re: [ANY] Hats!
 
[Hats] Sorry, but the model you are using doesn't support hats.
Using default CT models.

Zephyrus 12-24-2011 08:42

Re: [ANY] Hats!
 
Quote:

Originally Posted by poppin-fresh (Post 1618851)
[Hats] Sorry, but the model you are using doesn't support hats.
Using default CT models.

yeah, thats normal, 2 out of 4 stock models dont support them, but most custom models do

poppin-fresh 12-24-2011 08:45

Re: [ANY] Hats!
 
Just tried using this http://techknowmodels.19.forumer.com...opic.php?t=395
and all the default models


All times are GMT -4. The time now is 20:38.

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