Monthly Target: $400 Donations: $126
 31% 

[L4D & L4D2] MultiWitches v1.3


Post New Thread Reply   
 
Thread Tools Display Modes
Author
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Plugin ID:
1960
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    16 
    Plugin Description:
    Spawns any amount of witches you want per witch spawned by director/plugin/z_spawn
    Old 09-19-2010 , 14:05   [L4D & L4D2] MultiWitches v1.3
    Reply With Quote #1

    Well I've always wanted more witches in my game so I created a little something to spawn witches per witch.

    Cvars:
    auto created config by the name of l4d_multiwitches
    PHP Code:
    // This file was auto-generated by SourceMod (v1.4.0)
    // ConVars for plugin "l4d_multiwitches.smx"


    // Enable or Disable this plugin?
    // -
    // Default: "1"
    l4d_multiwitches_enable "1"

    // Which gamemodes allow extra witches
    // -
    // Default: "coop,realism,versus,teamversus"
    l4d_multiwitches_modes "coop,realism,versus,teamversus"

    // How many extra witches to create?
    // -
    // Default: "1"
    l4d_multiwitches_witches "1" 
    Note: Just because the plugin fires "z_spawn witch auto" doesn't mean a witch is guaranteed to be spawned, sometimes the director wont find a spot to place the witch. Sometimes witches aren't allowed to spawn.

    Changelog:

    1.0 - Initial Release

    1.0 - Re-release: Source must have gotten corrupted because the cvars were being listed with l4d2_ as the prefix instead of l4d_

    1.1 - Fixed to work with The Sacrifice as ServerCommand seems to be broken at the time of this post(10/8/10)

    1.2 - Temporary fix for versus and teamversus, witches during the daytime will work fine but sitting down witches will spawn on top of each other til I get some more time to fix that. Coop will work as before

    1.3 - Updated code to be easier to read. Cvar handles are invalidated when created. Debug now prints to server console as well. Crashes will no longer happen. Should work with versus now.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_multiwitches.sp - 2147 views - 2.8 KB)
    __________________

    Last edited by McFlurry; 11-27-2011 at 23:40.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    delirium_trigger
    SourceMod Donor
    Join Date: Apr 2009
    Location: Washington
    Old 09-19-2010 , 14:25   Re: [L4D & L4D2] MultiWitches
    Reply With Quote #2

    Now every map can be just like the Mill Town in Hard Rain!!! This will make players freak
    delirium_trigger is offline
    Ja-Forces
    Senior Member
    Join Date: Jul 2009
    Old 09-19-2010 , 15:26   Re: [L4D & L4D2] MultiWitches
    Reply With Quote #3

    http://forums.alliedmods.net/showthread.php?t=137431 so?
    Ja-Forces is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 09-19-2010 , 15:32   Re: [L4D & L4D2] MultiWitches
    Reply With Quote #4

    Yours uses a timer mine is simply a derivative that uses the witch_spawn event instead of timed spawns.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    loraliromance
    Senior Member
    Join Date: Apr 2009
    Old 10-08-2010 , 09:06   Re: [L4D & L4D2] MultiWitches
    Reply With Quote #5

    Hey there!

    This doesn't seem to be working for me >.<

    i was super excited!

    In my server.cfg I have

    sm_cvar versus_tank_chance_intro 1
    sm_cvar versus_tank_chance_finale 1
    sm_cvar versus_tank_chance 1
    sm_cvar versus_witch_chance_intro 0
    sm_cvar versus_witch_chance_finale 0
    sm_cvar versus_witch_chance 1


    Mostly cause I want tanks every level, too bad they can't have both without being glitchy!

    Either way every level but the first and the last a witch spawned but no additional witches at all

    Any idea what the problem is?

    I set the additional witch spawn to 2 in the multiwitches.cfg.

    <3

    thanks for the help
    loraliromance is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 10-09-2010 , 00:59   Re: [L4D & L4D2] MultiWitches v1.1
    Reply With Quote #6

    The problem is that ServerCommand appears to be broken right now. I updated it to find the first client in can find and execute the command on them as FakeClientCommand.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    loraliromance
    Senior Member
    Join Date: Apr 2009
    Old 10-09-2010 , 01:28   Re: [L4D & L4D2] MultiWitches v1.1
    Reply With Quote #7

    Awesome, thanks.

    I installed the new version and I'm about to give it a go and see how it works
    loraliromance is offline
    loraliromance
    Senior Member
    Join Date: Apr 2009
    Old 10-09-2010 , 04:32   Re: [L4D & L4D2] MultiWitches v1.1
    Reply With Quote #8

    I just played The sacrifice, no additional witches seemed to spawn when the value was set at 2.
    I'm setting it at 1 and trying an original L4D2 map and seeing what happens.


    *EDIT*


    Now for some reason on Dead Center I got no witches at all =/

    Last edited by loraliromance; 10-09-2010 at 05:10.
    loraliromance is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 10-09-2010 , 14:22   Re: [L4D & L4D2] MultiWitches v1.1
    Reply With Quote #9

    Try using this debug version. It will tell you whenever a witch is created in chat. The amount of witches created should be 1 + l4d_extra_witches
    It works for me so I can't be sure what the problem is.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_multiwitches.sp - 558 views - 2.7 KB)
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Elektramode
    Senior Member
    Join Date: Mar 2010
    Old 10-09-2010 , 14:50   Re: [L4D & L4D2] MultiWitches v1.1
    Reply With Quote #10

    the floating giraffe is hypnotic
    Elektramode 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 02:17.


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