View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-05-2020 , 13:45   [L4D & L4D2] Special Infected Limit
Reply With Quote #124

About:
  • Uses the z_*_limit cvar values to limit the maximum number of each Special Infected type allowed to be alive.
  • This only limits them, does not increase the maximum allowed. There is another plugin for that (don't have link to hand or remember name).


CVars:

PHP Code:
// ==========
// PLUGIN CVARS:
// ==========
// 1=Bots. 2=Players. 3=Both. Who should be blocked from spawning when the limit is reached.
l4d_special_infected_limit_who "3"

// Special Infected Limit plugin version.
l4d_special_infected_limit_version



// ==========
// GAME CVARS:
// ==========
// L4D1:
z_gas_limit
z_exploding_limit
z_hunter_limit

// L4D2:
z_smoker_limit
z_boomer_limit
z_hunter_limit
z_spitter_limit
z_jockey_limit
z_charger_limit 


Changes:
Code:
1.0 (05-Jul-2020)
    - Initial release.

1.0 (30-Feb-2020)
    - Originally created.


Requirements:

Installation:
DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires DHooks!
  1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_special_infected_limit.sp - 373 views - 4.0 KB)
File Type: smx l4d_special_infected_limit.smx (4.6 KB, 290 views)
__________________

Last edited by Silvers; 06-26-2022 at 12:27.
Silvers is offline