Raised This Month: $51 Target: $400
 12% 

[TF2] Hat spawner


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kemsan
Member
Join Date: Sep 2009
Location: Poland, Bytom
Old 08-28-2011 , 19:15   [TF2] Hat spawner
Reply With Quote #1

Hat spawner 1.0

Description:

It's prototype, working good, but still invisible to others, ah, crap! You can add custom hat to this, it's no problem, but it's still inivible (to others, not for you). Plugin change hat model before spawn (ya, destroy all items [ misc, action slot ] )

Requirements:
SDKHooks, grab link to it here

Cvars:
None, it's prototype.

tf2items.hats.txt hat example:
PHP Code:
"custom_hats"
{
    
"*" //All players
    
{
        
"*" //All hats
        
{
            
"model"    "models/player/items/all_class/treasure_hat_oct" //Model (without .mdl )
            
"materials"    "" //Not used
            
"r"    "255" //R
            
"g"    "0" //G
            
"b"    "250" //B
            
"a"    "255" //Alpha
            
"unusual"        "superrare_circling_skull" //Unusual effect
        
}
    }

Installation:
  • Put custom_hat.smx to sourcemod/plugins
  • Put custom_hat.sp to sourcemod/scripting
  • Put tf2items.hats.txt to sourcemod/configs
In .zip you find sample of tf2items.hats.txt
Wait for change map or write in rcon - sm plugins load custom_hat

Screensho(o)t:
[IMG]http://img830.**************/img830/9668/cpdustbowl0014.th.png[/IMG]

Enjoy!
__________________

Last edited by psychonic; 08-29-2011 at 20:03.
Kemsan is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 08-28-2011 , 19:24   Re: [TF2] Hat spawner
Reply With Quote #2

im pretty sure this thread will be closed and moved to trash
Zephyrus is offline
Kemsan
Member
Join Date: Sep 2009
Location: Poland, Bytom
Old 08-28-2011 , 19:26   Re: [TF2] Hat spawner
Reply With Quote #3

Why? ;] It's normal plugin which add feature to create hat on player head - like CS:S hat plugins. You can create CUSTOM hats with this. Again - why?
__________________
Kemsan is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 08-28-2011 , 19:32   Re: [TF2] Hat spawner
Reply With Quote #4

Quote:
Originally Posted by Kemsan View Post
Why? ;] It's normal plugin which add feature to create hat on player head - like CS:S hat plugins. You can create CUSTOM hats with this. Again - why?
valve has blocked them for a reason, there were enough trouble from custom hats already
Zephyrus is offline
Kemsan
Member
Join Date: Sep 2009
Location: Poland, Bytom
Old 08-28-2011 , 19:33   Re: [TF2] Hat spawner
Reply With Quote #5

Valve blocked Attachables extension, this method change tf_wearable model enitity to other model. See - I don't spawn "new" model, plugin change only client hat model to other and.. this is only prototype, others players still don't see hat. Only owner can see it.
__________________

Last edited by Kemsan; 08-28-2011 at 19:37.
Kemsan is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 08-28-2011 , 19:39   Re: [TF2] Hat spawner
Reply With Quote #6

Quote:
Originally Posted by Kemsan View Post
Valve blocked Attachables extension, this method change tf_wearable model enitity to other model. See - I don't spawn "new" model, plugin change only client hat model to other and.. this is only prototype, others players still don't see hat. Only owner can see it.
well lets leave it for a moderator to decide but i think they wont be happy
Zephyrus is offline
Kemsan
Member
Join Date: Sep 2009
Location: Poland, Bytom
Old 08-28-2011 , 19:41   Re: [TF2] Hat spawner
Reply With Quote #7

I don't want to approve this, I want to show method to "spawn custom hat". This topic can be moved to discussion about TF2 scripting .
__________________
Kemsan is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 08-29-2011 , 02:28   Re: [TF2] Hat spawner
Reply With Quote #8

Hats are not visible to others... Pretty useless, don't you think so?
__________________
napalm00 is offline
m4ster
Senior Member
Join Date: Mar 2007
Old 08-29-2011 , 14:25   Re: [TF2] Hat spawner
Reply With Quote #9

but the unusual effect will work?
__________________
m4ster is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-29-2011 , 14:29   Re: [TF2] Hat spawner
Reply With Quote #10

er... what's the point in doing this if other people can't see the hat?

Then again, if other people could see it, Valve would invariable break whatever method you used to do it, just like they did before.
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 09:15.


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