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

[ANY] Hats! (Version 1.0.4c - 2/19/2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Plugin ID:
2727
Plugin Version:
1.0.4c
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Hats for everyone, so what?!
    Old 12-24-2011 , 05:32   [ANY] Hats! (Version 1.0.4c - 2/19/2012)
    Reply With Quote #1

    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)
    -Hats won't disappear after death (idea stolen from Peace-Maker )
    -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?
    Attached Files
    File Type: ini downloads_simple.ini (307 Bytes, 3769 views)
    File Type: txt hats.gamedata.txt (577 Bytes, 3833 views)
    File Type: txt hats.txt (4.7 KB, 4439 views)
    File Type: sp Get Plugin or Get Source (sm_hats.sp - 3818 views - 13.6 KB)
    File Type: smx sm_hats.smx (13.7 KB, 3385 views)
    __________________
    Taking private C++/PHP/SourcePawn requests, PM me.

    Last edited by Zephyrus; 02-19-2012 at 08:10.
    Zephyrus is offline
    secu2
    Junior Member
    Join Date: Dec 2010
    Old 12-24-2011 , 06:05   Re: [ANY] Hats!
    Reply With Quote #2

    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.

    Last edited by secu2; 12-24-2011 at 07:27.
    secu2 is offline
    Zephyrus
    Cool Pig B)
    Join Date: Jun 2010
    Location: Hungary
    Old 12-24-2011 , 07:34   Re: [ANY] Hats!
    Reply With Quote #3

    Quote:
    Originally Posted by secu2 View Post
    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
    __________________
    Taking private C++/PHP/SourcePawn requests, PM me.
    Zephyrus is offline
    poppin-fresh
    AlliedModders Donor
    Join Date: Aug 2010
    Old 12-24-2011 , 07:39   Re: [ANY] Hats!
    Reply With Quote #4

    [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()
    poppin-fresh is offline
    Zephyrus
    Cool Pig B)
    Join Date: Jun 2010
    Location: Hungary
    Old 12-24-2011 , 07:43   Re: [ANY] Hats!
    Reply With Quote #5

    Quote:
    Originally Posted by poppin-fresh View Post
    [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

    edit: also i probably fixed that next round thingy
    __________________
    Taking private C++/PHP/SourcePawn requests, PM me.

    Last edited by Zephyrus; 12-24-2011 at 07:49.
    Zephyrus is offline
    secu2
    Junior Member
    Join Date: Dec 2010
    Old 12-24-2011 , 08:35   Re: [ANY] Hats!
    Reply With Quote #6

    Quote:
    Originally Posted by Zephyrus View Post
    oh, lame, fixed

    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.
    secu2 is offline
    Zephyrus
    Cool Pig B)
    Join Date: Jun 2010
    Location: Hungary
    Old 12-24-2011 , 08:39   Re: [ANY] Hats!
    Reply With Quote #7

    Quote:
    Originally Posted by secu2 View Post
    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.
    ive been using different hats plugins for half a year now and i havent experienced that ever
    __________________
    Taking private C++/PHP/SourcePawn requests, PM me.
    Zephyrus is offline
    poppin-fresh
    AlliedModders Donor
    Join Date: Aug 2010
    Old 12-24-2011 , 08:41   Re: [ANY] Hats!
    Reply With Quote #8

    [Hats] Sorry, but the model you are using doesn't support hats.
    Using default CT models.
    poppin-fresh is offline
    Zephyrus
    Cool Pig B)
    Join Date: Jun 2010
    Location: Hungary
    Old 12-24-2011 , 08:42   Re: [ANY] Hats!
    Reply With Quote #9

    Quote:
    Originally Posted by poppin-fresh View Post
    [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
    __________________
    Taking private C++/PHP/SourcePawn requests, PM me.

    Last edited by Zephyrus; 12-24-2011 at 08:44.
    Zephyrus is offline
    poppin-fresh
    AlliedModders Donor
    Join Date: Aug 2010
    Old 12-24-2011 , 08:45   Re: [ANY] Hats!
    Reply With Quote #10

    Just tried using this http://techknowmodels.19.forumer.com...opic.php?t=395
    and all the default models
    poppin-fresh is offline
    Reply



    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 16:03.


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