Raised This Month: $119 Target: $400
 29% 

[EXTENSION] [L4D2] Melee Spawn Control (1.0.0.4)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
V10
Senior Member
Join Date: Jan 2010
Location: Russia
Old 08-03-2013 , 23:14   [EXTENSION] [L4D2] Melee Spawn Control (1.0.0.4)
Reply With Quote #1

With this extension you can simple unlock all melee weapons.
Extension gives cvar l4d_melee_weapons for set list of spawned melee weapons at map.

Default value:
Code:
fireaxe;frying_pan;machete;baseball_bat;crowbar;cricket_bat;tonfa;katana;electric_guitar;knife;golfclub

Changelog
1.0.0.4
- Added cvars registration.
1.0.0.3
- Fixed memory leaks on Windows (thanks to psychonic)
1.0.0.2b
- Added knife support.
1.0.0.1b
- Renamed extension, renamed extension filename, renamed main class, renamed gamedata file
- Linux version now no have memory leak
1.0.0.0b
- Initial version.

Known issue
Incorrect cvar name in extension .dll and .so description.

Tested on linux and windows.

---------------------------------------------------------------------
See also other my extensions and plugins fixes 8+ bugs:
- [L4D2] Infected Fix Spawn
- [L4D2] Defibrillator Bug Fix
- [L4D2] Upgrade packs BUG FIX
- [L4D2] 8+ players Bug Fixes
Attached Files
File Type: zip l4d2_meleespawncontrol.zip (125.3 KB, 2679 views)
File Type: zip l4d2_meleespawncontrol_sources.zip (31.2 KB, 1057 views)
__________________
Sry for my english.
I good speak on russian =)

Last edited by V10; 08-07-2013 at 12:36.
V10 is offline
Electr000999
Senior Member
Join Date: Aug 2011
Location: Russia, Perm
Old 08-04-2013 , 04:33   Re: [EXTENSION] [L4D2] Melee Control (spawn) (1.0.0.0)(BETA)
Reply With Quote #2

hi, hmm can you add cvar for set custom melee list ?, i have custom melee and this good help me on problem after update )

and even when they were unlocking addons, we just washed the parameter file of the mission with a list of available weapons on the map, it is possible to realize through your extension?

////////// (On russian)

и еще когда были аддоны разлочки, мы просто стирали параметр из файла миссии со списком доступного ближнего оружия на карте, можно ли это реализовать через ваше расширение?, в таком случае мне кажется память не будет засорятся.., и спасибо за хорошее начало и поддержку L4D2 сообщества)

Last edited by Electr000999; 08-04-2013 at 04:38.
Electr000999 is offline
Send a message via Skype™ to Electr000999
spumer
Senior Member
Join Date: Aug 2011
Old 08-04-2013 , 04:45   Re: [EXTENSION] [L4D2] Melee Control (spawn) (1.0.0.0)(BETA)
Reply With Quote #3

V10, I'm use this trick as left4downtown2 modification. No server crashes. May be you can use it.
Attached Files
File Type: 7z get_mission_info.7z (1.6 KB, 367 views)
__________________
spumer is offline
V10
Senior Member
Join Date: Jan 2010
Location: Russia
Old 08-04-2013 , 07:31   Re: [EXTENSION] [L4D2] Melee Control (spawn) (1.0.0.0)(BETA)
Reply With Quote #4

Quote:
Originally Posted by Electr000999 View Post
hi, hmm can you add cvar for set custom melee list ?, i have custom melee and this good help me on problem after update )

and even when they were unlocking addons, we just washed the parameter file of the mission with a list of available weapons on the map, it is possible to realize through your extension?
No, because we cant free memory of original string.
__________________
Sry for my english.
I good speak on russian =)
V10 is offline
V10
Senior Member
Join Date: Jan 2010
Location: Russia
Old 08-04-2013 , 07:36   Re: [EXTENSION] [L4D2] Melee Control (spawn) (1.0.0.0)(BETA)
Reply With Quote #5

Quote:
Originally Posted by spumer View Post
V10, I'm use this trick as left4downtown2 modification. No server crashes. May be you can use it.
Thanks, but it not helps. Today I get more tests.
In Linux KeyValues.SetString working fine as well. Today I rewrite different code for linux.
But in Windows trying to call KeyValues.SetString get crash (memory corruption exception) always. I think it problems in compiler settings or something in msvc. So in windows I use old code (with leak).
__________________
Sry for my english.
I good speak on russian =)

Last edited by V10; 08-04-2013 at 09:39.
V10 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-04-2013 , 11:13   Re: [EXTENSION] [L4D2] Melee Control (spawn) (1.0.0.0)(BETA)
Reply With Quote #6

Quote:
Originally Posted by V10 View Post
Thanks, but it not helps. Today I get more tests.
But in Windows trying to call KeyValues.SetString get crash (memory corruption exception) always. I think it problems in compiler settings or something in msvc. So in windows I use old code (with leak).
It's because of freeing memory that was allocated on a different heap.

Both the game and the extension are compiled with /MT, statically linking the msvcrt (instead of dynamically linking [/MD] and sharing the heap).

You'll have to directly call the game's copy of KeyValues::SetString for a KeyValue* allocated by the game.

Last edited by psychonic; 08-04-2013 at 11:14.
psychonic is offline
V10
Senior Member
Join Date: Jan 2010
Location: Russia
Old 08-04-2013 , 11:57   Re: [EXTENSION] [L4D2] Melee Control (spawn) (1.0.0.0)(BETA)
Reply With Quote #7

Quote:
Originally Posted by psychonic View Post
It's because of freeing memory that was allocated on a different heap.

Both the game and the extension are compiled with /MT, statically linking the msvcrt (instead of dynamically linking [/MD] and sharing the heap).

You'll have to directly call the game's copy of KeyValues::SetString for a KeyValue* allocated by the game.
Thanks.
__________________
Sry for my english.
I good speak on russian =)
V10 is offline
Sev
Veteran Member
Join Date: May 2010
Old 08-04-2013 , 12:34   Re: [EXTENSION] [L4D2] Melee Spawn Control (1.0.0.2)(BETA)
Reply With Quote #8

This will prove to be a valuable addition to the community V10.

Seeing as how Valve has done something to effect the way server side vpks work now, causing vpks that aren't tied to custom campaigns to not work

One of those vpks was one that unlocked all the melee weapons for all the campaigns, along with allowing the female boomer on all campaigns including the L4D1 campaigns.

Last edited by Sev; 08-04-2013 at 12:35.
Sev is offline
V10
Senior Member
Join Date: Jan 2010
Location: Russia
Old 08-04-2013 , 14:07   Re: [EXTENSION] [L4D2] Melee Spawn Control (1.0.0.3)
Reply With Quote #9

Version updated to 1.0.0.3:
- Fixed memory leaks on Windows (thanks to psychonic)
__________________
Sry for my english.
I good speak on russian =)
V10 is offline
Electr000999
Senior Member
Join Date: Aug 2011
Location: Russia, Perm
Old 08-04-2013 , 14:09   Re: [EXTENSION] [L4D2] Melee Spawn Control (1.0.0.3)
Reply With Quote #10

Quote:
Extension gives cvar sm_melee_weapon_list for set list of spawned melee weapons at map.
sm_cvar sm_melee_weapon_list
[SM] Unable to find cvar: sm_melee_weapon_list

i put version (1.0.0.3), older delete
Electr000999 is offline
Send a message via Skype™ to Electr000999
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 18:20.


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