Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Hats (1.45a) [27-Aug-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
VladimirTk
Senior Member
Join Date: Apr 2021
Location: Perú - Latino América
Old 07-12-2021 , 12:11   Re: [L4D & L4D2] Hats (1.35) [10-Jul-2021]
Reply With Quote #231

Ready I already put the video in public, and if I have the plugin installed
ThirdPersonShoulder_Detect.smx

Last edited by VladimirTk; 07-12-2021 at 12:11.
VladimirTk is online now
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-12-2021 , 16:05   Re: [L4D & L4D2] Hats (1.35) [10-Jul-2021]
Reply With Quote #232

Try changing "l4d_hats_view" to "0"

Edit: This is an old cvar before "ThirdPersonShoulder_Detect" plugin. Recommend using that instead and keeping this cvar to 0. Will remove this cvar in the future.
__________________

Last edited by Silvers; 07-13-2021 at 21:28.
Silvers is offline
VladimirTk
Senior Member
Join Date: Apr 2021
Location: Perú - Latino América
Old 07-13-2021 , 09:51   Re: [L4D & L4D2] Hats (1.35) [10-Jul-2021]
Reply With Quote #233

Thanks, that solved the problem.
VladimirTk is online now
Darkwob
Senior Member
Join Date: Oct 2018
Location: Turkey
Old 08-27-2021 , 01:25   Re: [L4D & L4D2] Hats (1.36) [20-Jul-2021]
Reply With Quote #234

Can you get anyone who doesn't have access to the bro !hat command to delete the registered hat? In other words, a player who no longer has an admin flag that we have specified should delete the hat from the cookies because it no longer has that admin flag, and the hat no longer appears.

This cvar saves the hats, but if the player no longer has that flag, the hat still stays and does not go away.
If the player does not have the specified admin flag, the registered hat will be deleted.
Quote:
l4d_hats_save "1"
__________________
HTML Code:
<a href="https://www.gametracker.com/server_info/157.90.180.232:27215/" target="_blank"><img src="https://cache.gametracker.com/server_info/157.90.180.232:27215/b_560_95_1.png" border="0" width="560" height="95" alt=""/></a>
Darkwob is offline
Send a message via AIM to Darkwob Send a message via Yahoo to Darkwob Send a message via Skype™ to Darkwob
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-27-2021 , 02:43   Re: [L4D & L4D2] Hats (1.36) [20-Jul-2021]
Reply With Quote #235

I've sent you a PM with the updated code, if you could please test and let me know that it works. Thanks.
__________________
Silvers is offline
swiftswing1
Member
Join Date: Oct 2020
Old 09-27-2021 , 11:11   Re: [L4D & L4D2] Hats (1.37 ) [09-Sep-2021]
Reply With Quote #236

hi, i'm having trouble adding hat models using the sm_hatadd cmd. it keeps shooting me the "[HATS] Could not find the model ... Not adding to config." message.
i'm typing it as such:
PHP Code:
//example:
sm_hatadd models/props_furniture/piano.mdl 
is this correct? i'm really not sure about the path - just doing it based on how the other models are listed.

hope someone can help. thanks.

EDIT: it seems manually adding the hats seems to work for me (l4d_hats.cfg in data folder and hatnames.phrases.txt in translation folder).

Last edited by swiftswing1; 10-04-2021 at 20:53.
swiftswing1 is offline
kot4404
Senior Member
Join Date: Mar 2013
Old 12-03-2021 , 08:03   Re: [L4D & L4D2] Hats (1.37 ) [09-Sep-2021]
Reply With Quote #237

My clients find it confusing to use /hatoff, it could work simpler by adding no hat option instead of separate toggle command
kot4404 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-03-2021 , 09:00   Re: [L4D & L4D2] Hats (1.37 ) [09-Sep-2021]
Reply With Quote #238

Quote:
Originally Posted by swiftswing1 View Post
hi, i'm having trouble adding hat models using the sm_hatadd cmd.

EDIT: it seems manually adding the hats seems to work for me (l4d_hats.cfg in data folder and hatnames.phrases.txt in translation folder).
Thanks, I have fixed the issue. Problem is this is from before hat translations were added, so if you use the command it will break the plugin if translations are being used. I've added a warning for this, it's better to manually add hats because of this.


Quote:
Originally Posted by kot4404 View Post
My clients find it confusing to use /hatoff, it could work simpler by adding no hat option instead of separate toggle command
I have added the "Off" option to the menu. Thanks.

Code:
1.38 (03-Dec-2021)
    - Added "Off" option to the menu. Requested by "kot4404".
    - Fixed command "sm_hatadd" from not adding new entries. Thanks to "swiftswing1" for reporting.
    - Changes to fix warnings when compiling on SourceMod 1.11.
__________________
Silvers is offline
NoroHime
Senior Member
Join Date: Aug 2016
Location: China
Old 12-08-2021 , 01:01   Re: [L4D & L4D2] Hats (1.38) [03-Dec-2021]
Reply With Quote #239

chinese translations / 中文翻译
i was translates a lot of time and im found wrong file in /translations/chi that key broken i feel fooled
Attached Files
File Type: txt hatnames.phrases.txt (3.8 KB, 14 views)
__________________
receiver/provider from chi
NoroHime is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-09-2021 , 09:09   Re: [L4D & L4D2] Hats (1.39) [09-Dec-2021]
Reply With Quote #240

Thanks, hadn't noticed the issue. Fixed.

Code:
1.39 (09-Dec-2021)
    - Changed command "sm_hat" to accept "rand" or "random" as a parameter option to give a random hat.
    - Updated the "chi" and "zho" translation "hatnames.phrases.txt" files to be correct. Thanks to "NoroHime".
__________________
Silvers 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 09:44.


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