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

[L4D & L4D2] Mutant Tanks (v9.1, 3-20-2024)


Post New Thread Reply   
 
Thread Tools Display Modes
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 06-21-2018 , 19:01   Re: [L4D & L4D2] Super Tanks++ (v8.8, 06-21-2018)
Reply With Quote #121

I've always used the difficulty_adjustment_system with supertanks + to control the tanks' HP, and it always worked fine.

1 player - easy - 8000 hp (LF4d decrise 20% easy) = 6850
2 to 4 players - Nornal - sm_cvar z_tank_health 12,000
5 to 8 Players - Advanced - sm_cvar z_tank_health 18,000 (x2 LF4D) = 36,000
9 to 16 palyers - Expert - sm_cvar z_tank_health 30,000 (x2 LF4D) = 60,000

I disabled this to use the new configuration by players in supertanks ++

It would be much better for the HP of the tanks to increase by the number of players, but so far I can not.

I do not know why it does not work either.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie

Last edited by Mi.Cura; 06-21-2018 at 19:02.
Mi.Cura is offline
emsit
Member
Join Date: Apr 2015
Old 06-22-2018 , 02:05   Re: [L4D & L4D2] Super Tanks++ (v8.8, 06-21-2018)
Reply With Quote #122

I have modified the super tank to increase health based on the number of players. But I'm going to get some more sophisticated, because it's harder to keep the super tank up to date for me. This could be implemented by the author of the plug-in, or I'll do it later

PHP Code:
public Action tTimerTankSpawn(Handle timerany userid)
{
    
int client GetClientOfUserId(userid);
    if (
bIsBotInfected(client) && bIsTank(client))
    {
        switch (
g_iTankType[client])
        {
            case 
0vSetName(client);
            case 
1vSetName(client"Acidic Tank"truetruetrue25500255"255 0 0");
            case 
2vSetName(client"Ammo Tank"truetruetrue52035255"5 20 35");
            case 
3vSetName(client"Blind Tank"truetruetrue30200255"30 20 0");
            case 
4vSetName(client"Bomber Tank"truetruetrue151515255"15 15 15");
            case 
5vSetName(client"Boomer Tank"truetruetrue0065255"0 0 65");
            case 
6vSetName(client"Charger Tank"truetruetrue25255115255"25 255 115");
            case 
7vSetName(client"Clone Tank"truetruetrue14040255255"140 40 255");
            case 
8vSetName(client"Common Tank"truetruetrue190255250255"190 255 250");
            case 
9vSetName(client"Drug Tank"truetruetrue5520565255"55 205 65");
            case 
10vSetName(client"Fire Tank"truetruetrue2551350255"255 135 0");
            case 
11vSetName(client"Flash Tank"truetruetrue2552550150"255 255 0"RENDER_TRANSTEXTURE);
            case 
12vSetName(client"Flinger Tank"truetruetrue2540130255"25 40 130");
            case 
13vSetName(client"Ghost Tank"truetruetrue150150150150"150 150 150"RENDER_TRANSTEXTURE);
            case 
14vSetName(client"Gravity Tank"truetruetrue25500255"255 0 0");
            case 
15vSetName(client"Healer Tank"truetruetrue255255255255"255 255 255");
            case 
16vSetName(client"Hunter Tank"truetruetrue200200200255"200 200 200");
            case 
17vSetName(client"Hypnotizer Tank"truetruetrue25525045255"255 250 45");
            case 
18vSetName(client"Ice Tank"truetruetrue170240255200"170 240 255"RENDER_TRANSTEXTURE);
            case 
19vSetName(client"Idler Tank"truetruetrue104015255"10 40 15");
            case 
20vSetName(client"Inverter Tank"truetruetrue25065255255"250 65 255");
            case 
21vSetName(client"Jockey Tank"truetruetrue13000255"130 0 0");
            case 
22:
            {
                
vJumperEffect(client);
                
vSetName(client"Jumper Tank"truetruetrue2250205255"225 0 205");
            }
            case 
23vSetName(client"Meteor Tank"truetruetrue200200200255"200 200 200");
            case 
24vSetName(client"Puke Tank"truetruetrue14000255"140 0 0");
            case 
25vSetName(client"Restarter Tank"truetruetrue2252350255"225 235 0");
            case 
26vSetName(client"Rocketeer Tank"truetruetrue25518050255"255 180 50");
            case 
27vSetName(client"Shake Tank"truetruetrue0170255255"0 170 255");
            case 
28:
            {
                if (!
g_bShielded[client])
                {
                    
vShieldAbility(clienttrue);
                }
                
vSetName(client"Shield Tank"truetruetrue25125125255"25 125 125");
            }
            case 
29vSetName(client"Shove Tank"truetruetrue25100255"25 10 0");
            case 
30vSetName(client"Slugger Tank"truetruetrue0050255"0 0 50");
            case 
31:
            {
                
vSmokerEffect(client);
                
vSetName(client"Smoker Tank"truetruetrue200100145255"200 100 145");
            }
            case 
32vSetName(client"Spitter Tank"truetruetrue25580150255"255 80 150");
            case 
33vSetName(client"Stun Tank"truetruetrue25518545255"255 185 45");
            case 
34vSetName(client"Visual Tank"truetruetrue2554010255"255 40 10");
            case 
35vSetName(client"Warp Tank"truetruetrue2251000255"225 100 0");
            case 
36vSetName(client"Witch Tank"truetruetrue25521080255"255 210 80");
        }

////////////////////////////////////////////////////////////////////////////////////////////////////
        //if (g_cvSTExtraHealth[g_iTankType[client]].IntValue > 0) {
        //    int iHealth = GetClientHealth(client);
        //    SetEntityHealth(client, iHealth + g_cvSTExtraHealth[g_iTankType[client]].IntValue);
        //}

        
int ClientCount Client_GetCount(truefalse);
        
int iHealth GetClientHealth(client);
        
int ExtraHealth = (ClientCount 1) ? (g_cvSTExtraHealth[g_iTankType[client]].IntValue 0) ? g_cvSTExtraHealth[g_iTankType[client]].IntValue ClientCount iHealth GetRandomInt(25003500) * ClientCount iHealth : (g_cvSTExtraHealth[g_iTankType[client]].IntValue 0) ? g_cvSTExtraHealth[g_iTankType[client]].IntValue iHealth iHealth;
        
SetEntityHealth(client, (ExtraHealth 62400) ? 62400 ExtraHealth);
////////////////////////////////////////////////////////////////////////////////////////////////////

        
vThrowInterval(clientg_cvSTThrowInterval[g_iTankType[client]].FloatValue);
    }
}

stock int Client_GetCount(bool countInGameOnly=truebool countFakeClients=true)
{
    
int numClients 0;

    for (
int client=1client <= MaxClientsclient++) {

        if (!
IsClientConnected(client)) {
            continue;
        }

        if (
countInGameOnly && !IsClientInGame(client)) {
            continue;
        }

        if (!
countFakeClients && IsFakeClient(client)) {
            continue;
        }

        
numClients++;
    }

    return 
numClients;

__________________


Last edited by emsit; 06-22-2018 at 02:15.
emsit is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 06-22-2018 , 04:09   Re: [L4D & L4D2] Super Tanks++ (v8.8, 06-21-2018)
Reply With Quote #123

@emsit,

I'll add it, but it will look like this instead:

PHP Code:
if (g_cvSTExtraHealth[g_iTankType[client]].IntValue 0)
{
    
int iHealth GetClientHealth(client);
    
int iExtraHealth = (iGetHumanCount() > 1) ? ((g_cvSTExtraHealth[g_iTankType[client]].IntValue iGetHumanCount()) + iHealth) : (g_cvSTExtraHealth[g_iTankType[client]].IntValue iHealth);
    
SetEntityHealth(client, (iExtraHealth 62400) ? 62400 iExtraHealth);

If there's no extra health, then the health won't be modified. I think that would make it more compatible with other plugins like ABM where the Tank's health can also be modified via convars.
__________________
Psyk0tik is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 06-22-2018 , 04:13   Re: [L4D & L4D2] Super Tanks++ (v8.10, 06-22-2018)
Reply With Quote #124

Released v8.10 today.

View the CHANGELOG for details.
__________________

Last edited by Psyk0tik; 03-21-2019 at 07:24.
Psyk0tik is offline
ReCreator
Member
Join Date: Nov 2017
Location: Ukraine,Kyiv
Old 06-22-2018 , 15:43   Re: [L4D & L4D2] Super Tanks++ (v8.10, 06-22-2018)
Reply With Quote #125

Shove Tank does nothing, Shields PropaneTanks don't flew away just falling down, and witch Tank doesn't throw her...
Plugin ver 8.10, L4D1
Great job, Crasher. All fixes from v8.0 to v8.10 working well)
__________________
Sorry for my pure English...
ReCreator is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 06-22-2018 , 16:37   Re: [L4D & L4D2] Super Tanks++ (v8.10, 06-22-2018)
Reply With Quote #126

Shove Tank works just fine for me so I don't know what the issue is on your end. I'll take a look at Shield Tank and Witch Tank.
__________________
Psyk0tik is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 06-23-2018 , 02:24   Re: [L4D & L4D2] Super Tanks++ (v8.11, 06-22-2018)
Reply With Quote #127

Released v8.11 today.

View the CHANGELOG for details.

(Thanks ReCreator!)
__________________

Last edited by Psyk0tik; 03-21-2019 at 07:24.
Psyk0tik is offline
FatalOE71
Member
Join Date: Jun 2018
Old 06-23-2018 , 12:55   Re: [L4D & L4D2] Super Tanks++ (v8.11, 06-22-2018)
Reply With Quote #128

I tried to use your plugin, but for some reason it will not start saying it is missing a Datapack. Any help would be appreciated.
The exact error I get is this "Native "DataPack.DataPack" was not found."

I tried to compile this using the lastest Sourcemod 1.8.0-git6048 it fails to compile. The error is fatal error 183 can not read from file.

Thank you.

Last edited by FatalOE71; 06-23-2018 at 13:32.
FatalOE71 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 06-23-2018 , 13:29   Re: [L4D & L4D2] Super Tanks++ (v8.11, 06-22-2018)
Reply With Quote #129

Quote:
Originally Posted by FatalOE71 View Post
I tried to use your plugin, but for some reason it will not start saying it is missing a Datapack. Any help would be appreciated.
The exact error I get is this "Native "DataPack.DataPack" was not found."

Thank you.
Installation
Delete files from old versions of the plugin.
Extract the folder inside the .zip file.
Place all the contents into their respective folders.
If prompted to replace or merge anything, click yes.
Load up Super Tanks++.
Type sm_rcon sm plugins load super_tanks++ in console.
OR restart the server.
Customize Super Tanks++ (Config file generated on first load).
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie

Last edited by Mi.Cura; 06-23-2018 at 13:30.
Mi.Cura is offline
FatalOE71
Member
Join Date: Jun 2018
Old 06-23-2018 , 14:06   Re: [L4D & L4D2] Super Tanks++ (v8.11, 06-22-2018)
Reply With Quote #130

Quote:
Originally Posted by Mi.Cura View Post
Installation
Delete files from old versions of the plugin.
Extract the folder inside the .zip file.
Place all the contents into their respective folders.
If prompted to replace or merge anything, click yes.
Load up Super Tanks++.
Type sm_rcon sm plugins load super_tanks++ in console.
OR restart the server.
Customize Super Tanks++ (Config file generated on first load).
Yes I followed the directions and it does not work as stated above those are the error codes I get.


This is the online compiler for sourcemod output:

Your plugin failed to compile! Read the errors below:

SourcePawn Compiler 1.7.1
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

/home/groups/sourcemod/upload_tmp/phplhHnpd.sp(2) : fatal error 182: cannot read from file: "super_tanks++"

Compilation aborted.
1 Error.

If I try to compile it locally I get the same result, but the error code read fatal error 183.
Compiled other plugins with no problem both online and locally.

Last edited by FatalOE71; 06-23-2018 at 14:12.
FatalOE71 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 18:42.


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