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

[L4D2] Infected Populations Editor (1.3) [05-Mar-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
8577
Plugin Version:
1.3
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
1 
Plugin Description:
Modify population.txt values by config instead of conflicting VPK files.
Old 10-25-2023 , 01:26   [L4D2] Infected Populations Editor (1.3) [05-Mar-2024]
Reply With Quote #1

About:
  • Modify population.txt values by config instead of conflicting VPK files.
  • Allows multiple populations.txt files that can be modified for specific maps.
  • See the \addons\sourcemod\data\l4d_population_editor. cfg config to set map specific configs.
  • The \scripts\population_default.txt file is a modified version of the games default population.txt (fixing percentages not adding up to 100).
  • The \scripts\population2.txt file is an example config, listing all available common infected models.



Thanks:
  • kochiurun119 - For the request and help testing.
  • ForgeTest - Various coding help and testing.
  • Lux - Reviewing code and reporting issues.



Admin Commands: (requires "z" flag)
PHP Code:
sm_pop_reload   // Reloads the Infected Populations Editor data config 


Changes:
Code:
1.3 (05-Mar-2024)
    - Added support for Special Infected NavArea placements. Requested by "Sev".
    - Plugin now requires the "Left 4 DHooks" plugin.
    - GameData file has been updated.

1.2 (07-Nov-2023)
    - Added feature to load configs by base mode: "coop", "realism", "survival", "versus", "scavenge" or defaults to "file" within the data config.
    - Added "population3.txt" scripts config example to spawn all types of available infected.

1.1 (26-Oct-2023)
    - Ignores non-common infected spawn areas allowing Special Infected to spawn.

1.0 (25-Oct-2023)
    - Initial release.


Requirements:
  1. Left 4 DHooks Direct
  2. SourceMod 1.11 or newer
  3. -OR-
  4. Extension: DHooks (Experimental dynamic detour support) and compile plugin manually


Installation:
  1. Download the .zip and extract the files to their respective folders in your servers \left4dead2\ folder.
Attached Files
File Type: zip l4d_population_editor.zip (22.0 KB, 172 views)
__________________

Last edited by Silvers; 03-05-2024 at 12:22.
Silvers is offline
Iizuka07
Senior Member
Join Date: Aug 2018
Location: Underground
Old 10-25-2023 , 05:50   Re: [L4D2] Infected Populations Editor (1.0) [25-Oct-2023]
Reply With Quote #2

Damn, this is pretty nice
__________________
死が待っている
Iizuka07 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 10-25-2023 , 12:24   Re: [L4D2] Infected Populations Editor (1.0) [25-Oct-2023]
Reply With Quote #3

I've been waiting for this for years.

Thanks Silvers
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-26-2023 , 02:02   Re: [L4D2] Infected Populations Editor (1.1) [26-Oct-2023]
Reply With Quote #4

Code:
1.1 (26-Oct-2023)
    - Ignores non-common infected spawn areas allowing Special Infected to spawn.
Not sure this was required, but ignores these sections and lets the game handle it now.


This plugin could be modified to control the type of Uncommon Infected spawning. But I'm not sure how best to approach this. Maybe an entry for each type in the data config, controlling their chance to spawn. That way you could control map specific values. If anyone has any ideas please reply.
__________________
Silvers is offline
kochiurun119
BANNED
Join Date: Sep 2014
Location: GB
Old 10-27-2023 , 08:25   Re: [L4D2] Infected Populations Editor (1.1) [26-Oct-2023]
Reply With Quote #5

niceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
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 11-07-2023 , 10:24   Re: [L4D2] Infected Populations Editor (1.2) [26-Oct-2023]
Reply With Quote #6

Code:
1.2 (07-Nov-2023)
    - Added feature to load configs by base mode: "coop", "realism", "survival", "versus", "scavenge" or defaults to "file" within the data config.
    - Added "population3.txt" scripts config example to spawn all types of available infected.
__________________
Silvers is offline
bigquach
New Member
Join Date: Nov 2023
Old 11-24-2023 , 08:06   Re: [L4D2] Infected Populations Editor (1.2) [26-Oct-2023]
Reply With Quote #7

Is this mod not working with Extended Common Infected mod from steam workshop ?
bigquach is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-24-2023 , 17:31   Re: [L4D2] Infected Populations Editor (1.2) [26-Oct-2023]
Reply With Quote #8

Quote:
Originally Posted by bigquach View Post
Is this mod not working with Extended Common Infected mod from steam workshop ?
I think it does and it should, you would have to add in the custom model names. Post them here and I can add them to the config at some point with a link to the Extended Common Infected mod.
__________________
Silvers is offline
bigquach
New Member
Join Date: Nov 2023
Old 11-25-2023 , 14:06   Re: [L4D2] Infected Populations Editor (1.2) [26-Oct-2023]
Reply With Quote #9

Quote:
Originally Posted by Silvers View Post
I think it does and it should, you would have to add in the custom model names. Post them here and I can add them to the config at some point with a link to the Extended Common Infected mod.
This one here:
https://steamcommunity.com/sharedfil...?id=2291140471
bigquach is offline
Sev
Veteran Member
Join Date: May 2010
Old 02-10-2024 , 15:49   Re: [L4D2] Infected Populations Editor (1.2) [26-Oct-2023]
Reply With Quote #10

Any idea what im doing wrong here?

Trying to get the tank to spawn inside the church on Death Toll and he simply won't get chosen.

This is the value I have now and he still doesn't spawn.

// random zombie type spawned at the church after the mini-finale
church
{
hunter 0
smoker 0
boomer 0
tank 100
}

The values before I had...

// random zombie type spawned at the church after the mini-finale
church
{
hunter 10
smoker 5
boomer 10
tank 75
}

In either scenario, he simply doesn't get chosen in the church.
Sev 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 06:43.


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