AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D] Tiny 4 Dead (https://forums.alliedmods.net/showthread.php?t=315046)

Aya Supay 03-18-2019 22:17

[L4D] Tiny 4 Dead
 
3 Attachment(s)
http://i.imgur.com/LRgUGya.jpg

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 :D

:)

Lux 03-18-2019 23:12

Re: [L4D] Tiny 4 Dead
 
Nice you quoted me
Quote:

Originally Posted by Lux (Post 2449291)
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);    
                    }                    
                }
            } 


Psyk0tik 03-19-2019 01:26

Re: [L4D] Tiny 4 Dead
 
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; 


Silvers 03-19-2019 01:30

Re: [L4D] Tiny 4 Dead
 
IsClientInGame covers IsClientConnected, no need for both afaik.

AK978 03-19-2019 04:16

Re: [L4D] Tiny 4 Dead
 
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.

KRUTIK 03-19-2019 05:30

Re: [L4D] Tiny 4 Dead
 
Write which file to which folder to upload, will it work on L4D2 or not?

Dragokas 03-19-2019 17:00

Re: [L4D] Tiny 4 Dead
 
Very funny plugin. Thanks for the release!

Aya Supay 03-20-2019 00:56

Re: [L4D] Tiny 4 Dead
 
Quote:

Originally Posted by Crasher_3637 (Post 2643979)
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 03-20-2019 00:58

Re: [L4D] Tiny 4 Dead
 
Quote:

Originally Posted by AK978 (Post 2643987)
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

BloodyBlade 03-25-2019 17:43

Re: [L4D] Tiny 4 Dead
 
Quote:

Originally Posted by Aya Supay (Post 2644090)
sorry but it is only for l4d1 I have no intention of adding support to l4d2

That's sad...


All times are GMT -4. The time now is 14:25.

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