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

[L4D] Tiny 4 Dead


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Aya Supay
Member
Join Date: Nov 2015
Plugin ID:
6478
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds 50% Chance Between Each infected Model
    Old 03-18-2019 , 22:17   [L4D] Tiny 4 Dead
    Reply With Quote #1



    Introduction

    Tiny 4 Dead takes the original [L4D2]RandomTank by Lux to the next level, make gameplay more interesting.

    This was just a simple small project altho i really hated the data input part

    enjoy

    Attached Files
    File Type: zip Tiny4Dead.zip (1.92 MB, 503 views)
    File Type: zip ServerTiny4Dead.zip (2.25 MB, 525 views)
    File Type: sp Get Plugin or Get Source (Tiny 4 Dead.sp - 950 views - 6.6 KB)

    Last edited by Aya Supay; 03-20-2019 at 00:54.
    Aya Supay is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 03-18-2019 , 23:12   Re: [L4D] Tiny 4 Dead
    Reply With Quote #2

    Nice you quoted me
    Quote:
    Originally Posted by Lux View Post
    This was just a simple small project altho i really hated the data input part
    Why are you doing an index check twice?
    The if statment is not going to work, should be !IsClientConnected(iClient)
    I'm unsure if you intended to filter bots from becoming small
    PHP Code:
            if(iClient || iClient MaxClients)
            return;
        
        if(
    iClient && IsClientConnected(iClient) && !IsClientInGame(iClient) && !IsPlayerAlive(iClient) && !IsFakeClient(iClient))
            return; 
    PHP Code:
        if(!IsClientInGame(iClient) && !IsPlayerAlive(iClient) && !IsFakeClient(iClient))// remove fakeclient check for bot support.
            
    return; 
    I'm not sure if you wanted people to have 100% chance of being tiny special
    switch(GetRandomInt(1,2)) is pointless the way you using them it still equals 100% chance for RealClients


    Example from 1 of your cases.
    PHP Code:
                case ZOMBIECLASS_HUNTER:
                {
                    switch(
    GetRandomInt(1,2)) 
                    {
                        case 
    1:
                        {
                            
    SetEntityModel(iClienttinyhunter);    
                        }
                        case 
    2:
                        {
                            
    SetEntityModel(iClienttinyhunter);    
                        }                    
                    }
                } 
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 03-19-2019 , 01:26   Re: [L4D] Tiny 4 Dead
    Reply With Quote #3

    Hey, your client checks are still wrong.

    It should be like this:
    PHP Code:
    static int iClient;
    iClient  GetClientOfUserId(GetEventInt(hEvent"userid"));

    // if client has invalid index OR is NOT connected OR is NOT in-game OR is NOT alive.
    if (iClient <= || iClient MaxClients || !IsClientConnected(iClient) || !IsClientInGame(iClient) || !IsPlayerAlive(iClient))
        return; 
    __________________
    Psyk0tik is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 03-19-2019 , 01:30   Re: [L4D] Tiny 4 Dead
    Reply With Quote #4

    IsClientInGame covers IsClientConnected, no need for both afaik.
    __________________
    Silvers is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 03-19-2019 , 04:16   Re: [L4D] Tiny 4 Dead
    Reply With Quote #5

    PHP Code:
    public APLRes AskPluginLoad2(Handle myselfbool latechar[] errorint err_max)
    {
        
    EngineVersion test GetEngineVersion();
        if (
    test != Engine_Left4Dead)
        {
            
    strcopy(errorerr_max"Plugin only supports Left 4 Dead 1.");
            return 
    APLRes_SilentFailure;
        }
        return 
    APLRes_Success;

    l4d2 can use.

    Last edited by AK978; 03-19-2019 at 06:12.
    AK978 is offline
    KRUTIK
    Senior Member
    Join Date: Feb 2019
    Location: Мос
    Old 03-19-2019 , 05:30   Re: [L4D] Tiny 4 Dead
    Reply With Quote #6

    Write which file to which folder to upload, will it work on L4D2 or not?
    KRUTIK is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 03-19-2019 , 17:00   Re: [L4D] Tiny 4 Dead
    Reply With Quote #7

    Very funny plugin. Thanks for the release!
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Aya Supay
    Member
    Join Date: Nov 2015
    Old 03-20-2019 , 00:56   Re: [L4D] Tiny 4 Dead
    Reply With Quote #8

    Quote:
    Originally Posted by Crasher_3637 View Post
    Hey, your client checks are still wrong.

    It should be like this:
    PHP Code:
    static int iClient;
    iClient  GetClientOfUserId(GetEventInt(hEvent"userid"));

    // if client has invalid index OR is NOT connected OR is NOT in-game OR is NOT alive.
    if (iClient <= || iClient MaxClients || !IsClientConnected(iClient) || !IsClientInGame(iClient) || !IsPlayerAlive(iClient))
        return; 

    thanks Crasher I'm busy in another plugin that I didn't realize this because I was tired
    Aya Supay is offline
    Aya Supay
    Member
    Join Date: Nov 2015
    Old 03-20-2019 , 00:58   Re: [L4D] Tiny 4 Dead
    Reply With Quote #9

    Quote:
    Originally Posted by AK978 View Post
    PHP Code:
    public APLRes AskPluginLoad2(Handle myselfbool latechar[] errorint err_max)
    {
        
    EngineVersion test GetEngineVersion();
        if (
    test != Engine_Left4Dead)
        {
            
    strcopy(errorerr_max"Plugin only supports Left 4 Dead 1.");
            return 
    APLRes_SilentFailure;
        }
        return 
    APLRes_Success;

    l4d2 can use.
    sorry but it is only for l4d1 I have no intention of adding support to l4d2
    Aya Supay is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 03-25-2019 , 17:43   Re: [L4D] Tiny 4 Dead
    Reply With Quote #10

    Quote:
    Originally Posted by Aya Supay View Post
    sorry but it is only for l4d1 I have no intention of adding support to l4d2
    That's sad...

    Last edited by BloodyBlade; 03-25-2019 at 17:44.
    BloodyBlade 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 04:19.


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