Raised This Month: $ Target: $400
 0% 

[L4D1/2] Direct Infected Spawn (Limit-Bypass)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Plugin ID:
6894
Plugin Version:
1.2.2
Plugin Category:
Admin Commands
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    144 
    Plugin Description:
    Spawn infected with a menu that is not limited by the director.
    Old 01-12-2020 , 12:08   [L4D1/2] Direct Infected Spawn (Limit-Bypass)
    Reply With Quote #1

    -= Credits =-

    - ProdigySim | ProdigySim created the whole code for indirectly getting signatures so the plugin can now last most updates to L4D2 without breaking!
    Here's the original fork of the new plugin by ProdigySim.


    Spawn specials without being limited by the director's enforced rules.
    Also works as a general infected spawning command plugin.

    -= Tested Games =-
    L4D1 (Plugin Version 1.1.4)
    L4D2


    -= Commands =-
    sm_dzspawn <zombie> <number> <mode> = Spawn a special infected, bypassing the limit enforced by the game. Example: sm_dzspawn hunter 10 1.
    For <number>, it is the number of the specified infected you'd like to spawn. If no number is defined, it defaults to 1.
    For <mode>, it toggles whether not to use a (simple) trace. If 1, the trace won't be used, and instead the infected will spawn at your location.
    If <zomb> isn't specified or is an invalid string, it'll spawn a common instead.


    Extra parameters for <zombie>: chase.

    sm_mdzs = Open a menu for spawning infected.

    -= Further Info =-
    - Spawned specials with this command will not have an infected player in Versus take over that bot.
    (Can be a good or bad thing.)

    -= Releases =-
    Code:
    Version 1.2.2
    - Swapped <mode> and <number> locations.
    - Fixed timer errors with getting entities.
    - Updated to work with SM 1.11.
    Version 1.2.1
    - Signature fix for Infected::AttackSurvivorTeam.
    - Plugin no longer completely fails if the AttackSurvivorTeam signature is invalid.
    Version 1.2.0
    - ProdigySim's method for indirectly getting signatures added.
    Version 1.1.4
    - Signature fix for 12/10/2020.
    Version 1.1.3
    - Signature fix for 12/2/2020.
    Version 1.1.2
    - Bride Witch now successfully calls a horde upon the witch being alerted.
    - Hotfix for The Last Stand update.
    Version 1.1.0
    - Added 'Bride Witch' option for L4D2. However, it is only a model change. Startling will not alert a horde.
    Version 1.0.9
    - Added chasing variant of common. Use "chase" as <zomb> parameter or choose "Chasing Common" in menu to spawn an automatically-chasing infected.
    Version 1.0.61
    - Discarding unneeded angle parameters. Could've potentially fixed the initial spawning sounds for the specials.
    Version 1.0.6
    - Prevented Jockey, Spitter and Charger showing in menu if game is L4D1.
    Version 1.0.5
    - Added witch and common to spawnlist.
    - Added sm_mdzs which opens up a menu to spawn infected.
    Version 1.0.1
    - Added <number> to spawn a number of infected in one go.
    - Command will attempt to kick dead infected bots if it detects the client count has been exceeded.
    Version 1.0.0
    - Initial release.
    -= How to Install =-
    - (OPTIONAL) Move the .txt file to your gamedata folder inside the Sourcemod directory. The plugin, by itself, will auto-generate the gamedata needed if it doesn't find one, hence this being optional.
    - Move the compiled .smx file to your plugins folder inside the Sourcemod directory.
    IF YOU HAVE AN OLDER GAMEDATA .txt FILE, YOU MUST EITHER DELETE AND LET THE NEW PLUGIN AUTO-GENERATE OR REPLACE IT WITH A NEW ONE!
    Attached Files
    File Type: txt spawn_infected_nolimit.txt (3.8 KB, 848 views)
    File Type: sp Get Plugin or Get Source (spawn_infected_nolimit.sp - 1269 views - 34.4 KB)
    __________________
    ragdoll spam, that is all

    Steam profile, where I game, obviously.
    Youtube channel, where I do Stick Death Maze animations and some other stuff.
    no plugin requests, sorry


    My Plugins:
    -search list-
    Modified Plugins:
    1 | 2 | 3 | 4

    Last edited by Shadowysn; 02-11-2022 at 09:24. Reason: Updated to Version 1.2.2
    Shadowysn is offline
    Timocop
    AlliedModders Donor
    Join Date: Mar 2013
    Location: Germany
    Old 01-12-2020 , 18:37   Re: [L4D1/2] Spawn Special Infected (Limit-Bypass)
    Reply With Quote #2

    https://forums.alliedmods.net/showthread.php?p=1214381
    __________________
    Timocop is offline
    Shadowysn
    Senior Member
    Join Date: Sep 2015
    Location: Location:
    Old 01-12-2020 , 23:18   Re: [L4D1/2] Spawn Special Infected (Limit-Bypass)
    Reply With Quote #3

    Quote:
    Originally Posted by Timocop View Post
    So I've coded in a plugin to use the NextBotCreatePlayerBot functions, only to have ended up making another dupe, with the original plugin making use of CreateFakeClient() to spawn them?



    ...Guess I should add more things then.
    __________________
    ragdoll spam, that is all

    Steam profile, where I game, obviously.
    Youtube channel, where I do Stick Death Maze animations and some other stuff.
    no plugin requests, sorry


    My Plugins:
    -search list-
    Modified Plugins:
    1 | 2 | 3 | 4

    Last edited by Shadowysn; 01-13-2020 at 03:56.
    Shadowysn is offline
    Timocop
    AlliedModders Donor
    Join Date: Mar 2013
    Location: Germany
    Old 01-13-2020 , 09:12   Re: [L4D1/2] Direct Infected Spawn (Limit-Bypass)
    Reply With Quote #4

    The way it works is by creating a fake client (fake client != bot) which is put into team 3 and ghost mode (or dead). When spawning a SI the ghost client will takeover the spawned SI. Thus, ignoring the VScript and Cvar spawning limit, since it only kicks bots over the limit not *fake* clients. After that you can just kick the fake client and a bot will takeover. Just like in versus if someone is in ghost mode and you spawn a SI, the player will takeover the spawned SI.
    Pretty clever.

    However z_spawn is bit broken, you may wanna switch to z_spawn_old to use <area> or <auto> arguments.

    Alternatively, you can also remove the VScript SI limits which overrides the limit cvars.
    https://forums.alliedmods.net/showthread.php?p=2535972
    __________________

    Last edited by Timocop; 01-13-2020 at 09:14.
    Timocop is offline
    Ellie
    Senior Member
    Join Date: Apr 2013
    Old 02-26-2020 , 14:31   Re: [L4D1/2] Direct Infected Spawn (Limit-Bypass)
    Reply With Quote #5

    Does this also allow the infected bots to auto spawn past the limit without the command?
    Ellie is offline
    Shadowysn
    Senior Member
    Join Date: Sep 2015
    Location: Location:
    Old 02-28-2020 , 10:57   Re: [L4D1/2] Direct Infected Spawn (Limit-Bypass)
    Reply With Quote #6

    Quote:
    Originally Posted by Ellie View Post
    Does this also allow the infected bots to auto spawn past the limit without the command?
    Nope, it just provides manual-spawning special infected past the limit. Sorry.
    __________________
    ragdoll spam, that is all

    Steam profile, where I game, obviously.
    Youtube channel, where I do Stick Death Maze animations and some other stuff.
    no plugin requests, sorry


    My Plugins:
    -search list-
    Modified Plugins:
    1 | 2 | 3 | 4
    Shadowysn is offline
    Ellie
    Senior Member
    Join Date: Apr 2013
    Old 03-07-2020 , 13:51   Re: [L4D1/2] Direct Infected Spawn (Limit-Bypass)
    Reply With Quote #7

    Quote:
    Originally Posted by Shadowysn View Post
    Nope, it just provides manual-spawning special infected past the limit. Sorry.
    Oh, alright. Thanks.
    Ellie is offline
    AbiHeorbrine
    Junior Member
    Join Date: May 2020
    Old 05-08-2020 , 04:34   Re: [L4D1/2] Direct Infected Spawn (Limit-Bypass)
    Reply With Quote #8

    Hello, im new to l4d2 modding. I was wondering if theres a way to put the menu on the Admin Menu. You know its kinda annoying to have a different menu at the same time so yeah. Thanks!
    AbiHeorbrine is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 07-23-2020 , 01:18   Re: [L4D1/2] Direct Infected Spawn (Limit-Bypass)
    Reply With Quote #9

    it looks like signature broken in l4d1 windows
    PHP Code:
    Exception reportedUnable to find NextBotCreatePlayerBot<Tanksignature in gamedata file.
    Blamingspawn_infected_nolimit.smx

    Exception reported
    Unable to find NextBotCreatePlayerBot<Smokersignature in gamedata file.
    Blamingspawn_infected_nolimit.smx 
    __________________
    HarryPotter is offline
    Shadowysn
    Senior Member
    Join Date: Sep 2015
    Location: Location:
    Old 07-23-2020 , 04:06   Re: [L4D1/2] Direct Infected Spawn (Limit-Bypass)
    Reply With Quote #10

    Quote:
    Originally Posted by fbef0102 View Post
    it looks like signature broken in l4d1 windows
    PHP Code:
    Exception reportedUnable to find NextBotCreatePlayerBot<Tanksignature in gamedata file.
    Blamingspawn_infected_nolimit.smx

    Exception reported
    Unable to find NextBotCreatePlayerBot<Smokersignature in gamedata file.
    Blamingspawn_infected_nolimit.smx 
    Weird... try deleting the gamedata file and let the plugin auto-generate a new one.
    If it doesn't, then try redownloading the plugin again.
    I just tried the latest one in L4D1, and all the options work.
    __________________
    ragdoll spam, that is all

    Steam profile, where I game, obviously.
    Youtube channel, where I do Stick Death Maze animations and some other stuff.
    no plugin requests, sorry


    My Plugins:
    -search list-
    Modified Plugins:
    1 | 2 | 3 | 4

    Last edited by Shadowysn; 07-23-2020 at 04:08.
    Shadowysn 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 12:25.


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