Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[L4D1 & L4D2] Stagger Tank on Hit [v1.0.0 | 06-November-2021]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

This plugin staggers (explosive ammo effect) the Tank while using explosive ammo, like the other SI.

Features
  • Allow configuring the chance per ammo type. (NORMAL|EXPLOSIVE|INCENDIARY)
  • Allow configuring the chance per weapon type. (including melees and miniguns)

Cvars

A configuration file named "l4d_stagger_tank.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

PHP Code:

// Enables/Disables the plugin. 0 = Plugin OFF, 1 = Plugin ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_stagger_tank_enabled "1" 

Data file (data/l4d_stagger_tank.cfg)
PHP Code:

// Attributes explained:
//  "enable"     -> Enable stagger. "0" = Disable, "1" = Enable.
//  "normal"     -> Chance (1%-100%) to stagger in any hit. "0" = OFF.
//  "explosive"  -> Chance (1%-100%) to stagger by explosive ammo. L4D2 only. "0" = OFF.
//  "incendiary" -> Chance (1%-100%) to stagger by incendiary ammo. L4D2 only. "0" = OFF.

"l4d_stagger_tank"
{
    
"default"
    
{
        
"enable"       "1"
        "normal"       "0"
        "explosive"    "100"
        "incendiary"   "0"
    
}

    
"classnames"
    
{
        
// Primary Weapons - Slot 1
        // Tier 1
        // SMGs
        
"weapon_smg"
        
{
            
"enable"       "1"
        
}
        
"weapon_smg_silenced"
        
{
            
"enable"       "1"
        
}
        
"weapon_smg_mp5"
        
{
            
"enable"       "1"
        
}
        
// Shotguns
        
"weapon_pumpshotgun"
        
{
            
"enable"       "1"
        
}
        
"weapon_shotgun_chrome"
        
{
            
"enable"       "1"
        
}

        
// Tier 2
        // Rifles
        
"weapon_rifle"
        
{
            
"enable"       "1"
        
}
        
"weapon_rifle_desert"
        
{
            
"enable"       "1"
        
}
        
"weapon_rifle_ak47"
        
{
            
"enable"       "1"
        
}
        
"weapon_rifle_sg552"
        
{
            
"enable"       "1"
        
}
        
// Shotguns
        
"weapon_autoshotgun"
        
{
            
"enable"       "1"
        
}
        
"weapon_shotgun_spas"
        
{
            
"enable"       "1"
        
}
        
// Snipers
        
"weapon_hunting_rifle"
        
{
            
"enable"       "1"
        
}
        
"weapon_sniper_military"
        
{
            
"enable"       "1"
        
}
        
"weapon_sniper_scout"
        
{
            
"enable"       "1"
        
}
        
"weapon_sniper_awp"
        
{
            
"enable"       "1"
        
}
        
// Tier 3
        
"weapon_rifle_m60"
        
{
            
"enable"       "1"
        
}
        
"weapon_grenade_launcher"
        
{
            
"enable"       "1"
        
}

        
// Secondary Weapons - Slot 2
        // Pistols
        
"weapon_pistol"
        
{
            
"enable"       "0"
        
}
        
"weapon_pistol_magnum"
        
{
            
"enable"       "0"
        
}

        
// Miniguns
        
"prop_minigun"
        
{
            
"enable"       "0"
        
}
        
"prop_mounted_machine_gun"
        
{
            
"enable"       "0"
        
}
        
"prop_minigun_l4d1"
        
{
            
"enable"       "0"
        
}

        
// Melees - Slot 2
        
"weapon_chainsaw"
        
{
            
"enable"       "0"
        
}
        
"weapon_melee"
        
{
            
"enable"       "0"
        
}
    }

    
"melees"
    
{
        
"fireaxe"
        
{
            
"enable"       "0"
        
}
        
"frying_pan"
        
{
            
"enable"       "0"
        
}
        
"machete"
        
{
            
"enable"       "0"
        
}
        
"baseball_bat"
        
{
            
"enable"       "0"
        
}
        
"crowbar"
        
{
            
"enable"       "0"
        
}
        
"cricket_bat"
        
{
            
"enable"       "0"
        
}
        
"tonfa"
        
{
            
"enable"       "0"
        
}
        
"katana"
        
{
            
"enable"       "0"
        
}
        
"electric_guitar"
        
{
            
"enable"       "0"
        
}
        
"knife"
        
{
            
"enable"       "0"
        
}
        
"golfclub"
        
{
            
"enable"       "0"
        
}
        
"pitchfork"
        
{
            
"enable"       "0"
        
}
        
"shovel"
        
{
            
"enable"       "0"
        
}
        
"riotshield"
        
{
            
"enable"       "0"
        
}
    }


Admin Commands
  • sm_print_cvars_l4d_stagger_tank => Print the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler


Notes
  • INCENDIARY and EXPLOSIVE ammo only exist on L4D2.

To Do
  • Add client flag to config.
  • Add others SI to config.

Thank you!

Post Reply
  • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

Requirements

Installation
  • Put the "l4d_stagger_tank.cfg" file in your "\addons\sourcemod\data\" folder.
  • Put the "l4d_stagger_tank.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.

Attached Files
File Type: cfg l4d_stagger_tank.cfg (3.8 KB)
File Type: sp Get Plugin or Get Source (l4d_stagger_tank.sp - 16.4 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...