Raised This Month: $32 Target: $400
 8% 

[L4D]Spawn x amount special/ common infected


Post New Thread Reply   
 
Thread Tools Display Modes
Author
HateMeh
Junior Member
Join Date: Jul 2009
Plugin ID:
1094
Plugin Version:
1.0.7
Plugin Category:
Admin Commands
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Spawn x amount of special/ common infected
    Old 08-15-2009 , 13:07   [L4D]Spawn x amount special/ common infected
    Reply With Quote #1

    Just a very simple plugin that allows you to spawn special/ common infected.

    I limited the amount you can spawn at once to 100 because of lag and issues leading to crashes with spawning large amounts of infected

    Commands:
    sm_spawn "name" "amount"
    sm_give "item" "name of player"

    its my first plugin and the code is a mess.
    i still intend to add some things but for that i need to know how to properly work with variables which i don't so if any1 wants to help send me a msg

    version:
    1.0.0: Initial release on my server
    1.0.1: added option to spawn smokers, hunters,boomers, tanks and common infected
    1.0.2: Added a notification on how to use the commands
    1.0.3: Optimized code and changed command to sm_spawn "name" "amount"
    1.0.4: updated command notification + need some help with some code that i commented out since it crashed the game
    1.0.5~1.0.6: not released
    1.0.7: added a sm_give command which gives a specific weapon/ item to 1 player
    Attached Files
    File Type: sp Get Plugin or Get Source (specialspawn.sp - 4587 views - 2.6 KB)
    File Type: sp Get Plugin or Get Source (specialspawnv2.sp - 4796 views - 2.3 KB)

    Last edited by HateMeh; 11-11-2009 at 11:57. Reason: Update
    HateMeh is offline
    Juan Handsock
    Member
    Join Date: Apr 2009
    Old 08-15-2009 , 15:24   Re: [L4D]Spawn x amount special/ common infected
    Reply With Quote #2

    Couldn't spawn more than a few boomers with this. Was really hoping to unleash a boomer army.
    Juan Handsock is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 08-15-2009 , 15:24   Re: [L4D]Spawn x amount special/ common infected
    Reply With Quote #3

    Well, its somehow better than aSpawn in terms that you can spawn multiple infected at time. Can be useful for fun purposes.
    __________________
    olj is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 08-15-2009 , 15:25   Re: [L4D]Spawn x amount special/ common infected
    Reply With Quote #4

    Quote:
    Originally Posted by Juan Handsock View Post
    Couldn't spawn more than a few boomers with this. Was really hoping to unleash a boomer army.
    z_versus_boomer_limit 100
    z_exploding_limit 100
    __________________
    olj is offline
    Juan Handsock
    Member
    Join Date: Apr 2009
    Old 08-15-2009 , 15:31   Re: [L4D]Spawn x amount special/ common infected
    Reply With Quote #5

    Quote:
    Originally Posted by olj View Post
    z_versus_boomer_limit 100
    z_exploding_limit 100
    Why thank you sir. But wouldn't that affect normal vs spawning like how 3-1s occur, but with more than 1 boomer?
    Juan Handsock is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 08-15-2009 , 15:37   Re: [L4D]Spawn x amount special/ common infected
    Reply With Quote #6

    Add
    PHP Code:
    if (args 1)
        {
            
    ReplyToCommand(client"Usage: sm_spawnwitch <amount>, 100 max");
            return 
    Plugin_Handled;
        } 
    into commands' callbacks, so if user didnt stated any arguments it will give commnd usage desription.
    i = i + 1 can be simplified to i += 1 or i++

    Add version cvar also, because its sexy
    __________________
    olj is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 08-15-2009 , 15:39   Re: [L4D]Spawn x amount special/ common infected
    Reply With Quote #7

    Quote:
    Originally Posted by Juan Handsock View Post
    Why thank you sir. But wouldn't that affect normal vs spawning like how 3-1s occur, but with more than 1 boomer?
    EDIT: I misread this. Yeh this will affect spawning - could be 4 boomers or 4 smokers or whatever.
    EDIT2: Just make an alias like: set max boomers 100;spawn 100 boomers for fun;set max boomers 1.
    __________________

    Last edited by olj; 08-15-2009 at 15:43.
    olj is offline
    Juan Handsock
    Member
    Join Date: Apr 2009
    Old 08-15-2009 , 15:50   Re: [L4D]Spawn x amount special/ common infected
    Reply With Quote #8

    Quote:
    Originally Posted by olj View Post
    EDIT: I misread this. Yeh this will affect spawning - could be 4 boomers or 4 smokers or whatever.
    EDIT2: Just make an alias like: set max boomers 100;spawn 100 boomers for fun;set max boomers 1.
    I'm making a radial menu for all that stuff right now actually.
    Juan Handsock is offline
    HateMeh
    Junior Member
    Join Date: Jul 2009
    Old 08-15-2009 , 16:09   Re: [L4D]Spawn x amount special/ common infected
    Reply With Quote #9

    if you use this in vs it will make a x amount of people the class you specified
    for example you do: sm_spawnboomer 100
    every1 in the infected team would become boomer.

    two exceptions are that the witch which spawns normally
    and common infected get spawned at your crosshair because of director being gay for me and doesnt want to spawn em with the auto command ....

    and olj ty ^^

    Last edited by HateMeh; 08-15-2009 at 16:13.
    HateMeh is offline
    HateMeh
    Junior Member
    Join Date: Jul 2009
    Old 08-15-2009 , 16:20   Re: [L4D]Spawn x amount special/ common infected
    Reply With Quote #10

    i think it would be possible for me to circumvent the max amount of boomers in the script itself by turning the max boomer value to 100 and then restoring it to its original state after the spawn?

    if interested i could add that for every class

    and whoops for double post

    Last edited by HateMeh; 08-15-2009 at 16:23.
    HateMeh 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 19:13.


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