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

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


Post New Thread Reply   
 
Thread Tools Display Modes
morzlee
Junior Member
Join Date: Jan 2022
Old 06-12-2022 , 08:39   Re: [L4D & L4D2] Hats (1.45) [29-May-2022]
Reply With Quote #261

Can you add a forward to the plugin, when the hat is set.
With this feature it would be easy to save the hat data with the database
forward hat index or hat name.
please.
morzlee is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-12-2022 , 10:00   Re: [L4D & L4D2] Hats (1.45) [29-May-2022]
Reply With Quote #262

The plugin already saves the hat...
__________________
Silvers is offline
morzlee
Junior Member
Join Date: Jan 2022
Old 06-12-2022 , 19:35   Re: [L4D & L4D2] Hats (1.45) [29-May-2022]
Reply With Quote #263

Quote:
Originally Posted by Silvers View Post
The plugin already saves the hat...
I have about 20 server, Use mysql store hat preference is better. Don’t need set hat every time.
morzlee is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-13-2022 , 07:30   Re: [L4D & L4D2] Hats (1.45) [29-May-2022]
Reply With Quote #264

You want the forward to also show when it's "loading" or "saving" a hat? Should the forward be of an "Action" type to return Plugin_Changed to change the hat type for example when loading?
PHP Code:
forward Action L4D_OnHatChange(int clientint &indexbool loading); 
Does it need to forward the model string?

Not sure when I'll get to this, it's not exactly an easy addition with so many different functions calling CreateHat() and since you're the only one in all this time who requested such a feature I'm also reluctant to add. Feel free to pull request.

Edit: Maybe the forward should only be called when it's saving/loading if that's all you're after. Not when it's created, since there are so many different conditions for creation, random hats, bots etc.
__________________

Last edited by Silvers; 06-13-2022 at 14:55.
Silvers is offline
A1ekin
Member
Join Date: Jul 2021
Old 08-21-2022 , 11:32   Re: [L4D & L4D2] Hats (1.45) [29-May-2022]
Reply With Quote #265

:///
When I am in the team of infected, or spectators, then:

Code:
] sm_hat
[HAT] Can't use this command at the moment.
When I'm on the survivor team:
Code:
] sm_hat
Unknown command: sm_hat
Hats work but I can't open the hats menu :/

Code:
08/21/2022 - 07:56:42: Info (map "c1m1_hotel") (file "/home/steam2/steamcmd/l4d2/left4dead2/addons/sourcemod/logs/errors_20220821.log")
L 08/21/2022 - 07:56:42: [SM] Exception reported: Native is not bound
L 08/21/2022 - 07:56:42: [SM] Blaming: l4d_hats.smx
L 08/21/2022 - 07:56:42: [SM] Call stack trace:
L 08/21/2022 - 07:56:42: [SM]   [0] ToggleReadyPanel
L 08/21/2022 - 07:56:42: [SM]   [1] Line 938, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\l4d_hats.sp::SetReadyUpPlugin
L 08/21/2022 - 07:56:42: [SM]   [2] Line 1531, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\l4d_hats.sp::CmdHat
L 08/21/2022 - 07:56:49: [SM] Exception reported: Native is not bound
L 08/21/2022 - 07:56:49: [SM] Blaming: l4d_hats.smx
L 08/21/2022 - 07:56:49: [SM] Call stack trace:
L 08/21/2022 - 07:56:49: [SM]   [0] ToggleReadyPanel
L 08/21/2022 - 07:56:49: [SM]   [1] Line 938, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\l4d_hats.sp::SetReadyUpPlugin
L 08/21/2022 - 07:56:49: [SM]   [2] Line 1372, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\l4d_hats.sp::CmdHatMain
L 08/21/2022 - 07:57:06: [SM] Exception reported: Native is not bound
seems to be a conflict with my ReadyUp plugin

Yes, I disabled the plugin and the menu worked

Can you fix the conflict with my plugin?

Last edited by A1ekin; 08-21-2022 at 12:40. Reason: new information
A1ekin is offline
kochiurun119
BANNED
Join Date: Sep 2014
Location: GB
Old 09-14-2023 , 11:17   Re: [L4D & L4D2] Hats (1.45a) [27-Aug-2022]
Reply With Quote #266

Some maps on l4dmaps conflict with l4d2 explosive cars.smx https://www.gamemaps.com/details/16636
kochiurun119 is offline
Send a message via ICQ to kochiurun119 Send a message via AIM to kochiurun119 Send a message via Yahoo to kochiurun119 Send a message via Skype™ to kochiurun119
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-14-2023 , 14:09   Re: [L4D & L4D2] Hats (1.45a) [27-Aug-2022]
Reply With Quote #267

Quote:
Originally Posted by kochiurun119 View Post
Some maps on l4dmaps conflict with l4d2 explosive cars.smx https://www.gamemaps.com/details/16636
What does that have to do with this plugin?
__________________
Silvers is offline
kochiurun119
BANNED
Join Date: Sep 2014
Location: GB
Old 09-15-2023 , 02:07   Re: [L4D & L4D2] Hats (1.45a) [27-Aug-2022]
Reply With Quote #268

Quote:
Originally Posted by Silvers View Post
What does that have to do with this plugin?
If I let these two plugins run at the same time, I will be ejected and get the error BinkOpen( d:\steamlibrary\steamapps\common\left 4 dead 2\left4dead2\media\l4d2_background01.bik )
kochiurun119 is offline
Send a message via ICQ to kochiurun119 Send a message via AIM to kochiurun119 Send a message via Yahoo to kochiurun119 Send a message via Skype™ to kochiurun119
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-15-2023 , 15:48   Re: [L4D & L4D2] Hats (1.45a) [27-Aug-2022]
Reply With Quote #269

That doesn't make sense how that could even happen. If that's really the case then the problem lies with those maps. Use a maps config plugin to disable either plugin on affected maps.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-07-2023 , 06:46   Re: [L4D & L4D2] Hats (1.46) [07-Nov-2023]
Reply With Quote #270

Code:
1.46 (07-Nov-2023)
    - Now shows hats in 3rd person view when deploying upgrade ammo packs, staggering or recovering from a pounce/charge. Thanks to "Voevoda" for reporting.
__________________
Silvers 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 17:18.


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