#base robot_standard.pop #base robot_giant.pop tomboy { StartingCurrency 1984 CanBotsAttackWhileInSpawnRoom no RespawnWaveTime 0 PrecacheModel "models/helicopter_windows.mdl" Templates { T_TFBot_Helicopter_Base { Name "Hunter-Chopper" Class Scout Action Mobber Skill Expert Attributes SuppressFire UseCustomModel "models/empty.mdl" Scale 0.0001 AddCond { Index 52 } CustomWeaponModel { Slot 0 Model "models/empty.mdl" } CustomWeaponModel { Slot 1 Model "models/empty.mdl" } CustomWeaponModel { Slot 2 Model "models/empty.mdl" } CharacterAttributes { "not solid to players" 1 "voice pitch scale" 0 //"move speed bonus" 1.2 "no_jump" 1 "damage force reduction" 0.001 "airblast pushback scale" 0.0001 "airblast vertical pushback scale" 0.0001 "dmg from ranged reduced" 0 "dmg from melee increased" 0 "cannot be backstabbed" 1 "cannot pick up intelligence" 1 } } T_TFBot_Helicopter_Shoot { Name "Hunter-Chopper" Class Heavyweapons Action Mobber Skill Expert Attributes SuppressFire UseCustomModel "models/empty.mdl" Scale 0.1 EventChangeAttributes { Default { } NoTurning { HeadRotateSpeed 1 } } AddCond { Index 52 } CustomWeaponModel { Slot 0 Model "models/empty.mdl" } CustomWeaponModel { Slot 1 Model "models/empty.mdl" } CustomWeaponModel { Slot 2 Model "models/empty.mdl" } FireWeapon { Delay 3 Cooldown 8 Duration 4 Type "Primary" } FireInput { Target "no_turn" Action "Trigger" Delay 3 Cooldown 8 } FireInput { Target "default_attributes" Action "Trigger" Delay 7 //delay = FireWeapon delay + FireWeapon duration Cooldown 8 } ItemAttributes { ItemName TF_WEAPON_MINIGUN "bullets per shot bonus" 2 "fire rate bonus" 1.5 //"weapon spread bonus" 0.5 "projectile penetration heavy" 6 } CharacterAttributes { "not solid to players" 1 "move speed bonus" 0.5 "no_jump" 1 "dmg from ranged reduced" 0 "dmg from melee increased" 0 "cannot be backstabbed" 1 "cannot pick up intelligence" 1 } } } PointTemplates { Global { NoFixup 1 logic_relay { "targetname" "no_turn" "OnTrigger" "player,$DisplayTextCenter,NoTurning,0,-1" "OnTrigger" "!activator,$ChangeAttributes,NoTurning,0,-1" "OnTrigger" "helicopter_bot,$AddPlayerAttribute,move speed penalty|0.001,0,-1" } logic_relay { "targetname" "default_attributes" "OnTrigger" "!activator,$ChangeAttributes,Default,0,-1" "OnTrigger" "helicopter_bot,$RemovePlayerAttribute,move speed penalty,0,-1" } } Helicopter_Base_Init { NoFixup 1 OnSpawnOutput { Target "!activator" Action "AddOutput" Param "targetname helicopter_bot" Delay 0 } OnParentKilledOutput { Target "!activator" Action "AddOutput" Param "targetname " } // OnSpawnOutput // { // Target "!activator" // Action "AddOutput" // Param "gravity -0.00001" // Delay 0 // } // OnParentKilledOutput // { // Target "!activator" // Action "AddOutput" // Param "gravity 1" // Delay 0 // } info_target { "targetname" "helicopterhitbox_position" "origin" "0 0 450" } info_target { "targetname" "helicoptershooter_position" "origin" "0 0 420" } } Helicopter_Shooter_Init { OnSpawnOutput { Target "!activator" Action "AddOutput" Param "targetname helicopter_bot_shooter" Delay 0 } OnParentKilledOutput { Target "!activator" Action "AddOutput" Param "targetname " } OnSpawnOutput { Target "helicopter_relay" Action "FireUser1" Delay 0 } logic_relay { "targetname" "helicopter_relay" "OnUser1" "!activator,$TeleportToEntity,helicoptershooter_position,0,-1" "OnUser1" "!self,FireUser1,,0.01,-1" } //model prop_dynamic { "targetname" "helicopter_model" "model" "models/combine_helicopter.mdl"//"models/helicopter_windows.mdl" "origin" "0 0 100" "angles" "0 0 0" "DefaultAnim" "idle" "skin" "2" "solid" "0" } //glow, doesn't work // tf_glow // { // "GlowColor" "88 133 162" // "Mode" "0" // "target" "helicopter_model" // } } Helicopter_Tank_Init { OnSpawnOutput { Target "helicopter_relay" Action "FireUser1" Delay 0 } OnParentKilledOutput { Target "helicopter_bot*" Action "$Suicide" Delay 0 } OnParentKilledOutput { Target "helicopter_bot*" Action "AddOutput" Param "targetname " Delay 0.1 } logic_relay { "targetname" "helicopter_relay" "OnUser1" "!activator,$TeleportToEntity,helicopterhitbox_position,0,-1" "OnUser1" "!self,FireUser1,,0.01,-1" } } } SpawnTemplate "Global" ExtraSpawnPoint { Name "helicopter" TeamNum 3 X "-1375.0" Y "-4.2" Z "-127.0" } Wave { StartWaveOutput { Target wave_start_relay Action Trigger } DoneOutput { Target wave_finished_relay Action Trigger } WaveSpawn { Where helicopter TotalCount 1 MaxActive 1 SpawnCount 1 WaitBetweenSpawns 0 WaitBeforeStarting 0 TotalCurrency 0 Tank { SpawnTemplate "Helicopter_Tank_Init" Health 1000 Speed 0 Scale 1 DisableSmokestack 1 MaxTurnRate 0 Model "models/empty.mdl" StartSound "misc/null.wav" PingSound "misc/null.wav" EngineLoopSound "misc/null.wav" Gravity 0 DisableTracks 1 DisableChildModels 1 Name "tankboss" //StartingPathTrackNode "Helicopter_1" OnKilledOutput { Target boss_dead_relay Action Trigger } OnBombDroppedOutput { Target boss_deploy_relay Action Trigger } } } WaveSpawn { Where helicopter TotalCount 1 MaxActive 1 SpawnCount 1 WaitBetweenSpawns 0 WaitBeforeStarting 0 TotalCurrency 0 Support Limited RandomChoice { RandomChoice { TFBot { SpawnTemplate "Helicopter_Base_Init" Template T_TFBot_Helicopter_Base } } } } WaveSpawn { Where helicopter TotalCount 1 MaxActive 1 SpawnCount 1 WaitBetweenSpawns 0 WaitBeforeStarting 0 TotalCurrency 0 Support Limited RandomChoice { RandomChoice { TFBot { SpawnTemplate "Helicopter_Shooter_Init" Template T_TFBot_Helicopter_Shoot } } } } } }