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

[L4D & L4D2] Hats (1.50) [12-Mar-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-06-2011 , 23:46   Re: [L4D & L4D2] Hats (v1.3.2 - 06-Apr-2011)
Reply With Quote #41

Quote:
Originally Posted by SG_Paul View Post
Hmm any chance of a CSS version? :S
Quote:
Originally Posted by Silvers View Post
Quote:
Originally Posted by Leonardo View Post
Quote:
Originally Posted by rediem View Post
CS:S version please?
No.
that's better.

oh wait
line 223
PHP Code:
if( !client || !IsClientInGame(client) || GetClientTeam(client) != || !IsPlayerAlive(client) ) 
zombie can't be with hat? :s

Last edited by Leonardo; 04-06-2011 at 23:51.
Leonardo is offline
JackieChan
AlliedModders Donor
Join Date: Nov 2009
Old 04-07-2011 , 04:38   Re: [L4D & L4D2] Hats (v1.3.2 - 06-Apr-2011)
Reply With Quote #42

Quote:
Originally Posted by Leonardo View Post
oh wait
line 223
PHP Code:
if( !client || !IsClientInGame(client) || GetClientTeam(client) != || !IsPlayerAlive(client) ) 
zombie can't be with hat? :s
You'd have to put one another one on every time you spawn, and given the amount of times you die as infected, it wouldn't serve much purpose.
JackieChan is offline
jake84
Senior Member
Join Date: Jun 2010
Location: CA
Old 04-07-2011 , 06:43   Re: [L4D & L4D2] Hats (v1.3.2 - 06-Apr-2011)
Reply With Quote #43

I noticed !hat is an admin command only. RegConsoleCmd would be the proper fix for that right?

There's one more thing. When you pick a hat, I don't want to see it myself, but for that to happen, i must either write sm_hatshow or sm_hatview (seems to be the same command). Can't you just make a cvar when you pick a hat: if it equals to 1, you see your own hat, if it equals to 0, you don't see your hat but your friends will. This way they don't have to write !hatview or !hatshow.

I thought this was the same as putting "l4d_hats_view 0" in the .cfg file, but when I did that, no one was able to see each others hats. It was like if the plugin was disabled.
jake84 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-07-2011 , 07:08   Re: [L4D & L4D2] Hats (v1.3.2 - 06-Apr-2011)
Reply With Quote #44

Regarding special infected having hats, I am not going to bother positioning hats on every character, it's long enough to make 1 hat for them all.

@jake84:
That is the correct cvar, it works fine here, try rebooting the server. And no RegAdminCmd works fine for normal clients too if the flag is set to 0.
__________________
Silvers is offline
Optics233
Member
Join Date: Nov 2010
Old 04-07-2011 , 12:15   Re: [L4D & L4D2] Hats (v1.3.2 - 06-Apr-2011)
Reply With Quote #45

Found a new bug (maybe) - the admin command !hatc doesn't work if the admin player is on the infected team. I do understand that you don't want to put hats on infected models; that's fine. However!

If an admin types !hatc, regardless of what team they are on, I think that it should display a menu of the survivors. So if I'm admin and I type !hatc while infected, I should be able to put a hat on the survivor players. Does that make sense?
Optics233 is offline
jake84
Senior Member
Join Date: Jun 2010
Location: CA
Old 04-07-2011 , 12:28   Re: [L4D & L4D2] Hats (v1.3.2 - 06-Apr-2011)
Reply With Quote #46

Quote:
Originally Posted by Silvers View Post
Regarding special infected having hats, I am not going to bother positioning hats on every character, it's long enough to make 1 hat for them all.

@jake84:
That is the correct cvar, it works fine here, try rebooting the server. And no RegAdminCmd works fine for normal clients too if the flag is set to 0.
Seemed to work after a reboot.
On L4D1 btw, not many models seem to work
jake84 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-07-2011 , 19:39   Re: [L4D & L4D2] Hats (v1.3.2 - 06-Apr-2011)
Reply With Quote #47

Quote:
Originally Posted by jake84 View Post
Seemed to work after a reboot.
On L4D1 btw, not many models seem to work
Quote:
Originally Posted by Silvers View Post
I made and tested this on L4D2 only so I assume some models will be missing when used in L4D1... if someone could post an L4D1 specific config that would be greatly appreciated.
Could you maybe do it please?

@Optics thanks for the feedback.

Also updated:

1.3.3
- Fixed sm_hatc not displaying for admins when they are dead/infected team.
- Minor bug fixes.
__________________
Silvers is offline
Optics233
Member
Join Date: Nov 2010
Old 04-09-2011 , 09:57   Re: [L4D & L4D2] Hats (v1.3.3 - 08-Apr-2011)
Reply With Quote #48

I've been using this mod now for the past day or so and it's worked great! No more bugs or anything.

I do have a question though. Is there anywhere online or with a console command that I can view all the models in L4d2? I'd like to add some custom hats but I don't know where to look for a model list.

Thanks!
Optics233 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-09-2011 , 10:01   Re: [L4D & L4D2] Hats (v1.3.3 - 08-Apr-2011)
Reply With Quote #49

Good to hear

Hmm, to make this I opened Hammer and added a prop_dynamic, then viewed all the models in there. Took a while to flick through but I got to see the majority of models and picked a bunch. There are probably other ways, maybe easier ways and if anyone knows please say!
__________________
Silvers is offline
Ja-Forces
Senior Member
Join Date: Jul 2009
Location: Leningrad
Old 04-09-2011 , 12:20   Re: [L4D & L4D2] Hats (v1.3.3 - 08-Apr-2011)
Reply With Quote #50

Linux; L4D; MetaMod 1.8.5, SourceMod 1.4.0-hg3218; SDK Hooks 2b2

L 04/09/2011 - 20:176: [SM] Native "HookEvent" reported: Game event "charger_pummel_start" does not exist
L 04/09/2011 - 20:176: [SM] Displaying call stack trace for plugin "l4d_hats.smx":
L 04/09/2011 - 20:176: [SM] [0] Line 860, l4d_hats.sp::HookEvents()
L 04/09/2011 - 20:176: [SM] [1] Line 155, l4d_hats.sp::OnPluginStart()

__________________

Last edited by Ja-Forces; 04-09-2011 at 12:35.
Ja-Forces 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 06:16.


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