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

[l4d2] Save Weapon (Co-op)


Post New Thread Reply   
 
Thread Tools Display Modes
sbrblz
Member
Join Date: Jun 2021
Old 09-03-2021 , 14:43   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #111

Quote:
Originally Posted by swiftswing1 View Post
alternatively, you can generate your own .cfg file if you download the source code and put this in the line just after the last CreateConVar command: AutoExecConfig(true, "insert_filename_here");

for example:
Code:
	hg_health = CreateConVar("l4d2_hx_health", "1", "", FCVAR_NONE, true, 0.0, true, 1.0);
        AutoExecConfig(true, "l4d2_ty_saveweapon_4");
curious, what other plugins do you experience this in?
That tip might come in handy. Maybe someday I'll look into learning sourcepawn stuff.

The other plugins that I use that require reloading are scene adjustments and superversus. scene adjustments stops working on map change so I added a plugin reload command to my server.cfg and now it works great. For superversus various people on the past said they had issues with the max specials always showing 2 in the console regardless of the number of players in the game. I posted a workaround to just reload the plugin once when the server is started which would then make maxspecials reflect the proper number.

I'm not sure if this reloading stuff is a windows server issue, issue with the way sourcemod loads plugins, or just the particular way the plugins were written.
__________________
sbrblz is offline
kevinracer
Member
Join Date: Dec 2009
Old 09-05-2021 , 09:22   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #112

Quote:
Originally Posted by HarryPotter View Post
to your cfg/listenserver.cfg file (If file doesn't exist, create it)
Some problem after i updated version 03/09/2021
Quote:
L 09/05/2021 - 20:03:19: [SM] Call stack trace:
L 09/05/2021 - 20:03:19: [SM] [0] SetEntProp
L 09/05/2021 - 20:03:19: [SM] [1] Line 588, l4d2_ty_saveweapos.sp::HxGiveC
L 09/05/2021 - 20:03:19: [SM] [2] Line 626, l4d2_ty_saveweapos.sp::HxTimerConnected
L 09/05/2021 - 20:03:21: [SM] Exception reported: Entity -1 (-1) is invalid
L 09/05/2021 - 20:03:21: [SM] Blaming: l4d2_ty_saveweapos.smx
L 09/05/2021 - 20:03:21: [SM] Call stack trace:
L 09/05/2021 - 20:03:21: [SM] [0] SetEntProp
L 09/05/2021 - 20:03:21: [SM] [1] Line 588, l4d2_ty_saveweapos.sp::HxGiveC
L 09/05/2021 - 20:03:21: [SM] [2] Line 626, l4d2_ty_saveweapos.sp::HxTimerConnected
L 09/05/2021 - 20:03:24: [SM] Exception reported: Entity -1 (-1) is invalid
L 09/05/2021 - 20:03:24: [SM] Blaming: l4d2_ty_saveweapos.smx
L 09/05/2021 - 20:03:24: [SM] Call stack trace:
L 09/05/2021 - 20:03:24: [SM] [0] SetEntProp
L 09/05/2021 - 20:03:24: [SM] [1] Line 588, l4d2_ty_saveweapos.sp::HxGiveC
L 09/05/2021 - 20:03:24: [SM] [2] Line 626, l4d2_ty_saveweapos.sp::HxTimerConnected
kevinracer is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-12-2021 , 18:19   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #113

hate to see you guys struggle with cfg, health and character model problem,
so I modify and share my work here.

Save Weapon (Co-op) Improved Version v6.0 [2023/6/25]
-Remake code
-Add the last stand two melee
-Add ConVar and generate cfg
-Save health
-Save Character Model
-Support Bots
-Support custom melee save
-Doesn't save if change map in game (ex. vote change new campaign)
-Compatible with the [ANY] Cheats

-Require-
1. left4dhooks

-Relate Valve ConVar-
* If true, survivor bots will be used as placeholders for survivors who are still changing levels
* If false, prevent bots from moving, changing weapons, using kits while human survivors are still changing levels
* need to write down in cfg/server.cfg
PHP Code:
sm_cvar sb_transition 0 
-Convar-
Spoiler


-Command-
None

-Edit Github-
Latest version always here
__________________

Last edited by HarryPotter; 06-24-2023 at 14:08.
HarryPotter is offline
yabi
Senior Member
Join Date: Jun 2021
Location: Taiwan
Old 09-12-2021 , 20:22   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #114

Quote:
Originally Posted by HarryPotter View Post
hate to see you guys struggle with no cfg, no saving health or no saving character model
so I modify and share my work here.
https://github.com/fbef0102/L4D2-Plu...ty_saveweapons

-Doesn't support custom melee, don't ask
-Maybe one day I will do saveing weapons for afk/going spectator request


Thanks here, Harry Potter, for everyone
I will use
yabi is offline
swiftswing1
Member
Join Date: Oct 2020
Old 09-12-2021 , 20:48   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #115

Quote:
Originally Posted by HarryPotter View Post
hate to see you guys struggle with no cfg, no saving health or no saving character model
so I modify and share my work here.
https://github.com/fbef0102/L4D2-Plu...ty_saveweapons
thank you HarryPotter! i've been using your plugin in conjunction with Silvers' plugin here for my server and it works really well! thanks for sharing!
swiftswing1 is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 09-12-2021 , 21:20   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #116

Quote:
Originally Posted by HarryPotter View Post
hate to see you guys struggle with no cfg, no saving health or no saving character model
so I modify and share my work here.
https://github.com/fbef0102/L4D2-Plu...ty_saveweapons

-Doesn't support custom melee, don't ask
-Maybe one day I will do saveing weapons for afk/going spectator request
This version also has a cvar to prevent them from spawning with the SMG weapon?
Tonblader is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-12-2021 , 23:24   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #117

Quote:
Originally Posted by Tonblader View Post
This version also has a cvar to prevent them from spawning with the SMG weapon?
In my version, no any weapon would be given to a new player.
__________________

Last edited by HarryPotter; 09-13-2021 at 00:01.
HarryPotter is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 09-13-2021 , 09:26   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #118

Quote:
Originally Posted by HarryPotter View Post
In my version, no any weapon would be given to a new player.
Thanks it's nice to know this, by the way, is it compatible with the [ANY] Cheats plugin?
I use that plugin to be able to enable the "ent_fire" command without activating the cheats because I use Listen Server (Windows) and it won't let me enable them.

Last edited by Tonblader; 09-13-2021 at 09:26.
Tonblader is offline
sbrblz
Member
Join Date: Jun 2021
Old 09-13-2021 , 20:36   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #119

Quote:
Originally Posted by HarryPotter View Post
hate to see you guys struggle with no cfg, no saving health or no saving character model
so I modify and share my work here.
https://github.com/fbef0102/L4D2-Plu...ty_saveweapons

-Doesn't support custom melee, don't ask
-Maybe one day I will do saveing weapons for afk/going spectator request
Hey Harry, thanks for adding the ability to save bots' gear and health that others were wanting. Plugin works great in saving bots' gear using Multislots. Unfortunately with ABM any extra bot over the amount of 4 does not get their gear and health restored, so with myself and 7 bots, 3 of the bots are not saved. It's probably due to the way the plugins spawn in the bots, and it's understandable with ABM no longer being updated.

Merudo's old fork still seems to properly restore their gear with ABM. Would it be possible to make it work like that fork? If not I understand, no worries.
__________________
sbrblz is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-15-2021 , 07:13   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #120

Quote:
Originally Posted by sbrblz View Post
Hey Harry, thanks for adding the ability to save bots' gear and health that others were wanting. Plugin works great in saving bots' gear using Multislots. Unfortunately with ABM any extra bot over the amount of 4 does not get their gear and health restored, so with myself and 7 bots, 3 of the bots are not saved. It's probably due to the way the plugins spawn in the bots, and it's understandable with ABM no longer being updated.

Merudo's old fork still seems to properly restore their gear with ABM. Would it be possible to make it work like that fork? If not I understand, no worries.
done in v5.4
__________________
HarryPotter 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 18:52.


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