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

[L4D2] Uncommon Boomer Bile


Post New Thread Reply   
 
Thread Tools Display Modes
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 06-05-2010 , 13:05   Re: [L4D2] Uncommon Boomer Bile
Reply With Quote #11

Ive updated the Spawn Uncommons Plugin so you dont need to strip the cheats flag and stuff anymore, just use ServerCommand.


PHP Code:
public IsValidClient(client)
{
    if (
client == 0)
        return 
false;

    if (!
IsClientConnected(client))
        return 
false;
    
    
//if (IsFakeClient(client))
        //return false;
    
    
if (!IsClientInGame(client))
        return 
false;
    
    if (!
IsPlayerAlive(client))
        return 
false;

    if (!
IsValidEntity(client))
        return 
false;

    return 
true;

What is this? Its not even being used. Apart from that, there is no point in using IsValidEntity AFTER youve checked for anything else. Youll never need IsClientConnected either.

Also, why is it returning false when the function is no bool:

Code Improvement suggestions:

PHP Code:
        switch (HordeSpawn
        {
            case 
1:
            {
                new 
flags GetCommandFlags("sm_spawnuncommonhorde");
                
SetCommandFlags("sm_spawnuncommonhorde"flags & ~ADMFLAG_CHEATS);
                
FakeClientCommand(GetAnyClient(), "sm_spawnuncommonhorde riot");
                
SetCommandFlags("sm_spawnuncommonhorde"flags);
                
isUncommonBileTimeout true;
                
CreateTimer(GetConVarFloat(cvarUncommonBileTimeout), UncommonBileTimeout);
            }

            case 
2:
            {
                new 
flags GetCommandFlags("sm_spawnuncommonhorde");
                
SetCommandFlags("sm_spawnuncommonhorde"flags & ~ADMFLAG_CHEATS);
                
FakeClientCommand(GetAnyClient(), "sm_spawnuncommonhorde ceda");
                
SetCommandFlags("sm_spawnuncommonhorde"flags);
                
isUncommonBileTimeout true;
                
CreateTimer(GetConVarFloat(cvarUncommonBileTimeout), UncommonBileTimeout);
            }

            case 
3:
            {
                new 
flags GetCommandFlags("sm_spawnuncommonhorde");
                
SetCommandFlags("sm_spawnuncommonhorde"flags & ~ADMFLAG_CHEATS);
                
FakeClientCommand(GetAnyClient(), "sm_spawnuncommonhorde clown");
                
SetCommandFlags("sm_spawnuncommonhorde"flags);
                
isUncommonBileTimeout true;
                
CreateTimer(GetConVarFloat(cvarUncommonBileTimeout), UncommonBileTimeout);
            }

            case 
4:
            {
                new 
flags GetCommandFlags("sm_spawnuncommonhorde");
                
SetCommandFlags("sm_spawnuncommonhorde"flags & ~ADMFLAG_CHEATS);
                
FakeClientCommand(GetAnyClient(), "sm_spawnuncommonhorde mud");
                
SetCommandFlags("sm_spawnuncommonhorde"flags);
                
isUncommonBileTimeout true;
                
CreateTimer(GetConVarFloat(cvarUncommonBileTimeout), UncommonBileTimeout);
            }

            case 
5:
            {
                new 
flags GetCommandFlags("sm_spawnuncommonhorde");
                
SetCommandFlags("sm_spawnuncommonhorde"flags & ~ADMFLAG_CHEATS);
                
FakeClientCommand(GetAnyClient(), "sm_spawnuncommonhorde roadcrew");
                
SetCommandFlags("sm_spawnuncommonhorde"flags);
                
isUncommonBileTimeout true;
                
CreateTimer(GetConVarFloat(cvarUncommonBileTimeout), UncommonBileTimeout);
            }

            case 
6:
            {
                new 
flags GetCommandFlags("sm_spawnuncommonhorde");
                
SetCommandFlags("sm_spawnuncommonhorde"flags & ~ADMFLAG_CHEATS);
                
FakeClientCommand(GetAnyClient(), "sm_spawnuncommonhorde random");
                
SetCommandFlags("sm_spawnuncommonhorde"flags);
                
isUncommonBileTimeout true;
                
CreateTimer(GetConVarFloat(cvarUncommonBileTimeout), UncommonBileTimeout);
            }
        } 
Apart from stripping the CHEATS flag, you do the same thing over and over here while there is just one tiny variable changing. Why dont you only change the variable with the case: code, then do the rest after.
AtomicStryker is offline
ScaredKid
Member
Join Date: Apr 2010
Location: Ohio
Old 06-05-2010 , 23:24   Re: [L4D2] Uncommon Boomer Bile
Reply With Quote #12

Hey is it possible to make all uncommons be part of the whole zombie population on all maps??
ScaredKid is offline
mommafish
Member
Join Date: Mar 2010
Old 06-06-2010 , 06:15   Re: [L4D2] Uncommon Boomer Bile
Reply With Quote #13

izzt possible to make boomer vomit call ONLY uncommon horde?
mommafish is offline
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 06-06-2010 , 06:20   Re: [L4D2] Uncommon Boomer Bile
Reply With Quote #14

stop asking "isit possible" questions go wiki and check it out -_-
ghosthunterfool is offline
mommafish
Member
Join Date: Mar 2010
Old 06-06-2010 , 06:45   Re: [L4D2] Uncommon Boomer Bile
Reply With Quote #15

but if i put z_common_limit 0 there will be no non-puked mobs either ;( help me
mommafish is offline
chu1720
Senior Member
Join Date: Mar 2010
Location: Hong Kong
Old 06-07-2010 , 10:06   Re: [L4D2] Uncommon Boomer Bile
Reply With Quote #16

when Spawn uncommon Infected updated to 1.0.6, it doesn't work......
chu1720 is offline
Send a message via MSN to chu1720
Mortiegama
Senior Member
Join Date: Feb 2010
Old 06-07-2010 , 15:15   Re: [L4D2] Uncommon Boomer Bile
Reply With Quote #17

@Atomic - Thanks for the update, I'll have a new version with some changes out later this afternoon.

@Scaredkid - That's a question to ask Atomic in his Uncommon spawner plugin, not here.

@Mommafish - This plugin only calls the Uncommon, the rest of it is hard coded into the game.

@Chu - I know, there will be a new version out to fix that soon.
__________________
Mortiegama is offline
Mortiegama
Senior Member
Join Date: Feb 2010
Old 06-07-2010 , 18:29   Re: [L4D2] Uncommon Boomer Bile
Reply With Quote #18

The new version has been released to be compatible with Atomic's latest release. Unfortunately there are a few bugs in his plugin which have the following affect:

1) Spawning the uncommon horde is off and will not spawn random and is misspawning other uncommons. Riot will create CEDA, CEDA will create Clown, and Random is not currently working.
2) l4d2_spawn_uncommons_autoshuffle should be set to 0 or the uncommon horde will only contain a few uncommon and none of the types you have selected.
__________________
Mortiegama is offline
chu1720
Senior Member
Join Date: Mar 2010
Location: Hong Kong
Old 06-07-2010 , 22:42   Re: [L4D2] Uncommon Boomer Bile
Reply With Quote #19

Quote:
Originally Posted by Mortiegama View Post
The new version has been released to be compatible with Atomic's latest release. Unfortunately there are a few bugs in his plugin which have the following affect:

1) Spawning the uncommon horde is off and will not spawn random and is misspawning other uncommons. Riot will create CEDA, CEDA will create Clown, and Random is not currently working.
2) l4d2_spawn_uncommons_autoshuffle should be set to 0 or the uncommon horde will only contain a few uncommon and none of the types you have selected.
Still doesn't work...
chu1720 is offline
Send a message via MSN to chu1720
IronWarrior
Veteran Member
Join Date: Jan 2010
Old 06-08-2010 , 00:15   Re: [L4D2] Uncommon Boomer Bile
Reply With Quote #20

Any chance you can upload 1.1 again please?
IronWarrior 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 03:29.


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