Skip to content

Shield Ability

Alfred Llagas edited this page Oct 20, 2020 · 7 revisions

Purpose

The Mutant Tank protects itself with a shield and throws propane tanks or gas cans.

Requirements

Requires mt_shield.smx to be installed.

Settings

"Mutant Tanks"
{
	"Tank #1"
	{
		// The Mutant Tank protects itself with a shield and throws propane tanks or gas cans.
		// Requires "mt_shield.smx" to be installed.
		"Shield Ability"
		{
			// Admins with one or more of these access flags have access to this ability.
			// --
			// Empty: No access flags are immune.
			// Not empty: These access flags are immune.
			"Access Flags"				""

			// Admins with one or more of these immunity flags are immune to this ability's effects.
			// Note: If the Mutant Tank has one or more of these immunity flags or has the same immunity flags as the survivor victim, the immunity is cancelled.
			// --
			// Empty: No immunity flags are immune.
			// Not empty: These immunity flags are immune.
			"Immunity Flags"			""

			// Allow human-controlled Mutant Tanks to use this ability.
			// Note: This setting can be overridden for specific players.
			// --
			// 0: OFF
			// 1: ON, players can use buttons to activate abilities.
			// 2: ON, abilities will activate automatically.
			"Human Ability"				"0"

			// Determines how many times human-controlled Mutant Tanks can use their abilities in one life.
			// Note: This setting can be overridden for specific players.
			// --
			// Minimum: 0
			// Maximum: 999999
			"Human Ammo"				"5"

			// Human-controlled Mutant Tanks must wait this long before using their abilities again.
			// Note: This setting can be overridden for specific players.
			// --
			// Minimum: 0
			// Maximum: 999999
			"Human Cooldown"			"30"

			// The Mutant Tank's ability effects last this long.
			// Note: This setting does not affect human-controlled Mutant Tanks unless the "Human Mode" setting is set to 0.
			// Note: This setting can be overridden for specific players.
			// --
			// Minimum: 1
			// Maximum: 999999
			"Human Duration"			"5"

			// The mode of how human-controlled Mutant Tanks activate their abilities.
			// Note: This setting can be overridden for specific players.
			// --
			// 0: Press buttons to activate corresponding abilities. Cooldown starts after ability is activated.
			// 1: Hold down buttons to keep corresponding abilities activated. Cooldown starts after the player lets go of the buttons.
			"Human Mode"				"1"

			// The ability is only effective toward human survivors.
			// Note: This setting can be overridden for specific players.
			// --
			// Minimum: 0
			// Maximum: 32
			// --
			// 0: OFF
			// 1-32: ON, the number of human survivors required to be present for this ability to be effective.
			"Requires Humans"			"1"

			// Enable this ability.
			// Note: This setting can be overridden for specific players.
			// --
			// 0: OFF
			// 1: ON
			"Ability Enabled"			"0"

			// Display a message whenever the ability activates/deactivates.
			// Note: This setting can be overridden for specific players.
			// --
			// 0: OFF
			// 1: ON
			"Ability Message"			"0"

			// The Mutant Tank has this many chances out of 100.0% to trigger the ability.
			// Note: This setting can be overridden for specific players.
			// --
			// Minimum: 0.0 (No chance)
			// Maximum: 100.0 (Highest chance)
			"Shield Chance"				"33.3"

			// These are the RGBA values of the Mutant Tank's shield prop's color.
			// Note: Any value less than 0 will output a random color.
			// Note: This setting can be overridden for specific players.
			// --
			// 1st number = Red
			// 2nd number = Green
			// 3rd number = Blue
			// 4th number = Alpha
			"Shield Color"				"-1,-1,-1,-1"

			// The Mutant Tank's shield reactivates after this many seconds passes upon destroying the shield.
			// Note: This setting can be overridden for specific players.
			// --
			// Minimum: 1
			// Maximum: 999999
			"Shield Delay"				"5"

			// Display the Mutant Tank's shield's health.
			// Note: This setting can be overridden for specific players.
			// --
			// Minimum: 0
			// Maximum: 11
			// --
			// 0: OFF
			// 1: ON, show name only.
			// 2: ON, show health only.
			// 3: ON, show health percentage only.
			// 4: ON, show healthbar only.
			// 5: ON, show name and health only.
			// 6: ON, show name and health percentage only.
			// 7: ON, show name and healthbar only.
			// 8: ON, show health and healthbar only.
			// 9: ON, show health percentage and healthbar only.
			// 10: ON, show name, health, and healthbar.
			// 11: ON, show name, health percentage, and healthbar.
			"Shield Display Health"			"11"

			// Display type of the Mutant Tank's shield's health.
			// Note: This setting can be overridden for specific players.
			// --
			// 0: OFF
			// 1: ON, show in hint text.
			// 2: ON, show in center text.
			"Shield Display Health Type"		"2"

			// The Mutant Tank's shield starts out with this much health.
			// Note: This setting can be overridden for specific players.
			// --
			// 0: OFF
			// 1-999999: The shield has this much health.
			"Shield Health"				"0"

			// The characters used to represent the health bar of the Mutant Tank's shield.
			// Note: This setting only takes effect when the "Shield Display Health" setting is enabled.
			// Note: This setting can be overridden for specific players.
			// --
			// Separate characters with commas (",").
			// --
			// Character limit: 2
			// Character limit for each character: 1
			// --
			// 1st character = Health indicator
			// 2nd character = Damage indicator
			"Shield Health Characters"		"],="

			// The type of the Mutant Tank's shield.
			// Note: This setting can be overridden for specific players.
			// --
			// 0: Bullet-based (Requires bullets to break shield.)
			// 1: Blast-based (Requires explosives to break shield.)
			// 2: Fire-based (Requires fires to break shield.)
			// 3: Melee-based (Requires melee weapons to break shield.)
			"Shield Type"				"1"
		}
	}
}

Example Format/Usage

"Mutant Tanks"
{
	"Tank #1"
	{
		"Shield Ability"
		{
			"Human Ability"				"2"
			"Human Ammo"				"1"
			"Human Cooldown"			"0"
			"Human Duration"			"5"
			"Ability Enabled"			"1"
			"Ability Message"			"0"
			"Shield Chance"				"33.3"
			"Shield Color"				"25,125,125,50"
			"Shield Delay"				"7"
			"Shield Display Health"			"11"
			"Shield Display Health Type"		"2"
			"Shield Health"				"0.0"
			"Shield Health Characters"		"],="
			"Shield Type"				"0"
		}
	}
}

Tips/Strategies

Solo

Under construction...

Multiplayer

Under construction...

Clone this wiki locally