View Single Post
Author Message
Machine
Senior Member
Join Date: Apr 2010
Old 08-28-2011 , 00:11   [L4D2] Super Tanks
Reply With Quote #1

Description:

This plugin adds 16 Unique Types of Finale Tanks to Coop and Realism gamemodes!
It will also control the number of tanks, how many per wave, and which tanks to fight in a finale.
Now you can tweak just about all the settings for the custom tanks.

The Tanks:

Spawn Tank - Spawns common zombies around itself, can cause vomit effect when it attacks
Spitter Tank - Throws spit projectiles, attacking it with melee can cause acid pools to appear at its feet
Warp Tank - Teleports to random survivors, deals double damage
Jockey Tank - Throws jockeys, has an increase in movement speed
Fire Tank - Throws flame rocks, attacking it with melee can cause spontaneous combustion
Cobalt Tank - No throw ability, but can move at super sonic speed causing a blurred effect when attacking
Ghost Tank - Invisible, can cause special infected around him to become invisible, attacking it with melee can make weapon drop
Meteor Tank - Attacking it will melee can cause meteor falls around itself
Ice Tank - When it attacks, it can cause player movement freeze
Shield Tank - This tank spawns with a shield, it throws propane tanks, destroy the propane tanks to disable its shield and kill it
Shock Tank - This tank can slow players movement speed when it attacks
Witch Tank - Any common zombies around this tank turn into witches, the witches are less powerful than normal
Heal Tank - This tank heals itself from being around other zombie types, it heals the fastest around other tanks
Smasher Tank - This tank will gib survivors when it strikes, its very slow and unlike all the others its not immune to molotovs
Jumper Tank - A constantly jumping tank looking for his next victim
Gravity Tank - Creates a gravity well to pull survivors towards it, his claw attack sends its victims hurling through the air

Cvars:

Code:
st_on			"Is Super Tanks Enabled?"    		//Default is 1
st_display_health    	"Display tank health in crosshair?"    	//Default is 1
st_wave1_tanks 		"How many tanks in the first wave?"	//Default is 1
st_wave2_tanks		"How many tanks in the second wave?"	//Default is 2
st_wave3_tanks		"How many tanks in the finale escape?"	//Default is 3
st_finale_only		"Create Super Tanks in finale only?"	//Default is 1
st_default_tanks	"Only use default tanks?"		//Default is 0

st_default_override		"Setting this to 1 will allow further customization to default tanks."		//Default is 0
st_default_extra_health		"Default Tanks receive this many additional hitpoints."				//Default is 0
st_default_speed		"Default Tanks default movement speed."						//Default is 1.0
st_default_throw		"Default Tanks rock throw ability interval."					//Default is 5.0
st_default_fire_immunity	"Are default Tanks immune to fire?"						//Default is 0

st_spawn			"Is Spawn Tank Enabled?"							//Default is 1
st_spawn_extra_health		"Spawn Tanks receive this many additional hitpoints."				//Default is 0
st_spawn_speed			"Spawn Tanks default movement speed."						//Default is 1.0
st_spawn_throw			"Spawn Tank rock throw ability interval."					//Default is 10.0
st_spawn_fire_immunity		"Is Spawn Tank immune to fire?"							//Default is 1
st_spawn_common_amount		"Number of common infected spawned by the Spawn Tank."				//Default is 10
st_spawn_common_interval	"Spawn Tanks common infected spawn interval."					//Default is 10

st_smasher			"Is Smasher Tank Enabled?"							//Default is 1
st_smasher_extra_health		"Smasher Tanks receive this many additional hitpoints."				//Default is 0
st_smasher_speed		"Smasher Tanks default movement speed."						//Default is 0.65
st_smasher_throw		"Smasher Tank rock throw ability interval."					//Default is 30.0
st_smasher_fire_immunity	"Is Smasher Tank immune to fire?"						//Default is 0
st_smasher_maim_damage		"Smasher Tanks maim attack will set victims health to this amount."		//Default is 1
st_smasher_crush_damage		"Smasher Tanks claw attack damage."						//Default is 300
st_smasher_remove_body		"Smasher Tanks crush attack will remove survivors death body?"			//Default is 1

st_warp				"Is Warp Tank Enabled?"								//Default is 1
st_warp_extra_health		"Warp Tanks receive this many additional hitpoints."				//Default is 0
st_warp_speed			"Warp Tanks default movement speed."						//Default is 1.0
st_warp_throw			"Warp Tank rock throw ability interval."					//Default is 9.0
st_warp_fire_immunity		"Is Warp Tank immune to fire?"							//Default is 1
st_warp_teleport_delay		"Warp Tanks Teleport Delay Interval."						//Default is 20

st_meteor			"Is Meteor Tank Enabled?"							//Default is 1
st_meteor_extra_health		"Meteor Tanks receive this many additional hitpoints."				//Default is 0
st_meteor_speed			"Meteor Tanks default movement speed."						//Default is 1.0
st_meteor_throw			"Meteor Tank rock throw ability interval."					//Default is 10.0
st_meteor_fire_immunity		"Is Meteor Tank immune to fire?"						//Default is 1
st_meteor_storm_delay		"Meteor Tanks Meteor Storm Delay Interval."					//Default is 30
st_meteor_storm_damage		"Meteor Tanks falling meteor damage."						//Default is 25.0

st_spitter			"Is Spitter Tank Enabled?"							//Default is 1
st_spitter_extra_health		"Spitter Tanks receive this many additional hitpoints."				//Default is 0
st_spitter_speed		"Spitter Tanks default movement speed."						//Default is 1.0
st_spitter_throw		"Spitter Tank rock throw ability interval."					//Default is 6.0
st_spitter_fire_immunity	"Is Spitter Tank immune to fire?"						//Default is 1

st_heal				"Is Heal Tank Enabled?"								//Default is 1
st_heal_extra_health		"Heal Tanks receive this many additional hitpoints."				//Default is 0
st_heal_speed			"Heal Tanks default movement speed."						//Default is 1.0
st_heal_throw			"Heal Tank rock throw ability interval."					//Default is 15.0
st_heal_fire_immunity		"Is Heal Tank immune to fire?"							//Default is 1
st_heal_health_commons		"Heal Tanks regeneration per second from being near a common infected."		//Default is 10
st_heal_health_specials		"Heal Tanks regeneration per second from being near a special infected."	//Default is 100
st_heal_health_tanks		"Heal Tanks regeneration per second from being near another tank."		//Default is 500

st_fire				"Is Fire Tank Enabled?"								//Default is 1
st_fire_extra_health		"Fire Tanks receive this many additional hitpoints."				//Default is 0
st_fire_speed			"Fire Tanks default movement speed."						//Default is 1.0
st_fire_throw			"Fire Tank rock throw ability interval."					//Default is 6.0
st_fire_fire_immunity		"Is Fire Tank immune to fire?"							//Default is 1

st_ice				"Is Ice Tank Enabled?"								//Default is 1
st_ice_extra_health		"Ice Tanks receive this many additional hitpoints."				//Default is 0
st_ice_speed			"Ice Tanks default movement speed."						//Default is 1.0
st_ice_throw			"Ice Tank rock throw ability interval."						//Default is 6.0
st_ice_fire_immunity		"Is Ice Tank immune to fire?"							//Default is 1

st_jockey			"Is Jockey Tank Enabled?"							//Default is 1
st_jockey_extra_health		"Jockey Tanks receive this many additional hitpoints."				//Default is 0
st_jockey_speed			"Jockey Tanks default movement speed."						//Default is 1.33
st_jockey_throw			"Jockey Tank jockey throw ability interval."					//Default is 7.0
st_jockey_fire_immunity		"Is Jockey Tank immune to fire?"						//Default is 1

st_ghost			"Is Ghost Tank Enabled?"							//Default is 1
st_ghost_extra_health		"Ghost Tanks receive this many additional hitpoints."				//Default is 0
st_ghost_speed			"Ghost Tanks default movement speed."						//Default is 1.0
st_ghost_throw			"Ghost Tank rock throw ability interval."					//Default is 15.0
st_ghost_fire_immunity		"Is Ghost Tank immune to fire?"							//Default is 1
st_ghost_disarm			"Does Ghost Tank have a chance of disarming an attacking melee survivor?"	//Default is 1

st_shock			"Is Shock Tank Enabled?"							//Default is 1
st_shock_extra_health		"Shock Tanks receive this many additional hitpoints."				//Default is 0
st_shock_speed			"Shock Tanks default movement speed."						//Default is 1.0
st_shock_throw			"Shock Tank rock throw ability interval."					//Default is 10.0
st_shock_fire_immunity		"Is Shock Tank immune to fire?"							//Default is 1
st_shock_stun_damage		"Shock Tanks stun damage."							//Default is 12
st_shock_stun_movement		"Shock Tanks stun reduce survivors speed to this amount."			//Default is 0.75

st_witch			"Is Witch Tank Enabled?"							//Default is 1
st_witch_extra_health		"Witch Tanks receive this many additional hitpoints."				//Default is 0
st_witch_speed			"Witch Tanks default movement speed."						//Default is 1.0
st_witch_throw			"Witch Tank rock throw ability interval."					//Default is 7.0
st_witch_fire_immunity		"Is Witch Tank immune to fire?"							//Default is 1
st_witch_max_witches		"Maximum number of witches converted from common infected by the Witch Tank."	//Default is 30

st_shield			"Is Shield Tank Enabled?"							//Default is 1
st_shield_extra_health		"Shield Tanks receive this many additional hitpoints."				//Default is 0
st_shield_speed			"Shield Tanks default movement speed."						//Default is 1.0
st_shield_throw			"Shield Tank propane throw ability interval."					//Default is 8.0
st_shield_fire_immunity		"Is Shield Tank immune to fire?"						//Default is 1
st_shield_shields_down_interval	"Shield Tanks shields disabled time."						//Default is 8.0

st_cobalt			"Is Cobalt Tank Enabled?"							//Default is 1
st_cobalt_extra_health		"Cobalt Tanks receive this many additional hitpoints."				//Default is 0
st_cobalt_speed			"Cobalt Tanks default movement speed."						//Default is 1
st_cobalt_throw			"Cobalt Tank rock throw ability interval."					//Default is 999.0
st_cobalt_fire_immunity		"Is Cobalt Tank immune to fire?"						//Default is 1
st_cobalt_Special_speed		"Cobalt Tanks movement value when speeding towards a survivor."			//Default is 2.5

st_jumper			"Is Jumper Tank Enabled?"							//Default is 1
st_jumper_extra_health		"Jumper Tanks receive this many additional hitpoints."				//Default is 0
st_jumper_speed			"Jumper Tanks default movement speed."						//Default is 1.20
st_jumper_throw			"Jumper Tank rock throw ability interval."					//Default is 999.0
st_jumper_fire_immunity		"Is Jumper Tank immune to fire?"						//Default is 1
st_jumper_jump_delay		"Jumper Tanks delay interval to jump again."					//Default is 3

st_gravity			"Is Gravity Tank Enabled?"							//Default is 1
st_gravity_extra_health		"Gravity Tanks receive this many additional hitpoints."				//Default is 0
st_gravity_speed		"Gravity Tanks default movement speed."						//Default is 1.0
st_gravity_throw		"Gravity Tank rock throw ability interval."					//Default is 10.0
st_gravity_fire_immunity	"Is Gravity Tank immune to fire?"						//Default is 1
st_gravity_pull_force		"Gravity Tanks pull force. Higher negative values equals greater pull forces."	//Default is -50.0
Changelog:

Code:
Version 1.0 
- Release
Version 1.1 
- Additional cvars added
Version 1.2 
- Jumper and Gravity tanks added
Version 1.2.1 
- Removed IsSoundPrecached Check; doesn't appear to function. Sounds should play now.
Version 1.2.5 
- Gravity tanks gravity well will be removed when gravity tank is dead.              
- Meteor Tank will randomly spawn meteor showers.
- New cvars st_fire_damage and st_default_tanks
Version 1.2.5 
- Gravity tanks gravity well will be removed when gravity tank is dead.              
- Meteor Tank will randomly spawn meteor showers.
- New cvars st_fire_damage and st_default_tanks
Version 1.3.0 
- Added shield globe for shield tank.
- Changed heal tanks glows to intensify depending on how much its healing itself.
- Properly remove death body of survivor when smashed by the smasher tank.              
- Removed obsolete cvar st_fire_damage
- Loads of new cvars for customization!
Version 1.3.1
- Fixed bug resulting in no custom tanks in finale events
Version 1.3.2
- Changed z_spawn to z_spawn_old following l4d2 update
Version 1.3.3
- Bug Fix
Version 1.3.4
- Same Bug from 1.3.3, another fix attempt
Requirements:

The supertanks.txt file must be downloaded and put in your gamedata folder!
This plugin is for coop/realism gamemodes only. The spawning of bots is handled differently in other gamemodes.

Future Plans:

More cvars!! Give me ideas

Other Info:

Credits to panxiaohai for Jockey and Meteor Tanks. I hope you don't mind if I package them with the others.
The health of the tanks can be controlled by adjusting the default L4D2 cvar z_tank_health
Attached Files
File Type: txt supertanks.txt (972 Bytes, 13615 views)
File Type: sp Get Plugin or Get Source (SuperTanks.sp - 11378 views - 122.8 KB)

Last edited by Machine; 09-17-2015 at 20:04. Reason: Version 1.3.4
Machine is offline