View Single Post
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 07-12-2018 , 06:58   Re: [L4D & L4D2] Super Tanks++ (v8.20, 07-12-2018)
Reply With Quote #174

I feel that there are some things I should mention here that isn't already in the README file on the GitHub repository.

1. If you plan on moving the Super Tanks++ category around on the admin menu, you'll have to do the following:

- Open up addons/sourcemod/configs/adminmenu_sorting.txt.
- Enter the "SuperTanks++" category like so:

PHP Code:
"Menu"
{
    
"PlayerCommands"
    
{
        
"item"        "sm_respawn"
        "item"        "sm_slay"
        "item"        "sm_slap"
        "item"        "sm_kick"
        "item"        "sm_ban"
        "item"        "sm_bandisconnected"
        "item"        "sm_gag"
        "item"        "sm_burn"        
        "item"        "sm_beacon"
        "item"        "sm_freeze"
        "item"        "sm_timebomb"
        "item"        "sm_firebomb"
        "item"        "sm_freezebomb"
    
}

    
"ServerCommands"
    
{
        
"item"        "sm_map"
        "item"        "sm_execcfg"
        "item"        "sm_reloadadmins"
    
}

    
"VotingCommands"
    
{
        
"item"        "sm_cancelvote"
        "item"        "sm_votemap"
        "item"        "sm_votekick"
        "item"        "sm_voteban"
    
}

    
"SuperTanks++"
    
{
        
"item"        "sm_tank"
    
}

    
"A Menu"
    
{
        
"item"        "sm_test"
    
}

    
"Zombie Spawner"
    
{
        
"item"        "sm_spawn"
    
}

You do not need to edit the source code of plugins with their own admin menu categories. The admin menu configs already allow you to move stuff around as you wish (to a certain extent).

2. When using the custom config options provided with the plugin, you *HAVE* the option to create different Tanks for different configs.

Example:

PHP Code:
// Settings for cfg/sourcemod/super_tanks++/super_tanks++.cfg
"Super Tanks++"
{
    
"General"
    
{
        
"Enable Custom Configs"            "1" // Enable custom configs
        
"Execute Config Types"            "1" // 1: Difficulty configs (easy, normal, hard, impossible)
    
}
    
"Tank 69"
    
{
        
"Tank Name"                "Psyk0tik Tank"
        "Tank Enabled"            "1"
        "Skin-Glow Colors"        "0,170,255,255|0,170,255"
        "Extra Health"            "250"
        "Fire Immunity"            "1"
    
}
}

// Settings for cfg/sourcemod/super_tanks++/difficulty_configs/impossible.cfg
"Super Tanks++"
{
    
"Tank 69"
    
{
        
"Tank Name"                "Idiot Tank"
        "Tank Enabled"            "1"
        "Skin-Glow Colors"        "1,1,1,255|1,1,1"
        "Extra Health"            "1"
    
}

Output: When the current difficulty is Expert mode (impossible), the Idiot Tank will spawn instead of Psyk0tik Tank as long as custom configs is being used.

These are basically temporary Tanks that you guys can create for certain situations, like if there's 5 players on the server, the map is c1m1_hotel, or even if the day is Thursday, etc.
__________________

Last edited by Psyk0tik; 07-12-2018 at 06:59.
Psyk0tik is offline