Rotating Shield

From SigMod
Revision as of 06:29, 20 July 2022 by Tomboyfan52 (talk | contribs) (typo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template for a Projectile Shield rotating on pivot that can be used on bots and tanks and deal contact damage.

Templates[edit | edit source]

  • RShieldLvL1
    • Level 1 projectile shield
  • RShieldLvL2
    • Level 2 projectile shield
  • RShieldLvL1_Red
    • Red team equivalent
  • RShieldLvL2_Red

Example[edit | edit source]

#base rotating_shield.pop

WaveSchedule
{
	Wave
	{
		WaveSpawn
		{
			TotalCount	1
			WaitBeforeStarting 0
			Tank
			{
				Health	15000
				Name	Tank1
				Speed	100
				
				StartingPathTrackNode	tank_path_a_1	

				ClassIcon tank_shield
				Template RShieldLvL1

				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
		WaveSpawn
		{
			TotalCount	1
			WaitBeforeStarting 3
			Tank
			{
				Health	15000
				Name	Tank1
				Speed	100
				
				StartingPathTrackNode	tank_path_a_1	

				ClassIcon tank_shield
				Template RShieldLvL2

				OnKilledOutput
				{
					Target	boss_dead_relay
					Action	Trigger
				}
				OnBombDroppedOutput
				{
					Target	boss_deploy_relay
					Action	Trigger
				}
			}
		}
	}

	Wave
	{
		WaveSpawn
		{
			Where spawnbot
			TotalCount 1
			WaitBeforeStarting 0
			
			TFBot
			{
     				Class heavyfromteamfort

     				Action Mobber

     				CharacterAttributes
     				{
     				    "no_attack" 1
     				}

     				Template RShieldLvL1
			}
		}

		WaveSpawn
		{
			Where spawnbot
			TotalCount 1
			WaitBeforeStarting 0
			
			TFBot
			{
     				Class heavyfromteamfort

     				Action Mobber

     				CharacterAttributes
     				{
     				    "no_attack" 1
     				}

     				Template RShieldLvL2
			}
		}
	}
}

Download[edit | edit source]

Popfile: https://testing.potato.tf/tf/scripts/population/rotating_shield.pop

Lua file (loaded in rotating_shield.pop): https://testing.potato.tf/tf/scripts/projectile_shield_damage.lua

Optional tank icon: https://testing.potato.tf/tf/materials/hud/leaderboard_class_tank_shield.vmt