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

[l4d2] Save Weapon (Co-op)


Post New Thread Reply   
 
Thread Tools Display Modes
Merudo
Senior Member
Join Date: Feb 2016
Old 02-07-2016 , 13:43   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #21

I'm just hoping the plugin is ignored in versus mode. Right now I move the plugin to the "disable" folder each time I change my server to versus. I'm hoping this step is not necessary.

I think you'll agree it would be highly undesirable for the survivors to start with the equipment of the previous team!

Maybe it would be good to add a check to see if the game is indeed coop, such as

Quote:
GetConVarString(FindConVar("mp_gamemode"), GameName, sizeof(GameName));

if(StrEqual(GameName, "coop")
{
// run plugin code
}

Last edited by Merudo; 02-12-2016 at 09:44.
Merudo is offline
maks
Member
Join Date: Dec 2011
Location: Russia
Old 02-11-2016 , 01:00   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #22

Not tested

Fixed v3.6:
More correct caching of textures.
Save the chainsaw fuel correctly.
Speed optimization work.
maks is offline
maks
Member
Join Date: Dec 2011
Location: Russia
Old 02-12-2016 , 11:43   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #23

Not tested

Added v3.6.1b:
Only works in coop.
Enabled logging (logs/l4d2_ty_saveweapon.log).

Last edited by maks; 02-18-2016 at 09:32.
maks is offline
maks
Member
Join Date: Dec 2011
Location: Russia
Old 02-18-2016 , 09:18   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #24

Added v3.6.2:

Speed optimization work.
https://github.com/TyUser/l4d2_ty_saveweapon/
maks is offline
Merudo
Senior Member
Join Date: Feb 2016
Old 02-18-2016 , 12:52   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #25

Quote:
Originally Posted by maks View Post
Not tested

Added v3.6.1b:
Only works in coop.
I like this a lot! Any chance you allow it for "realism" mode too?
Merudo is offline
lightphoenix2
Member
Join Date: Feb 2016
Old 02-19-2016 , 04:24   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #26

Does this also save custom weapons? Some custom maps offer custom weapons and are lost when next round starts.
lightphoenix2 is offline
lightphoenix2
Member
Join Date: Feb 2016
Old 02-19-2016 , 04:26   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #27

Quote:
Originally Posted by Merudo View Post
This version should save the chainsaw fuel correctly.

Look at lines with "Added for chainsaw support" comments to find out what I added.
Merudo did a great job and also include a cfg file. I hope you can implement it too!
lightphoenix2 is offline
maks
Member
Join Date: Dec 2011
Location: Russia
Old 02-19-2016 , 09:54   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #28

Added v3.6.4

Deleted log.
maks is offline
maks
Member
Join Date: Dec 2011
Location: Russia
Old 02-21-2016 , 00:43   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #29

Added v3.6.7

Code optimization.
maks is offline
Merudo
Senior Member
Join Date: Feb 2016
Old 02-24-2016 , 15:40   Re: [l4d2] Save Weapon (Co-op)
Reply With Quote #30

maks, are you going to fix the bug where bots don't show up in the score screen at the end of a level because they get kicked incorrectly? Electr000999's version doesn't have this problem.

Also, it would be great if the plugin could save the Model/EntProp/Names of the bots. Right now each time you finish a level the extra bots (over 4) are randomized and may change identity (i.e. Coach bot may become Ellis bot). Also if you use the Survivor Chat Select plugin to change the bots to other identities (such as to the L4D1 survivors), the save is not changed at the end of the map.
Merudo 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 05:03.


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