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

L4D2 hots plugin unload bug


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
canadianjeff
BANNED
Join Date: Sep 2016
Old 06-13-2021 , 03:33   L4D2 hots plugin unload bug
#1

this plugin....

https://github.com/SirPlease/L4D2-Co...ing/l4dhots.sp

will heal the survivors over time but when you "unload" the plugin it should revert "pain_pills_health_value" back to its old value but for some reason its getting reset back to 0

Code:
sm_cvar "pain_pills_health_value" 100
[SM] Changed cvar "pain_pills_health_value" to "100".
sm plugins unload optional/l4dhots.smx
[SM] Plugin L4D HOTs unloaded successfully.
sm_cvar "pain_pills_health_value"
[SM] Value of cvar "pain_pills_health_value": "0"

Last edited by asherkin; 03-07-2022 at 03:55. Reason: Restore to previous version.
canadianjeff is offline
ReCreator
Member
Join Date: Nov 2017
Location: Ukraine,Kyiv
Old 06-13-2021 , 06:15   Re: L4D2 hots plugin unload bug
#2

No, it shouldn't...plugin worked, set value 0, than you unloaded it, where do you see action to set cvar back?
You can use OnPluginEnd, where you set needed value
__________________
Sorry for my pure English...
ReCreator is offline
Closed Thread



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 02:53.


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