////////////////////////////////////////////////// //Mission: Boss Battle Stage 3 (Test) // //Author: Yakibomb // //Released: November 21, 2021 // //Version: a14 // ////////////////////////////////////////////////// #base robot_berserker_a7.pop //#base yaki_berserker_test.pop #base yaki_berserker_initialize_logic.pop WaveSchedule { Templates { robot_attr_meleeonly { UseMeleeThreatPrioritization 1 Attributes DisableDodge Attributes Aggressive StripItemSlot 0 StripItemSlot 1 } robot_attributes { SpawnTemplate "OnWaveSpawn_template" CharacterAttributes { "airblast vulnerability multiplier" 0.5 } } s3_boss_chesspiece { NoPushaway 1 } } SpawnTemplate { Name "t_spawn_weapon_dispenser_ghost" Origin "-555 -1639 1410" } SpawnTemplate { Name "t_spawn_weapon_dispenser_ghost" Origin "-555 -1839 1410" } StartingCurrency 30000 RespawnWaveTime 1 CanBotsAttackWhileInSpawnRoom Yes FixedRespawnWaveTime Yes // CustomUpgradesFile "mvm_upgrades_medieval_yakibomb_20181025.txt" //STAGE 1 /////////////////////////////////////////////////////////////////////////////////////////////////////// Wave { // RedTeamWipeCausesWaveLoss 1 CustomWaveNumber 1 CustomMaxWaveNumber 0 Explanation { Line "{blue}Testing new Berserker version for Reverse MvM event." Line "{red}Have a nice day." } InitWaveOutput { Target wave_init_relay_s3 Action Trigger } StartWaveOutput { Target wave_start_relay //Universal. The only important one is the InitWaveOutput. Action Trigger } DoneOutput { Target wave_finished_relay //Universal. The only important one is the InitWaveOutput. Action trigger } //Example // WaveSpawn // { // Name "dummy1" // // StartWaveOutput // { // Target setup_sXaY_dummy // Action Trigger // } // WaitBeforeStarting 3 // FirstSpawnOutput // { // Target event_sXaY_dummy // Action Enable // } // DoneOutput // { // Target setup_sXaY_dummy // Action Trigger // } // } WaveSpawn { Name "s3_bomb" Where spawnbot_bomb WaitBeforeStarting 0 WaitBetweenSpawns 0 TotalCurrency 0 TFBot { Class Heavyweapons Skill Easy Health 3 Scale 1.01 ClassIcon enemy Attributes SuppressFire Action Idle CharacterAttributes { "active health degen" -1 "no_jump" 1 } } } WaveSpawn { DoneOutput { Target event_s3_boss_portal Action Trigger } WaitForAllSpawned "s3_bomb" Where spawnbot_s3boss_main TotalCount 1 MaxActive 1 SpawnCount 1 WaitBeforeStarting 2 WaitBetweenSpawns 0 TotalCurrency 11111 TFBot { Name "Poot" Class Heavyweapons Health 8000 StripItemSlot 0 StripItemSlot 1 AlwaysGlow 1 Scale 3.2 Skill Expert ClassIcon enemy_boss_giant UseCustomModel "models/bots/heavy/bot_heavy.mdl" Item "War Head" // ForceRomeVision 1 FastUpdate 1 WeaponRestrictions MeleeOnly Attributes UseBossHealthBar Attributes MiniBoss Attributes Aggressive Tag bot_reaction_minor Tag bot_boss NoIdleSound 1 SuppressTimedFetchFlag 1 AddTemplate robot_attributes AddTemplate s3_boss_chesspiece } } WaveSpawn { WaitForAllSpawned "s3_bomb" Where spawnbot_s3boss TotalCount 12 MaxActive 12 SpawnCount 1 WaitBeforeStarting 1 WaitBetweenSpawns 0 TotalCurrency 0 Support Limited RandomChoice { TFBot { Class Scout Skill Easy ClassIcon enemy WeaponRestrictions MeleeOnly Tag bot_reaction_major AddTemplate robot_attributes AddTemplate robot_attr_meleeonly AddTemplate s3_boss_chesspiece } TFBot { Class Soldier Skill Easy ClassIcon enemy WeaponRestrictions MeleeOnly Tag bot_reaction_major AddTemplate robot_attributes AddTemplate robot_attr_meleeonly AddTemplate s3_boss_chesspiece } TFBot { Class Pyro Skill Easy ClassIcon enemy WeaponRestrictions MeleeOnly Tag bot_reaction_major AddTemplate robot_attributes AddTemplate robot_attr_meleeonly AddTemplate s3_boss_chesspiece } TFBot { Class Demoman Skill Easy ClassIcon enemy WeaponRestrictions MeleeOnly Tag bot_reaction_major AddTemplate robot_attributes AddTemplate robot_attr_meleeonly AddTemplate s3_boss_chesspiece } TFBot { Class Sniper Skill Easy ClassIcon enemy WeaponRestrictions MeleeOnly Tag bot_reaction_major AddTemplate robot_attributes AddTemplate robot_attr_meleeonly AddTemplate s3_boss_chesspiece } } } } Wave { CustomWaveNumber 2 CustomMaxWaveNumber 0 WaveSpawn { WaitBeforeStarting 5 } WaveSpawn { Name "s3_bomb" Where spawnbot_bomb WaitBeforeStarting 0 WaitBetweenSpawns 0 TotalCurrency 0 TFBot { Class Heavyweapons Skill Easy Health 3 Scale 1.01 ClassIcon enemy Attributes SuppressFire Action Idle CharacterAttributes { "active health degen" -1 "no_jump" 1 } } } WaveSpawn { DoneOutput { Target event_s3_boss_portal Action Trigger } WaitForAllSpawned "s3_bomb" Where spawnbot_s3boss_main TotalCount 1 MaxActive 1 SpawnCount 1 WaitBeforeStarting 2 WaitBetweenSpawns 0 TotalCurrency 11111 TFBot { Name "Poot" Class Heavyweapons Health 8000 StripItemSlot 0 StripItemSlot 1 AlwaysGlow 1 Scale 3.2 Skill Expert ClassIcon enemy_boss_giant UseCustomModel "models/bots/heavy/bot_heavy.mdl" Item "War Head" // ForceRomeVision 1 FastUpdate 1 WeaponRestrictions MeleeOnly Attributes UseBossHealthBar Attributes MiniBoss Attributes Aggressive Tag bot_reaction_minor Tag bot_boss NoIdleSound 1 SuppressTimedFetchFlag 1 AddTemplate robot_attributes AddTemplate s3_boss_chesspiece } } } Wave { CustomWaveNumber 3 CustomMaxWaveNumber 0 WaveSpawn { WaitBeforeStarting 5 } } SpawnTemplate "initialize_logic" PlayerSpawnTemplate { Name "player_attributes_onspawn" } // PlayerItemEquipSpawnTemplate // { // Name "Soldier_Item_HeaterShield" // ItemName "The Soldier's Sword" // Origin "0 0 0" // Bone "bip_lowerArm_L" // } PlayerItemEquipSpawnTemplate { Name "equip_dispenser_backpack" ItemName "Dispenser Backpack" Origin "0 0 0" Bone "bip_spine_2" } PlayerItemEquipSpawnTemplate { Name "equip_dispenser_ghost" ItemName "Dispenser Ghost" Origin "15 -38 15" Bone "bip_pelvis" } PlayerItemEquipSpawnTemplate { Name "equip_booze_banner" ItemName "The Booze Banner" } PlayerItemEquipSpawnTemplate { Name "equip_fireball" ItemName "The Fi'o'ball" } PlayerItemEquipSpawnTemplate { Name "equip_healing_beam" Origin "0 0 150" ItemName "The Healing Beam" } PlayerItemEquipSpawnTemplate { Name "equip_bowmagic" ItemName "The Magic Bow" } PlayerShootTemplate { Name shoot_bowmagic AttachToProjectile 1 ItemName "The Magic Bow" } PlayerShootTemplate { Name shoot_jarate_zombie Speed 1500 Offset "-3 0 40" Angles "0 0 0" OverrideShoot 1 ItemName "Zombie Jarate" } PlayerItemEquipSpawnTemplate { Name equip_eyelander ItemName "The Infinity Eyelander" } PlayerItemEquipSpawnTemplate { Name equip_spellbook_basic ItemName "Spellbook for Beginners" } PlayerItemEquipSpawnTemplate { Name equip_spellbook_invictus1 ItemName "Spellbook INVICTUS1" } PlayerItemEquipSpawnTemplate { Name equip_spellbook_invictus2 ItemName "Spellbook INVICTUS2" } PlayerShootTemplate { Name shoot_spellbook_invictus1 ItemName "Spellbook INVICTUS1" } PlayerShootTemplate { Name shoot_spellbook_firebrand ItemName "Spellbook CREPITUS" } PlayerItemEquipSpawnTemplate { Name equip_spellbook_bombinomicon ItemName "Spellbook BOMBINOMICON" } PlayerItemEquipSpawnTemplate { Name equip_head_alakablamicon ItemName "Alakablamicon" } PlayerShootTemplate //credit seelpit { Name shoot_fireball Speed 1500 Offset "-3 0 0" Angles "0 0 0" OverrideShoot 1 ItemName "The Fi'o'ball" } //PlayerShootTemplate //{ // Name shoot_starstunner // Speed 1500 // Offset "0 30 0" // Angles "0 30 0" // OverrideShoot 1 // ItemName "The Star-Seeing Stunner" //} ///////////////////// /// Sub - Classes /// //////////////////// PlayerItemEquipSpawnTemplate { Name Class_Scout_Chicken ItemName "Scout Sub-Class Chicken" } PlayerItemEquipSpawnTemplate { Name Class_Scout_Pilot ItemName "Scout Sub-Class Pilot" } PlayerItemEquipSpawnTemplate { Name Class_Soldier_Robot ItemName "Soldier Sub-Class Robot" } PlayerItemEquipSpawnTemplate { Name Class_Soldier_Crusader ItemName "Soldier Sub-Class Crusader" } PlayerItemEquipSpawnTemplate { Name Class_Pyro_Devil ItemName "Pyro Sub-Class Spider Thing" } PlayerItemEquipSpawnTemplate { Name Class_Pyro_Unicorn ItemName "Pyro Sub-Class Unicorn" } PlayerItemEquipSpawnTemplate { Name Class_Demoman_King ItemName "Demoman Sub-Class King" } PlayerItemEquipSpawnTemplate { Name Class_Demoman_Bomber ItemName "Demoman Sub-Class Bomber" } PlayerItemEquipSpawnTemplate { Name Class_Heavy_Monster ItemName "Heavy Sub-Class Mannvich Monster" } PlayerItemEquipSpawnTemplate { Name Class_Heavy_Bullman ItemName "Heavy Sub-Class Bull Man" } PlayerItemEquipSpawnTemplate { Name Class_Engineer_Dwarf ItemName "Engineer Sub-Class Dwarf" } PlayerItemEquipSpawnTemplate { Name Class_Engineer_Cyborg ItemName "Engineer Sub-Class Cyborg" } PlayerItemEquipSpawnTemplate { Name Class_Medic_Vampire ItemName "Medic Sub-Class Doctor Acula" } PlayerItemEquipSpawnTemplate { Name Class_Medic_Doktor ItemName "Medic Sub-Class Ze Mad Doktor" } PlayerItemEquipSpawnTemplate { Name Class_Sniper_Beastmaster ItemName "Sniper Sub-Class Beastmaster" } PlayerItemEquipSpawnTemplate { Name Class_Sniper_Hero ItemName "Sniper Sub-Class Hero" } PlayerItemEquipSpawnTemplate { Name Class_Spy_Phantom ItemName "Spy Sub-Class Phantom of the Opera" } PlayerItemEquipSpawnTemplate { Name Class_Spy_Zorro ItemName "Spy Sub-Class Zorro" } WaveStartCountdown 2 ForceHoliday 2 MaxActiveSkeletons 999 NoSkeletonSplit 1 NoThrillerTaunt 1 NoCritPumpkin 1 // NoJoinMidwave 1 NoRomevisionCosmetics 1 NoHolidayPickups 1 // NoReanimators 1 FixSetCustomModelInput 1 RespecEnabled 0 RemoveGrapplingHooks 1.5 BonusRatioHalf 1.1 BonusRatioFull 1.1 NoMissionInfo 0 // BotPushaway 0 StuckTimeMultiplier 5 DisableSound "Announcer.MVM_Bonus" DisableSound "Announcer.MVM_Wave_End" DisableSound "Announcer.MVM_Final_Wave_Start" DisableSound "Announcer.MVM_Final_Wave_End" PrecacheModel "models/props_halloween/ghost_no_hat.mdl" PrecacheModel "models/props_halloween/ghost_no_hat_red.mdl" PrecacheModel "models/props_gameplay/bottle001.mdl" PrecacheModel "models/player/medic_medieval_medigun.mdl" PrecacheSound "/vo/halloween_boo1.mp3" PrecacheSound "/vo/halloween_boo2.mp3" PrecacheSound "/vo/halloween_boo3.mp3" PrecacheSound "/vo/halloween_boo4.mp3" PrecacheSound "/vo/halloween_boo5.mp3" PrecacheSound "/vo/halloween_boo6.mp3" PrecacheSound "/vo/halloween_boo7.mp3" PlayerAttributes { // "not solid to players" 1 // "health regen" 1 // HeavyWeapons // { // "model scale" 1.2 // "hidden maxhealth non buffed" 100 // "mult stun resistance" 0.5 // } // Medic // { // "health drain" -4 // } } PlayerAddCond { Index 114 //See players through walls Index 76 //Ghost on death } ItemWhitelist { Allowed "saxxy" Allowed "tf_weapon_lunchbox_drink" // Allowed "tf_weapon_jar_milk" // Allowed "tf_weapon_cleaver" Allowed "tf_weapon_bat" Allowed "tf_weapon_bat_wood" Allowed "tf_weapon_bat_fish" Allowed "tf_weapon_bat_giftwrap" // Allowed "tf_weapon_buff_item" // Allowed "tf_weapon_parachute" Allowed "tf_weapon_shovel" Allowed "tf_weapon_katana" Allowed "tf_weapon_fireaxe" Allowed "tf_weapon_breakable_sign" Allowed "tf_weapon_slap" // Allowed "tf_weapon_jar_gas" // Allowed "tf_weapon_flaregun" // Allowed "tf_weapon_flaregun_revenge" // Allowed "tf_weapon_rocketpack" // Allowed "tf_weapon_cannon" Allowed "tf_wearable_demoshield" Allowed "tf_weapon_bottle" Allowed "tf_weapon_sword" Allowed "tf_weapon_stickbomb" // Allowed "tf_weapon_lunchbox" Allowed "tf_weapon_fists" Allowed "tf_weapon_wrench" Allowed "tf_weapon_robot_arm" // Allowed "tf_weapon_shotgun_building_rescue" // Allowed "tf_weapon_mechanical_arm" // Allowed "tf_weapon_laser_pointer" Allowed "tf_weapon_pda_engineer_build" Allowed "tf_weapon_pda_engineer_destroy" Allowed "tf_weapon_builder" Allowed "tf_weapon_crossbow" Allowed "tf_weapon_bonesaw" // Allowed "tf_weapon_compound_bow" // Allowed "tf_weapon_jar" Allowed "tf_weapon_club" Allowed "tf_weapon_knife" Allowed "tf_weapon_pda_spy" Allowed "tf_weapon_invis" // Allowed "tf_wearable" // Allowed "tf_powerup_bottle" // Allowed "tf_weapon_spellbook" Allowed "no_entity" } ItemBlacklist { Classname "tf_wearable" Classname "tf_powerup_bottle" // DefIndex 735 //Sapper // DefIndex 736 //Sapper // DefIndex 810 //Sapper // DefIndex 831 //Sapper // DefIndex 933 //Sapper // DefIndex 1080 //Sapper // DefIndex 1102 //Sapper } ////////////////////////// // Weapons and items // //////////////////////// OverrideSounds { "Weapon_BattalionsBackup.HornRed" "Scout.DodgeCanDrink" //Ball O' Bats and Healing Aura VO's reversed here "scout_sf13_spell_uber01" "scout_sf13_spell_generic04" "scout_sf13_spell_generic04" "scout_sf13_spell_uber01" "soldier_sf13_spell_uber01" "soldier_sf13_spell_generic04" "soldier_sf13_spell_generic04" "soldier_sf13_spell_uber01" "pyro_sf13_spell_uber01" "pyro_sf13_spell_generic04" "pyro_sf13_spell_generic04" "pyro_sf13_spell_uber01" "demoman_sf13_spell_uber01" "demoman_sf13_spell_generic04" "demoman_sf13_spell_generic04" "demoman_sf13_spell_uber01" "heavy_sf13_spell_uber01" "heavy_sf13_spell_generic04" "heavy_sf13_spell_generic04" "heavy_sf13_spell_uber01" "engineer_sf13_spell_uber01" "engineer_sf13_spell_generic04" "engineer_sf13_spell_generic04" "engineer_sf13_spell_uber01" "medic_sf13_spell_uber01" "medic_sf13_spell_generic04" "medic_sf13_spell_generic04" "medic_sf13_spell_uber01" "sniper_sf13_spell_uber01" "sniper_sf13_spell_generic04" "sniper_sf13_spell_generic04" "sniper_sf13_spell_uber01" "spy_sf13_spell_uber01" "spy_sf13_spell_generic04" "spy_sf13_spell_generic04" "spy_sf13_spell_uber01" } //All PrecacheModel "models/player/items/all_class/mvm_bombinomicon.mdl" //Scout PrecacheModel "models/weapons/w_models/w_guitar_scout/w_guitar_scout.mdl" PrecacheSound "weapons/guitar_strum.wav" PrecacheSound "weapons/guitar_impact2.wav" //Soldier PrecacheModel "models/weapons/c_models/c_soldier_sword_shield/c_soldier_sword_shield.mdl" PrecacheModel "models/weapons/c_models/c_soldier_booze_banner/c_soldier_booze_banner.mdl" //Pyro PrecacheModel "models/weapons/w_models/w_pitchfork_pyro/w_pitchfork_pyro.mdl" //Engineer PrecacheModel "models/weapons/w_models/w_masher_engineer/w_masher_engineer.mdl" //Medic PrecacheModel "models/workshop/weapons/c_models/c_crusaders_crossbow/c_crusaders_crossbow.mdl" PrecacheModel "models/weapons/w_models/w_medigun_healing_staff/w_medigun_healing_staff_tf2.mdl" //Heavy PrecacheModel "models/weapons/w_models/w_russian_resolve_heavy/w_russian_resolve_heavy.mdl" //Spy PrecacheModel "models/weapons/c_models/c_soldier_sword_noshield/c_soldier_sword_noshield.mdl" CustomWeapon { "Medieval Attributes" { OriginalItemName "CheatDetectedHonesty" "is_passive_weapon" 1 "drop health pack on kill" 1 "max health additive penalty" -75 "hidden maxhealth non buffed" 75 "dmg taken from crit reduced" 0.67 "dmg from melee increased" 0.5 "dmg taken from fire reduced" 0.5 "dmg taken from blast reduced" 0.5 "dmg taken from bullets reduced" 0.5 "health from healers reduced" 0.5 "health from packs decreased" 0.5 } //////////////// // Spellbooks // //////////////// "Spellbook for Beginners" //basic spellbook { OriginalItemName "Basic Spellbook" "special item description" "Upgrade your damn spellbook" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "Spellbook INVICTUS1" //heal book { OriginalItemName "Halloween Spellbook" "special item description" "Heal your allies better with this book!" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "Spellbook INVICTUS2" //heal book { OriginalItemName "Halloween Spellbook" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "Spellbook CREPITUS1" //damage book { OriginalItemName "Halloween Spellbook" "special item description" "Destroy your enemies better with this book!" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 // "override projectile type" 2 } "Spellbook FULUMENUS1" //speed book { OriginalItemName "Halloween Spellbook" "special item description" "Sub-Class fast as lightning itself with this book!" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 // "override projectile type" 2 } "Spellbook BOMBINOMICON" // BOMBS. SO MANY BOMBS. { OriginalItemName "Basic Spellbook" "custom item model" "models/player/items/all_class/mvm_bombinomicon.mdl" "special item description" "Deal with the devil in this fantastic Issue #1!" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 "override projectile type" 17 // "custom projectile model" "models/props_lakeside_event/bomb_temp.mdl" "damage bonus HIDDEN" 10 "mult projectile scale" 1.4 "mult projectile count" 4 "projectile spread angle penalty" 5 } ///////////////// // Class Items // ///////////////// "The Star-Seeing Stunner" { OriginalItemName "Mad Milk" "effect cond override" 73 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Bonkalele Throwable" { OriginalItemName "The Flying Guillotine" "custom item model" "models/weapons/w_models/w_guitar_scout/w_guitar_scout.mdl" "custom projectile model" "models/weapons/w_models/w_guitar_scout/w_guitar_scout.mdl" "custom hit sound" "weapons/guitar_impact2.wav" "effect cond override" 43 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Bonkalele" { OriginalItemName "Upgradeable TF_WEAPON_BAT" "custom item model" "models/weapons/w_models/w_guitar_scout/w_guitar_scout.mdl" "custom kill icon" "taunt_guitar_kill" "air dash count" 1 "special taunt" 1 "custom hit sound" "weapons/guitar_impact2.wav" // "custom impact sound" "weapons/guitar_strum.wav" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Heater Shield" { OriginalItemName "TF_WEAPON_ROCKETLAUNCHER" // "custom item model" "models/weapons/w_models/w_shield_heater_soldier/w_shield_heater_soldier.mdl" "fire input on hit" "!self^$FireUserAsActivator1^0" } "The Booze Banner" { OriginalItemName "The Concheror" "custom item model" "models/weapons/c_models/c_soldier_booze_banner/c_soldier_booze_banner.mdl" "special item description" "Drink to get drunk. Passively Regenerates." "mod soldier buff type" 2 "mod soldier buff range" 0 "increase buff duration HIDDEN" 999 "add cond when active" 65 } "The Soldier's Sword" { OriginalItemName "Upgradeable TF_WEAPON_SHOVEL" "custom item model" "models/weapons/c_models/c_soldier_sword_shield/c_soldier_sword_shield.mdl" "custom kill icon" "scout_sword" "melee cleave attack" 1 "mult dmgtaken from melee" 0.5 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 "is_a_sword" 1 } "The Fi'o'ball" { OriginalItemName "The Gas Passer" // "item_meter_charge_rate" 4 // "item_meter_damage_for_full_charge" 300 // "SPELL: Halloween pumpkin explosions" 1 "item_meter_charge_type" 1 // removing bitmask 0x02 apparently removes recharging meter via damage // "is invisible" 1 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "flameboi" { OriginalItemName "TF_WEAPON_FLAMETHROWER" "mod flamethrower spinup time" 3 "custom minigun spin sound" "Weapon_Minigun.Fire" "hidden primary max ammo bonus" 10 "fire input on hit" "!self^FireUser2^0" } "EoI Gas Passer" { OriginalItemName "The Gas Passer" "item_meter_charge_rate" 25 "item_meter_damage_for_full_charge" 300 // "item_meter_charge_type" 1 // removing bitmask 0x02 removes recharging meter via damage "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 "explode_on_ignite" 1 "dmg penalty vs players" 0.25 } "The Farmer's Fork" { OriginalItemName "Upgradeable TF_WEAPON_FIREAXE" "custom item model" "models/weapons/w_models/w_pitchfork_pyro/w_pitchfork_pyro.mdl" "custom kill icon" "back_scratcher" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Heraldic Targe" { OriginalItemName "The Chargin' Targe" // "is_passive_weapon" 1 } "targe" { OriginalItemName "The Chargin' Targe" "is_passive_weapon" 1 } "The Infinity Eyelander" { OriginalItemName "The Eyelander" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 "fire input on kill" "!activator^$FireUserAsActivator4^0" //eyelander infinite decaps "melee cleave attack" 1 "stay after regenerate" 1 } "The Berserker's Brawn" { OriginalItemName "tf_weapon_minigun" "custom item model" "models/weapons/w_models/w_russian_resolve_heavy/w_russian_resolve_heavy.mdl" "cannot be upgraded" 1 "provide on active" 1 "uber on damage taken" 0.1 "spunup_damage_resistance" 0 "spunup_push_force_immunity" 0 "ring of fire while aiming" 1 "add cond when active" 26 "minigun spinup time decreased" 0.5 "minigun no spin sounds" 1 "override projectile type" 9 "cannot taunt" 1 "no_attack" 1 // "mod max primary clip override" -1 "clip size penalty" 0.1 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Portable Ballista" { OriginalItemName "tf_weapon_minigun" "minigun spinup time decreased" 0.5 "minigun no spin sounds" 1 "override projectile type" 8 "projectile acceleration" 10000 "projectile acceleration start time" 0 "centerfire projectile" 1 "mult projectile scale" 2 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Knuckle Sandvich" { OriginalItemName "Upgradeable TF_WEAPON_FISTS" "mult dmg vs giants" 2.5 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Medieval Masher" { OriginalItemName "Necro Smasher" "custom item model" "models/weapons/w_models/w_masher_engineer/w_masher_engineer.mdl" "custom kill icon" "sledgehammer" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 "building max level" 1 "building scale" 0.8 "engy sentry radius increased" 0.8 } "Medieval PDA" { OriginalItemName "Upgradeable TF_WEAPON_PDA_ENGINEER_BUILD" "build small sentries" 1 "mult dispenser rate" 2 "building max level" 2 "building scale" 0.8 "engy sentry radius increased" 0.8 "engy sentry damage bonus" 0.5 "mult firerocket rate" 1.2 "mvm sentry ammo" 0.5 } "The Gunslinger" { OriginalItemName "The Gunslinger" "engy disposable sentries" 1 } "The Cleric's Crossbow" { OriginalItemName "The Crusader's Crossbow" "add cond on hit" 27 "add cond on hit duration" 7.5 "special item description" "On Hit: Target is covered with Mad Milk for 8 seconds" "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Cleric's Crossbow2" { OriginalItemName "Upgradeable TF_WEAPON_SYRINGEGUN_MEDIC" "custom item model" "models/workshop/weapons/c_models/c_crusaders_crossbow/c_crusaders_crossbow.mdl" "special item description" "On Hit: Target is covered with Mad Milk for 8 seconds" "override projectile type" 11 "ubercharge ammo" 1 "add cond on hit" 27 "add cond on hit duration" 7.5 "projectile acceleration" 10000 "projectile acceleration start time" 0 "centerfire projectile" 1 "mult projectile scale" 2 "mod max primary clip override" -1 "mod use metal ammo type" 1 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Healing Beam" { //notes //setting teamnum to mediguns change the particles OriginalItemName "The Quick-Fix" "effect cond override" "5" "enables aoe heal" 1 "special taunt" 1 "custom item model" "models/weapons/w_models/w_medigun_healing_staff/w_medigun_healing_staff_tf2.mdl" // "is invisible" 1 // "is_passive_weapon" 1 // "overheal penalty" 0 } "The Heretic's Staff" { OriginalItemName "The Freedom Staff" "custom item model" "models/weapons/w_models/w_medigun_healing_staff/w_medigun_healing_staff_tf2.mdl" "special item description" "Taunt to heal allies." "custom kill icon" "freedom_staff" "enables aoe heal" 1 "special taunt" 1 "gesture speed increase" 1.1 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Magic Bow" { OriginalItemName "The Huntsman" "fire input on hit" "!self^$FireUserAsActivator1^0" } "Zombie Jarate" { OriginalItemName "Jarate" } "Jar of Bees" { OriginalItemName "Jarate" } "The Magic Kukri" { OriginalItemName "Upgradeable TF_WEAPON_CLUB" "fire input on hit" "!self^$FireUserAsActivator1^0" } "The Brown Recluse" { OriginalItemName "Upgradeable TF_WEAPON_REVOLVER" "special item description" "Fires full clips all at once." "fire full clip at once" 1 "can headshot" 1 "spread penalty" 1.5 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } "The Rogue's Rapier" { OriginalItemName "Upgradeable TF_WEAPON_KNIFE" "custom item model" "models/weapons/c_models/c_soldier_sword_noshield/c_soldier_sword_noshield.mdl" "custom kill icon" "scout_sword" "attachment scale" 0.6 "fire input on hit" "!self^$FireUserAsActivator1^0" "damage causes airblast" 1 } /////////////////// // Custom Equips // /////////////////// //"The Hardy Laurel" //"Honest Halo" //can stack several //"Damaged Capacitor" //can stack several //BODY ENVELOPING //3013 blood aura //3015 purple aura //3016 green aura "test equip" { OriginalItemName "Honest Halo" //WORKS VERY WELL can stack several!! // "custom item model" "models/empty.mdl" //isn't necessary. Use sniper_nohat instead. // "is_passive_weapon" 1 //isn't necessary // "add cond when active" 11 //doesn't work // "damage bonus HIDDEN" 99 //doesn't work } "SPELL Reraise" { OriginalItemName "Honest Halo" "is_passive_weapon" 1 "add cond when active" 32 "attach particle effect" 12 } "SPELL Regen" { OriginalItemName "Damaged Capacitor" "custom item model" "models/player/items/sniper/sniper_nohat.mdl" "attach particle effect" 80 "health regen" 25 } "SPELL Health" { OriginalItemName "Damaged Capacitor" "custom item model" "models/player/items/sniper/sniper_nohat.mdl" "attach particle effect" 79 "max health additive bonus" 100 } "SPELL Speed" { OriginalItemName "Damaged Capacitor" "custom item model" "models/player/items/sniper/sniper_nohat.mdl" "attach particle effect" 78 "move speed bonus" 2 } "SPELL Cool Effect" { OriginalItemName "Damaged Capacitor" "is_passive_weapon" 1 "custom item model" "models/player/items/sniper/sniper_nohat.mdl" "attach particle effect" 3015 "self add cond on hit" 5 "self add cond on hit duration" 5 } "Shield" { OriginalItemName "Damaged Capacitor" "custom item model" "models/weapons/w_models/w_shield_heater_soldier/w_shield_heater_soldier.mdl" } "Basic Armor" { OriginalItemName "Das Metalmeatencasen" "item color rgb" "6901050" "max health additive bonus" "60" } "Mega Armor" { OriginalItemName "Das Metalmeatencasen" "item color rgb" "6901050" "max health additive bonus" "100" } "Dispenser Backpack" { OriginalItemName "Packable Provisions" "special item description" "Heals allies 10 HP/sec." } "Dispenser Ghost" { OriginalItemName "Soul of 'Spenser's Past" "special item description" "Heals allies 5 HP/sec." } "Alakablamicon" { OriginalItemName "Alakablamicon" "special item description" "Regenerates spells every 10 seconds." // "force distribute currency on death" 1 } /////////////////// // Sub - Classes // /////////////////// /// Scout "Scout Sub-Class Chicken" { OriginalItemName "Damaged Capacitor" "special item description" "" } "Scout Sub-Class Pilot" //bandit? { OriginalItemName "Damaged Capacitor" "special item description" "" } /// Soldier "Soldier Sub-Class Robot" { OriginalItemName "Damaged Capacitor" "special item description" "" } "Soldier Sub-Class Crusader" { OriginalItemName "Brass Bucket" "special item description" "" } /// Pyro "Pyro Sub-Class Spider Thing" { OriginalItemName "Damaged Capacitor" "special item description" "" } "Pyro Sub-Class Unicorn" { OriginalItemName "Combustible Cutie" "special item description" "" } /// Demoman "Demoman Sub-Class King" { OriginalItemName "The Sole Saviors" "special item description" "" } "Demoman Sub-Class Bomber" { OriginalItemName "Damaged Capacitor" "special item description" "" } /// Heavy "Heavy Sub-Class Bull Man" { OriginalItemName "Damaged Capacitor" "special item description" "Brutish brawn, and not much brain. The Heavy's strength is the focus." } "Heavy Sub-Class Mannvich Monster" { OriginalItemName "Damaged Capacitor" "special item description" "In Soviet Russia, SANDVICH EATS YOU. Become a real meat shield." } /// Engineer "Engineer Sub-Class Cyborg" { OriginalItemName "Damaged Capacitor" "special item description" "" } "Engineer Sub-Class Dwarf" { OriginalItemName "Damaged Capacitor" "special item description" "" } /// Medic "Medic Sub-Class Doctor Acula" { OriginalItemName "Damaged Capacitor" "special item description" "Enhances Medic's Regenerative abilities." } "Medic Sub-Class Ze Mad Doktor" { OriginalItemName "Damaged Capacitor" "special item description" "Builds upon Medic's mastery of life and death." } /// Sniper "Sniper Sub-Class Beastmaster" { OriginalItemName "Mr. Mundee's Wild Ride" "special item description" "wanker" } "Sniper Sub-Class Hero" { OriginalItemName "Damaged Capacitor" "special item description" "wanker" } /// Spy "Spy Sub-Class Phantom of the Opera" { OriginalItemName "Damaged Capacitor" "special item description" "Cloak abilities are the focus." } "Spy Sub-Class Zorro" { OriginalItemName "Damaged Capacitor" "special item description" "Damage capabilities are the focus." } } PointTemplates { ///////////////////// /// Sub - Classes /// //////////////////// Class_Scout_Chicken { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "halloween item|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "halloween item" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Nugget Noggin" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Nugget Noggin" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Fowl Fists" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Fowl Fists" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Talon Trotters" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Talon Trotters" } } Class_Scout_Pilot { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "cannot_transmute|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "cannot_transmute" } } Class_Soldier_Robot { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "halloween item|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "halloween item" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Idiot Box" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Idiot Box" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Steel Pipes" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Steel Pipes" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Shoestring Budget" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Shoestring Budget" } } Class_Soldier_Crusader { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "cannot_transmute|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "cannot_transmute" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Brass Bucket" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Brass Bucket" } } Class_Pyro_Devil { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "halloween item|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "halloween item" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Blazing Bull" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Blazing Bull" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Fallen Angel" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Fallen Angel" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Tail From the Crypt" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Tail From the Crypt" } } Class_Pyro_Unicorn { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "cannot_transmute|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "cannot_transmute" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "The Magical Mercenary" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "The Magical Mercenary" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Combustible Cutie" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Combustible Cutie" } } Class_Demoman_King { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "halloween item|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "halloween item" } } Class_Demoman_Bomber { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "cannot_transmute|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "cannot_transmute" } } Class_Heavy_Monster { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "halloween item|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "halloween item" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Mannvich" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Mannvich" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Soviet Stitch-Up" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Soviet Stitch-Up" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Steel-Toed Stompers" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Steel-Toed Stompers" } } Class_Heavy_Bullman { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "cannot_transmute|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "cannot_transmute" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Bull Locks" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Bull Locks" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Bone-Cut Belt" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Bone-Cut Belt" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Minsk Beef" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Minsk Beef" } } Class_Engineer_Dwarf { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "halloween item|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "halloween item" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Garden Bristles" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Garden Bristles" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Mining Light" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Mining Light" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "The Trencher's Tunic" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "The Trencher's Tunic" } OnSpawnOutput { Target "rafmod_filter_subclass_engineer_dwarf" Action "TestActivator" } filter_tf_class { "targetname" "rafmod_filter_subclass_engineer_dwarf" "tfclass" "9" "OnPass" "!activator,$GiveItem,The Medieval Masher,0,1" "OnPass" "!activator,$AddCond,65,0,1" "OnPass" "!activator,$AddCond,75 0,0,1" //fixes modelscale from getting players stuck "OnPass" "!activator,SetModelScale,0.9,0,1" "OnPass" "!self,Kill,,0,1" "OnFail" "!self,Kill,,0,1" } OnParentKilledOutput { Target "!activator" Action "$AddCond" Param "75 0" } OnParentKilledOutput { Target "!activator" Action "SetModelScale" Param 1 } OnParentKilledOutput { Target "!activator" Action "$RemoveCond" Param "65" } } Class_Engineer_Cyborg { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "cannot_transmute|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "cannot_transmute" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Dead'er Alive" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Dead'er Alive" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Roboot" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Roboot" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Life Support System" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Life Support System" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Iron Lung" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Iron Lung" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Brain Interface" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Brain Interface" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Iron Fist" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Iron Fist" } OnSpawnOutput { Target "rafmod_filter_subclass_engineer_cyborg" Action "TestActivator" } filter_tf_class { "targetname" "rafmod_filter_subclass_engineer_cyborg" "tfclass" "9" "OnPass" "!activator,$GiveItem,The Gunslinger,0,1" "OnPass" "!activator,$AddCond,78,0,1" "OnPass" "!self,Kill,,0,1" "OnFail" "!self,Kill,,0,1" } OnParentKilledOutput { Target "!activator" Action "$RemoveCond" Param "78" } } Class_Medic_Vampire { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "halloween item|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "halloween item" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Transylvanian Toupe" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Transylvanian Toupe" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Vampiric Vesture" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Vampiric Vesture" } } Class_Medic_Doktor { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "cannot_transmute|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "cannot_transmute" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Einstein" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Einstein" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Dr. Gogglestache" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Dr. Gogglestache" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Emerald Jarate" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Emerald Jarate" } } Class_Sniper_Beastmaster { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "halloween item|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "halloween item" } OnSpawnOutput { Target "!activator" Action "$GiveItem" Param "Randolph the Blood-Nosed Caribou" } OnParentKilledOutput { Target "!activator" Action "$RemoveItem" Param "Randolph the Blood-Nosed Caribou" } } Class_Sniper_Hero { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "cannot_transmute|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "cannot_transmute" } } Class_Spy_Phantom { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "halloween item|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "halloween item" } } Class_Spy_Zorro { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "cannot_transmute|1" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "cannot_transmute" } } } ForceItem { All { Item "Medieval Attributes" // Item "Spellbook for Beginners" // Item "Remove Hat" } Scout { Item "The Star-Seeing Stunner" Item "The Bonkalele" } Soldier { // Item "The Heater Shield" Item "The Booze Banner" Item "The Soldier's Sword" } Pyro { // Item "flameboi" Item "The Fi'o'ball" // Item "EoI Gas Passer" Item "The Farmer's Fork" } Demoman { Item "The Heraldic Targe" Item "The Infinity Eyelander" } HeavyWeapons { // Item "The Berserker's Brawn" // Item "The Portable Ballista" Item "The Knuckle Sandvich" } Engineer { // Item "The Medieval Masher" // Item "Medieval PDA" } Medic { Item "The Cleric's Crossbow" // Item "The Healing Beam" Item "The Heretic's Staff" } Sniper { Item "The Magic Bow" Item "Jar of Bees" Item "The Magic Kukri" } Spy { Item "The Brown Recluse" Item "The Rogue's Rapier" } } /////////////////////////// /// Spellbook Templates /// /////////////////////////// PointTemplates { /// Basic Spellbook can be upgraded to give another spellbook on respawn equip_spellbook_basic { OnSpawnOutput { Target "rafmod_filter_spellbook_basic" Action "TestActivator" Delay 2 } filter_tf_condition //if bought Spellbook INVICTUS { "targetname" "rafmod_filter_spellbook_basic" "condition" "5" "OnPass" "!activator,$GiveItem,Spellbook INVICTUS1,0,1" "OnPass" "!activator,$RemoveItemAttribute,is_passive_weapon|9,0" "OnPass" "!activator,$RemoveItemAttribute,add cond when active|9,0" } filter_tf_condition //if bought Spellbook CREPITUS { "targetname" "rafmod_filter_spellbook_basic" "condition" "11" "OnPass" "!activator,$GiveItem,Spellbook CREPITUS1,0,1" } filter_tf_condition //if bought Spellbook FULUMENUS { "targetname" "rafmod_filter_spellbook_basic" "condition" "32" "OnPass" "!activator,$GiveItem,Spellbook FULUMENUS1,0,1" } filter_tf_condition //if bought Spellbook BOMBINOMICON { "targetname" "rafmod_filter_spellbook_basic" "condition" "123" "OnPass" "!activator,$GiveItem,Spellbook BOMBINOMICON,0,1" } RemoveIfKilled "rafmod_filter_spellbook_basic" } shoot_spellbook_invictus1 { /// stuff // OnSpawnOutput //fixes casting animation, but for some reason can cast several times // { // Target "@c@!activator" // Action "$SetProp$m_flChargeBeginTime" // Param "1" // Delay 1 // } OnSpawnOutput { Target "rafmod_filter_invictus" Action "TestActivator" Delay 0.3 } OnSpawnOutput { Target "rafmod_filter_invictus" Action "TestActivator" Delay 0.5 } OnSpawnOutput { Target "rafmod_filter_invictus" Action "TestActivator" Delay 0.8 } OnSpawnOutput { Target "rafmod_filter_invictus" Action "TestActivator" Delay 1 } OnSpawnOutput { Target "rafmod_filter_healing" Action "TestActivator" Delay 1 } filter_multi //if using healing aura spell { "targetname" "rafmod_filter_invictus" "filter01" "rafmod_filter_healing" "filter01" "rafmod_filter_conch" "OnPass" "spellbook_invictus_boosts,Enable,,0,1" "OnPass" "spellbook_invictus_boosts,AddOutput,OnStartTouch !activator:$AddCond:29 6:0:-1,0,1" } filter_tf_condition { "targetname" "rafmod_filter_healing" "condition" "73" "OnPass" "player,$DisplayTextChat,{red}{activator}{reset} has used their {darkgreen}Healing Aura{reset} Spell!,0,1" "OnFail" "player,$DisplayTextChat,{red}{activator}{reset} has used their {darkgreen}Blast Jump{reset} Spell!,0,1" } filter_tf_condition //conch bonus { "targetname" "rafmod_filter_conch" "condition" "56" } trigger_multiple { "targetname" "spellbook_invictus_boosts" "maxs" "825 825 825" "mins" "-825 -825 -825" "filtername" "rafmod_filter_red" "spawnflags" "1" "startdisabled" "1" "OnStartTouch" "!activator,$AddCond,57 1,0,-1" //uber "OnStartTouch" "!activator,$AddCond,73 3,0,-1" //healing } trigger_multiple //angles set to 30 degrees { "targetname" "spellbook_invictus_boosts" "maxs" "825 825 825" "mins" "-825 -825 -825" "angles" "0 30 0" "filtername" "rafmod_filter_red" "spawnflags" "1" "startdisabled" "1" "OnStartTouch" "!activator,$AddCond,57 1,0,-1" //uber "OnStartTouch" "!activator,$AddCond,73 3,0,-1" //healing } trigger_multiple //angles set to 60 degrees { "targetname" "spellbook_invictus_boosts" "maxs" "825 825 825" "mins" "-825 -825 -825" "angles" "0 60 0" "filtername" "rafmod_filter_red" "spawnflags" "1" "startdisabled" "1" "OnStartTouch" "!activator,$AddCond,57 1,0,-1" //uber "OnStartTouch" "!activator,$AddCond,73 3,0,-1" //healing } OnSpawnOutput { Target "rafmod_filter_invictus" Action "Kill" Delay 2 } OnSpawnOutput { Target "rafmod_filter_healing" Action "Kill" Delay 2 } OnSpawnOutput { Target "rafmod_filter_conch" Action "Kill" Delay 1 } OnSpawnOutput { Target "spellbook_invictus_boosts" Action "Kill" Delay 1 } } equip_spellbook_invictus1 { OnSpawnOutput { Target "rafmod_filter_spellbook_upgrade_invictus" Action "TestActivator" Delay 2 } filter_tf_condition //if bought Spellbook INVICTUS { "targetname" "rafmod_filter_spellbook_upgrade_invictus" "condition" "5" "OnPass" "!activator,$GiveItem,Spellbook INVICTUS2,0,1" "OnPass" "!activator,$RemoveItemAttribute,is_passive_weapon|9,0" "OnPass" "!activator,$RemoveItemAttribute,add cond when active|9,0" } RemoveIfKilled "rafmod_filter_spellbook_upgrade_invictus" } equip_spellbook_invictus2 { } shoot_spellbook_invictus2 { } equip_spellbook_bombinomicon { OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "killstreak tier|3" } OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "killstreak idleeffect|5" } OnSpawnOutput { Target "!activator" Action "$AddPlayerAttribute" Param "killstreak effect|2002" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "killstreak tier" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "killstreak idleeffect" } OnParentKilledOutput { Target "!activator" Action "$RemovePlayerAttribute" Param "killstreak effect" } } ////////////////// /// Equip Head /// ////////////////// equip_head_alakablamicon { OnSpawnOutput { Target "@c@!activator" Action "$GetProp$m_iSpellCharges" Param "spellbook_regenerator_math|SetValueNoFire|" } OnSpawnOutput { Target "@c@!activator" Action "$GetProp$m_iSelectedSpellIndex" Param "spellbook_regenerator_savespell|SetValueNoFire|" } OnSpawnOutput { Target "spellbook_regenerator_setup" Action "$Format" } OnSpawnOutput { Target "spellbook_regenerator_math" Action "GetValue" Delay 0.1 } math_counter { "targetname" "spellbook_regenerator_savespell" "OutValue" "!activator,$DisplayTextChat,,0,-1" "OnGetValue" "@c@!activator,$SetProp$m_iSelectedSpellIndex,,0,-1" } math_counter { "targetname" "spellbook_regenerator_math" "min" "0" "max" "9" "OutValue" "@c@!activator,$SetProp$m_iSpellCharges,,0,-1" "OutValue" "spellbook_regenerator_savespell,GetValue,,0,-1" "OutValue" "spellbook_regenerator_math,GetValue,,14.9,-1" // regeneration time "OnGetValue" "!activator,$PlaySound,Halloween.spell_pickup,0,-1" "OnGetValue" "@c@!activator,$GetProp$m_iSpellCharges,!caller|SetValueNoFire|,0,-1" "OnGetValue" "spellbook_regenerator_math,Add,1,0.1,-1" } logic_case { "targetname" "spellbook_regenerator_setup" "case16" "OnGetValue @c@!activator:$GetProp$m_iSelectedSpellIndex:%|SetValue|:0:-1" "case01" "spellbook_regenerator_savespell" "ondefault" "spellbook_regenerator_math,AddOutput,,0,1" "ondefault" "!caller,Kill,,0,1" } RemoveIfKilled "spellbook_regenerator_math" RemoveIfKilled "spellbook_regenerator_savespell" } spell_cap { OnSpawnOutput { Target "!activator" Action "$SetProp$m_iSpellCharges" Param 0 } } ////////////////// /// Equip Misc /// ////////////////// equip_armor_basic { } equip_shield_basic { } equip_dispenser_backpack { OnSpawnOutput { Target "rafmod_filter_engineer_for_ghost_dispenser" Action "TestActivator" Delay 0.1 } filter_tf_class { "targetname" "rafmod_filter_engineer_for_ghost_dispenser" "tfclass" "9" "Negated" "1" "OnPass" "pickup_dispenser_ghost,SetBuilder,,0,1" "OnPass" "!self,Kill,,0,1" } dispenser_touch_trigger { "targetname" "pickup_dispenser_backpack_trigger" "origin" "0 0 0" "mins" "-100 -100 -100" "maxs" "100 100 100" "spawnflags" "1" } pd_dispenser { "targetname" "pickup_dispenser_backpack" "teamnum" "2" // "defaultupgrade" "2" "spawnflags" "4" "touch_trigger" "pickup_dispenser_backpack_trigger" } } equip_dispenser_ghost { OnSpawnOutput { Target "rafmod_filter_engineer_for_ghost_dispenser" Action "TestActivator" Delay 0.1 } filter_tf_class { "targetname" "rafmod_filter_engineer_for_ghost_dispenser" "tfclass" "9" "Negated" "1" "OnPass" "pickup_dispenser_ghost,SetBuilder,,0,1" "OnPass" "!self,Kill,,0,1" } dispenser_touch_trigger { "targetname" "pickup_dispenser_ghost_trigger" "origin" "0 0 0" "mins" "-300 -300 -300" "maxs" "300 300 300" "spawnflags" "1" } rd_robot_dispenser { "targetname" "pickup_dispenser_ghost" "teamnum" "2" "spawnflags" "4" "touch_trigger" "pickup_dispenser_ghost_trigger" } } ///////////// /// Scout /// ///////////// shoot_starstunner { tf_projectile_jar_milk { "targetname" "jar_milk" "modelscale" "3" "fademindist" "-1" "renderamt" "255" "rendercolor" "255 255 255" } OnSpawnOutput { Target "jar_milk" Action "$SetOwner" Param "!activator" Delay 0 } } equip_starstunner { } /////////////// /// Soldier /// /////////////// equip_booze_banner { OnSpawnOutput { Target "rage_regenerator_math" Action "GetValue" Delay 0 } logic_branch { "targetname" "rage_regenerator_IsRageDraining" "OnTrue" "rage_regenerator_math,Add,0,0,-1" "OnFalse" "rage_regenerator_math,Add,5,0,-1" //regeneration amount } math_counter { "targetname" "rage_regenerator_math" "min" "0" "max" "100" // "OutValue" "!activator,$DisplayTextChat,,0,-1" //debug "OutValue" "!activator,$SetProp$m_flRageMeter,,0,-1" "OutValue" "rage_regenerator_math,GetValue,,1,-1" //regeneration time "OnGetValue" "!activator,$GetProp$m_flRageMeter,!caller|SetValueNoFire|,0,-1" "OnGetValue" "!activator,$GetProp$m_bRageDraining,rage_regenerator_IsRageDraining|SetValueTest|,0,-1" } filter_tf_condition { } RemoveIfKilled "rage_regenerator_math" RemoveIfKilled "rage_regenerator_IsRageDraining" } equip_booze_banner_old { // OnSpawnOutput // { // Target "!activator" // Action "$SetProp$m_flRageMeter" // Delay 1 // Param "100" // } OnSpawnOutput { Target "!activator" Action "$SetProp$m_bRageDraining" Param "0" } OnSpawnOutput { Target "equip_math_booze_banner_IsRageDraining" Action "Test" Param "0" } OnSpawnOutput { Target "equip_math_booze_banner_name_player" Action "FireUser1" } OnSpawnOutput { Target "equip_math_booze_banner_name_player" Action "$Format" Delay 0.1 } math_counter { "targetname" "equip_math_booze_banner" "max" "100" "min" "0" "startvalue" "100" //rage starting value "OutValue" "equip_math_booze_banner_IsRageDraining,Test,,0.8,-1" "OnGetValue" "" //for some reason needs to be here to work // "OnGetValue" "1552385,$GetProp$m_flRageMeter,1552385|$DisplayTextChat|rage,,0,-1"//debug // "OnGetValue" "1552385,$DisplayTextChat,,0,-1"//debug } logic_branch { "targetname" "equip_math_booze_banner_IsRageDraining" "OnTrue" "equip_math_booze_banner,Add,-100,0,-1" "OnFalse" "equip_math_booze_banner,Add,5,0.1,-1" "OnFalse" "equip_math_booze_banner,GetValue,,0.2,-1" } logic_case { "targetname" "equip_math_booze_banner_name_player" "case16" "OutValue %:$GetProp$m_bRageDraining:%|SetValue|:0:-1" "case16" "OnGetValue %:$SetProp$m_flRageMeter::0:-1" "case01" "playername" "case02" "equip_math_booze_banner_IsRageDraining" "ondefault" "equip_math_booze_banner,AddOutput,,0,-1" "OnUser1" "@c@!activator,$GetProp$m_hOwnerEntity,!caller|$SetKey$case01|,0,1" "OnUser1" "equip_math_booze_banner_IsRageDraining,$GetKey$targetname,!caller|$SetKey$case02|,0,1" "ondefault" "!self,Kill,,0,1" } logic_case { "targetname" "equip_math_booze_banner_name_player" "case16" "OnFalse %:$GetProp$m_flRageMeter:%|SetValueNoFire|:0:-1" "case01" "playername" "case02" "equip_math_booze_banner" "ondefault" "equip_math_booze_banner_IsRageDraining,AddOutput,,0,-1" "OnUser1" "@c@!activator,$GetProp$m_hOwnerEntity,!caller|$SetKey$case01|,0,1" "OnUser1" "equip_math_booze_banner,$GetKey$targetname,!caller|$SetKey$case02|,0,1" "ondefault" "!self,Kill,,0,1" } //cleanup OnParentKilledOutput { Target "equip_math_booze_banner" Action "Kill" } OnParentKilledOutput { Target "equip_math_booze_banner_IsRageDraining" Action "Kill" } } //////////// /// Pyro /// //////////// shoot_fireball //The Fi'o'ball { OnSpawnOutput { Target "fierball" Action "$setowner" Param "!activator" Delay 0.01 } tf_projectile_spellfireball { "targetname" "fierball" "origin" "0 0 0" "teamnum" "2" } OnSpawnOutput { Target "!activator" Action "$regenerate" Delay 0 } OnSpawnOutput { Target "!activator" Action "$GetKey$health" Param "fireball_math_sethealth|SetValue|" Delay 0 } math_counter { "targetname" "fireball_math_sethealth" "OutValue" "!activator,$SetKey$health,,0,1" "OutValue" "!self,Kill,,0,1" } } equip_fireball //The Fi'o'ball { } /////////////// /// Demoman /// /////////////// equip_eyelander { //upgrades //add regen per head //add more health per head //upgrade to ICELANDER OnSpawnOutput { Target "rafmod_eyelander_setup1" Action "FireUser1" Delay 0.5 } OnSpawnOutput { Target "rafmod_eyelander_setup2" Action "FireUser1" Delay 0.5 } OnSpawnOutput { Target "rafmod_eyelander_setup3" Action "FireUser1" Delay 0.6 } OnSpawnOutput { Target "rafmod_eyelander_setup1" Action "$Format" Delay 1 } OnSpawnOutput { Target "!activator" Action "Fireuser4" Delay 1.5 } logic_case { "targetname" "rafmod_eyelander_setup1" "case16" "ondefault %:AddOutput::0:-1" "case01" "player" "ondefault" "rafmod_eyelander_setup2,AddOutput,,0,1" // "ondefault" "player,$DisplayTextChat,,0,-1" "OnUser1" "@c@!activator,$GetProp$m_hOwnerEntity,!caller|$SetKey$case01|,0,1" "OnUser1" "rafmod_eyelander_setup2,$Format,,1,1" "OnUser1" "rafmod_eyelander_setup3,$Format,,1,1" } logic_case { "targetname" "rafmod_eyelander_setup2" "case16" "OnUser4 %:$GetProp$m_iDecapitations:%|SetValue|:0:1" "case01" "player" "case02" "rafmod_eyelander_headcount" // "ondefault" "player,$DisplayTextChat,,0,-1" "OnUser1" "@c@!activator,$GetProp$m_hOwnerEntity,!caller|$SetKey$case01|,0,1" } logic_case { "targetname" "rafmod_eyelander_setup3" "case16" "OutValue %:$TestEntity:%:0:-1" "case01" "rafmod_eyelander_condition_for_regen" "case02" "player" "ondefault" "rafmod_eyelander_headcount,AddOutput,,0,-1" // "ondefault" "player,$DisplayTextChat,,0,-1" "OnUser1" "@c@!activator,$GetProp$m_hOwnerEntity,!caller|$SetKey$case02|,0,1" } math_counter { "targetname" "rafmod_eyelander_headcount" "OutValue" "rafmod_eyelander_math1,SetValueNoFire,,0,4" "OutValue" "rafmod_eyelander_math2,SetValueNoFire,,0,-1" "OutValue" "rafmod_eyelander_math3,SetValueNoFire,,0,-1" "OutValue" "!self,GetValue,,0.1,-1" "OnGetValue" "rafmod_eyelander_math1,Multiply,-15,0,4" //removes heads to be replaced by another stat "OnGetValue" "rafmod_eyelander_math2,Multiply,5,0,-1" //amount of kills can be made. Set to -1 for now "OnGetValue" "rafmod_eyelander_math3,Multiply,0.5,0,-1" //^ same. Adds regen "OnGetValue" "rafmod_eyelander_setup2,$Format,,0,-1" "OnGetValue" "rafmod_eyelander_setup3,$Format,,0,-1" } filter_tf_condition { "targetname" "rafmod_eyelander_condition_for_regen" "condition" "65" "OnPass" "rafmod_eyelander_case3,$Format,,0.1,-1" "OnPass" "!activator,$RemoveCond,65,0,-1" } logic_case { "targetname" "rafmod_eyelander_case1" "case16" "max health additive penalty|%|2" "case01" "0" "ondefault" "!activator,$AddItemAttribute,,0,-1" } math_counter { "targetname" "rafmod_eyelander_math1" "OutValue" "rafmod_eyelander_math1_fix,SetValueNoFire,,0,-1" "OutValue" "rafmod_eyelander_math1_fix,Add,-25,0.1,-1" } math_counter { "targetname" "rafmod_eyelander_math1_fix" "min" "0" "max" "-85" "OutValue" "rafmod_eyelander_case1,$SetKey$case01,,0,-1" "OutValue" "rafmod_eyelander_case1,$Format,,0.1,-1" } logic_case { "targetname" "rafmod_eyelander_case2" "case16" "hidden maxhealth non buffed|%|2" //non buffed removes max overheal capability "case01" "0" "ondefault" "!activator,$AddItemAttribute,,0,-1" } math_counter { "targetname" "rafmod_eyelander_math3" "OutValue" "rafmod_eyelander_case3,$SetKey$case01,,0,-1" } logic_case { "targetname" "rafmod_eyelander_case3" "case16" "health regen|%|2" //hp regen "case01" "0" "ondefault" "!activator,$AddItemAttribute,,0,-1" } math_counter { "targetname" "rafmod_eyelander_math2" "OutValue" "rafmod_eyelander_case2,$SetKey$case01,,0,-1" "OutValue" "rafmod_eyelander_case2,$Format,,0.1,-1" } RemoveIfKilled "rafmod_eyelander_setup1" RemoveIfKilled "rafmod_eyelander_setup2" RemoveIfKilled "rafmod_eyelander_setup3" RemoveIfKilled "rafmod_eyelander_headcount" RemoveIfKilled "rafmod_eyelander_condition_for_regen" RemoveIfKilled "rafmod_eyelander_case1" RemoveIfKilled "rafmod_eyelander_math1" RemoveIfKilled "rafmod_eyelander_case2" RemoveIfKilled "rafmod_eyelander_math2" RemoveIfKilled "rafmod_eyelander_case3" RemoveIfKilled "rafmod_eyelander_math3" } ///////////// /// Medic /// ///////////// equip_healing_beam { OnSpawnOutput { Target "rafmod_filter_medic_healingbeam" Action "TestActivator" Delay 0.01 } filter_tf_class { "targetname" "rafmod_filter_medic_healingbeam" "tfclass" "5" "OnPass" "!activator,SetCustomModel,models/player/medic_medieval_medigun.mdl" } // OnSpawnOutput // { // Target "tf_weapon_medigun" // Action "AddOutput" // Param "OnUser1 rafmod_medigun_trigger:StartTouch::0:-1" // Delay 0.01 // } // OnSpawnOutput // { // Target "tf_weapon_medigun" // Action "FireUser1" // Delay 0.1 // } OnSpawnOutput { Target "rafmod_filter_medic_healingbeam" Action "Kill" Delay 0.1 } OnParentKilledOutput { Target "!activator" Action "SetCustomModel" } } ////////////// /// Sniper /// ////////////// shoot_bowmagic { //fire arrows OnSpawnOutput { Target "!activator" Action "$GetProp$m_hOwnerEntity" Param "magicarrow_get_player|$SetKey$case01|" Delay 0 } OnSpawnOutput { Target "magicarrow_get_player" Action "$Format" Delay 0.01 } logic_case { "targetname" "magicarrow_get_player" "case16" "OnUser1 rafmod_filter_sniper_magicarrows:$TestEntity:%:0:1" "case01" "z" "ondefault" "!caller,AddOutput,,0,1" //caller is "magicarrow_get_player" "ondefault" "!caller,FireUser1,,0.01,1" "OnUser1" "!caller,Kill,,0,1" } filter_tf_condition { "targetname" "rafmod_filter_sniper_magicarrows" "condition" "65" "OnPass" "@c@!activator,$SetProp$m_bArrowAlight,1,1,1" "OnPass" "fire_arrow_particle,Start,,0,1" } info_particle_system { "targetname" "fire_arrow_particle" "effect_name" "spell_fireball_small_red" "start_active" "0" "flag_as_weather" "0" } OnSpawnOutput { Target "rafmod_filter_sniper_magicarrows" Action "kill" Delay 1 } //ice arrows filter_tf_condition { "targetname" "rafmod_filter_sniper_magicarrows" "condition" "78" "OnPass" "ice_arrow_particle,Start,,0,1" } info_particle_system { "targetname" "ice_arrow_particle" "effect_name" "unusual_genplasmos_b_parent" "start_active" "0" "flag_as_weather" "0" } } equip_bowmagic { OnSpawnOutput { Target "rafmod_filter_sniper_firearrow" Action "TestActivator" Delay 0 } filter_tf_condition { "targetname" "rafmod_filter_sniper_firearrow" "condition" "65" "OnPass" "@c@!activator,$SetProp$m_bArrowAlight,1,1,1" } OnSpawnOutput { Target "rafmod_filter_sniper_firearrow" Action "kill" Delay 0.1 } } shoot_jarate_zombie { OnSpawnOutput { Target "projectile_jarate_zombie" Action "$SetOwner" Param "!activator" } tf_projectile_spellspawnzombie { "targetname" "projectile_jarate_zombie" "teamnum" "3" //setting this prevents the skeleton from spawning if owner is not the projectile's team. As a result, BLU skeletons can't be on RED's side. "$OnKilled" "m_shoot_jarate_zombie,ForceSpawn,,0,-1" } logic_measure_movement { "MeasureReference" "projectile_jarate_zombie" "MeasureTarget" "projectile_jarate_zombie" "MeasureType" "0" "Target" "m_shoot_jarate_zombie" "TargetReference" "projectile_jarate_zombie" "TargetScale" "1" } env_entity_maker { "targetname" "m_shoot_jarate_zombie" "EntityTemplate" "t_shoot_jarate_zombie" "OnEntitySpawned" "!self,Kill,,0,1" } } t_shoot_jarate_zombie { logic_relay { "spawnflags" "1" "OnSpawn" "jarate_zombie,Skin,0,0,1" "OnSpawn" "jarate_zombie,$SetKey$max_health,1000,0,1" "OnSpawn" "jarate_zombie,$SetKey$health,1000,0,1" "OnSpawn" "jarate_zombie,$SetModelOverride,models/bots/merasmus/merasmussmall.mdl,0,1" } tf_zombie { "targetname" "jarate_zombie" "teamnum" "2" } } //////////////////////////// /// OnPlayer Attributes /// //////////////////////////// player_attributes_onspawn { /// debug // OnSpawnOutput // { // Target "debugmenu" // Action "$DisplayMenu" // Delay 1 // Param "!activator" // } // OnParentKilledOutput // { // Target "debugmenu" // Action "$HideMenu" // Param "!activator" // } /// taunt cam OnSpawnOutput { Target "!activator" Action "setforcedtauntcam" Delay 0.00 Param 1 } /// subclasses OnSpawnOutput { Target "rafmod_filter_subclass" Action "TestActivator" Delay 0.5 } /// player attributes OnSpawnOutput { Target "!activator" Action "$SetProp$m_bGlowEnabled" Delay 0 Param "1" } // name players every time they spawn OnSpawnOutput { Target "@c@!activator" Action "$GetProp$m_hOwnerEntity" Param "!activator|$SetKey$targetname|" Delay 0.4 } OnSpawnOutput { Target "rafmod_filter_named_player_by_key" Action "FireUser1" Delay 0.7 } filter_activator_name { "targetname" "rafmod_filter_named_player_by_key" "filtername" "z" "OnUser1" "@c@!activator,$GetProp$m_hOwnerEntity,!caller|$SetKey$filtername|,0,1" } // named player tied to engie building filters OnSpawnOutput { Target "rafmod_filter_to_building_by_named_player_by_key" Action "FireUser1" Delay 0.7 } filter_activator_name { "targetname" "rafmod_filter_to_building_by_named_player_by_key" "filtername" "z" "OnUser1" "@c@!activator,$GetProp$m_hOwnerEntity,!caller|$SetKey$filtername|,0,1" } filter_multi //dwarf engie { "targetname" "rafmod_filter_to_building_by_named_player_by_key_multi" "filter01" "rafmod_filter_to_building_by_named_player_by_key" "filter02" "rafmod_filter_cond_65" "OnPass" "!activator,$SetProp$m_iUpgradeMetalRequired,100,0,-1" } filter_multi //cyborg engie { "targetname" "rafmod_filter_to_building_by_named_player_by_key_multi" "filter01" "rafmod_filter_to_building_by_named_player_by_key" "filter02" "rafmod_filter_cond_78" "OnPass" "rafmod_filter_obj_sentrygun_is_disposable_cyborg,TestActivator,,0,-1" //filters sentry so it destroys itself when ammo is used up } $filter_sendprop //cyborg engie { "targetname" "rafmod_filter_obj_sentrygun_is_disposable_cyborg" "$name" "m_bDisposableBuilding" "$value" "0" "Negated" "1" //these are for parenting an unnamed disposable sentry "OnPass" "rafmod_filter_to_building_by_named_player_by_key,$GetKey$filtername,!activator|SetParent|,0,-1" "OnPass" "!activator,SetParentAttachment,head,0.01,-1" "OnPass" "!activator,$SetProp$m_iAmmoShells,50,0,-1" "OnPass" "!activator,$SetKey$solid,0,0,-1" "OnPass" "!activator,SetModelscale,0.25,0,-1" "OnFail" "!activator,$SetProp$m_bMiniBuilding,1,0,-1" //test for parenting using logic_measure_movement. Failed // "OnPass" "m_player_building_name,ForceSpawnAtEntityOrigin,!activator,0,-1" } // OnSpawnOutput // { // Target "player_building_name" // Action "FireUser1" // Delay 0 // } // logic_case // { // "targetname" "player_building_name" // "case16" "OnPass !activator:$SetKey$targetname:player_%_building:0:-1" // "ondefault" "rafmod_filter_obj_sentrygun_is_disposable_cyborg,AddOutput,,0,1" // "ondefault" "!caller,Kill,,0,1" // "OnUser1" "rafmod_filter_to_building_by_named_player_by_key,$GetKey$filtername,!caller|$SetKey$case01|,0,-1" // "OnUser1" "rafmod_filter_to_building_by_named_player_by_key,$GetKey$filtername,!caller|$SetKey$case02|,0,-1" // "OnUser1" "rafmod_filter_to_building_by_named_player_by_key,$Format,,0.1,-1" // } // env_entity_maker // { // "targetname" "m_player_building_name" // "EntityTemplate" "t_player_building_name" // } RemoveIfKilled "rafmod_filter_named_player_by_key" RemoveIfKilled "rafmod_filter_to_building_by_named_player_by_key_multi" RemoveIfKilled "rafmod_filter_to_building_by_named_player_by_key" RemoveIfKilled "rafmod_filter_obj_sentrygun_is_disposable_cyborg" // RemoveIfKilled "m_player_building_name" } t_player_building_name { logic_relay { "spawnflags" "1" "OnSpawn" "rafmod_obj_cyborg_rot,Open,,0,-1" } filter_activator_name { "targetname" "rafmod_filter_obj_engineer_cyborg_get_name" "filtername" "z" "OnFail" "!activator,$GetProp$m_hBuilder,!caller|$SetKey$filtername|,0,1" "OnFail" "player_building_measure,FireUser1,,0.1,1" "OnFail" "player_building_measure,$Format,,0.2,1" } func_door { "targetname" "rafmod_obj_cyborg_rot" "mins" "-10 -10 -10" "maxs" "10 10 10" "movedir" "-90 0 0" "spawnflags" "4104" "speed" "0.1" "wait" "0.01" "OnFullyClosed" "!self,Open,,0,-1" } filter_activator_class { "targetname" "rafmod_filter_obj_engineer_cyborg" "filterclass" "obj_sentrygun" } trigger_multiple { "targetname" "rafmod_obj_cyborg_trigger" "parentname" "rafmod_obj_cyborg_rot" "filtername" "rafmod_filter_obj_engineer_cyborg" "mins" "-10 -10 -10" "maxs" "10 10 10" "spawnflags" "64" "OnStartTouchAll" "rafmod_filter_obj_engineer_cyborg_get_name,TestActivator,,0,1" "OnStartTouchAll" "rafmod_obj_cyborg_trigger,ClearParent,,0,1" "OnStartTouchAll" "rafmod_obj_cyborg_rot,Kill,,0.1,1" "OnStartTouchAll" "rafmod_filter_obj_engineer_cyborg_get_name,$TestEntity,player,1,1" } logic_measure_movement { "targetname" "player_measure_building" "MeasureReference" "rafmod_obj_cyborg_trigger" "MeasureTarget" "rafmod_obj_cyborg_trigger" "MeasureType" "0" "Target" "" "TargetReference" "rafmod_obj_cyborg_trigger" "TargetScale" "1" } logic_case { "targetname" "player_building_measure" "case16" "OnPass %,SetParent,%,0,1" "case16" "OnPass %,SetParentAttachment,head,0.1,1" "case01" "rafmod_obj_cyborg_trigger" "case02" "player name" "ondefault" "rafmod_filter_obj_engineer_cyborg_get_name,AddOutput,,0,1" "ondefault" "!caller,Kill,,0,1" "OnUser1" "rafmod_filter_obj_engineer_cyborg_get_name,$GetKey$filtername,!caller|$SetKey$case02|,0,1" } logic_case { "targetname" "player_building_measure" "case16" "player_%_building" "case01" "player name" "ondefault" "player_measure_building,$SetKey$Target,,1,1" "ondefault" "!caller,Kill,,2,1" "OnUser1" "rafmod_filter_obj_engineer_cyborg_get_name,$GetKey$filtername,!caller|$SetKey$case01|,0,1" } } } /////////////////// // Robot STUFF // ////////////////// ///////////////////// // Upgrades STUFF // //////////////////// //notes // ExtendedUpgradesNoUndo 1 ExtendedUpgradesOnly 1 // UpgradeStationKeepWeapons 1 ExtendedUpgrades { MaxUpgradesTier // Specify how many upgrades can be bought per tier. (1 by default) { 1 1 // Max 2 upgrades on tier 1 2 9 // Max 1 upgrade on tier 2 3 9 // Max 1 upgrade on tier 2 } MinUpgradesTier // Specify how many upgrades have to be bought to unlock next tier. (1 by default) { 1 1 // Min 2 upgrades on tier 1 to unlock tier 2 2 6 // Min 1 upgrade on tier 2 to unlock tier 3 } Scout_Chicken_Class { Name "THE CHICKEN" Attribute "halloween item" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Scout } Scout_Pilot_Class { Name "THE PILOT" Attribute "cannot_transmute" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Scout } Soldier_Robot_Class { Name "THE ROBOT" Attribute "halloween item" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Soldier } Soldier_Crusader_Class { Name "THE CRUSADER" Attribute "cannot_transmute" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Soldier } Pyro_Spider_Class { Name "THE SPIDER THING" Attribute "halloween item" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Pyro } Pyro_Unicorn_Class { Name "THE UNICORN" Attribute "cannot_transmute" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Pyro } Demoman_King_Class { Name "THE KING" Attribute "halloween item" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Demoman } Demoman_Bomber_Class { Name "THE BOMBER" Attribute "cannot_transmute" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Demoman } Heavy_Monster_Class { Name "THE MANNVICH MONSTER" Attribute "halloween item" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass HeavyWeapons } Heavy_Bullman_Class { Name "THE BULL MAN" Attribute "cannot_transmute" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass HeavyWeapons } Engineer_Dwarf_Class { Name "THE DWARF" Attribute "halloween item" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Engineer } Engineer_Cyborg_Class { Name "THE CYBORG" Attribute "cannot_transmute" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Engineer } Medic_Vampire_Class { Name "DR. ACULA" Attribute "halloween item" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Medic } Medic_Vampire_HealthUP+ { Name "MAXHP +25" Attribute "max health additive bonus" Cap 75 Increment 25 Cost 200 PlayerUpgrade 1 Tier 2 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Doktor_Class } } Medic_Vampire_RegenUP+ { Name "Regen +4" Attribute "health regen" Cap 12 Increment 4 Cost 200 PlayerUpgrade 1 Tier 2 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Doktor_Class } } Medic_Vampire_SpeedUP+ { Name "Move Speed +10%" Attribute "move speed bonus" Cap 1.3 Increment 0.1 Cost 200 PlayerUpgrade 1 Tier 2 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Doktor_Class } } Medic_Vampire_LifeSteal { Name "Life Steal +10 HP on hit" Attribute "heal on hit for slowfire" Cap 30 Increment 10 Cost 500 PlayerUpgrade 1 Tier 3 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Doktor_Class } } Medic_Vampire_SpeedOnKill { Name "Speed boost on Kill +2 Seconds" Attribute "speed_boost_on_kill" Cap 6 Increment 2 Cost 500 PlayerUpgrade 1 Tier 3 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Doktor_Class } } Medic_Vampire_SomethingElse { Name "Something Else" Attribute "non economy" Cap 3 Increment 1 Cost 500 PlayerUpgrade 1 Tier 3 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Doktor_Class } } Medic_Doktor_Class { Name "ZE MAD DOKTOR" Attribute "cannot_transmute" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Medic } Medic_Doktor_Skill_1 { Name "---------" Attribute "add cond when active" Cap 0 Increment 0 Cost 0 PlayerUpgrade 1 Tier 2 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Vampire_Class } } Medic_Doktor_Skill_2 { Name "---------" Attribute "add cond when active" Cap 0 Increment 0 Cost 0 PlayerUpgrade 1 Tier 2 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Vampire_Class } } Medic_Doktor_Skill_3 { Name "---------" Attribute "add cond when active" Cap 0 Increment 0 Cost 0 PlayerUpgrade 1 Tier 2 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Vampire_Class } } Medic_Doktor_Skill_4 { Name "---------" Attribute "add cond when active" Cap 0 Increment 0 Cost 0 PlayerUpgrade 1 Tier 3 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Vampire_Class } } Medic_Doktor_Skill_5 { Name "---------" Attribute "add cond when active" Cap 0 Increment 0 Cost 0 PlayerUpgrade 1 Tier 3 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Vampire_Class } } Medic_Doktor_Skill_6 { Name "---------" Attribute "add cond when active" Cap 0 Increment 0 Cost 0 PlayerUpgrade 1 Tier 3 AllowPlayerClass Medic DisallowedUpgrade { Upgrade Medic_Vampire_Class } } Sniper_Beastmaster_Class { Name "THE BEASTMASTER" Attribute "halloween item" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Sniper } Sniper_Hero_Class { Name "THE HERO" Attribute "cannot_transmute" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Sniper } Spy_Phantom_Class { Name "THE PHANTOM OF THE OPERA" Attribute "halloween item" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Spy } Spy_Zorro_Class { Name "ZORRO" Attribute "cannot_transmute" Cap 1 Increment 1 Cost 99999 PlayerUpgrade 1 Tier 1 AllowPlayerClass Spy } ////////////////////////// /// Spellbook Upgrades /// ////////////////////////// Spell_Basic_Healing_Aura { Name "Buy Spell: Healing Aura" Attribute "non economy" Cap 2 Increment 1 Cost 50 AllowedWeapons { ItemName "Spellbook for Beginners" } OnUpgrade { Output "!activator,$RemoveItemAttribute,non economy|9,0" Output "!activator,$AddSpell,Healing Aura,0" } } Spell_Basic_Superjump { Name "Buy Spell: Blast Jump" Attribute "non economy" Cap 2 Increment 1 Cost 50 AllowedWeapons { ItemName "Spellbook for Beginners" } OnUpgrade { Output "!activator,$RemoveItemAttribute,non economy|9,0" Output "!activator,$AddSpell,Superjump,0" } } Spell_Basic_Bats { Name "Buy Spell: Ball O' Bats" Attribute "non economy" Cap 2 Increment 1 Cost 50 AllowedWeapons { ItemName "Spellbook for Beginners" } OnUpgrade { Output "!activator,$RemoveItemAttribute,non economy|9,0" Output "!activator,$AddSpell,Ball O' Bats,0" } } Spell_Bombinomicon_Bombs { Name "Buy Spell: Bombs Away" Attribute "non economy" Cap 2 Increment 1 Cost 30 AllowedWeapons { ItemName "Spellbook BOMBINOMICON" } OnUpgrade { Output "!activator,$RemoveItemAttribute,non economy|9,0" Output "!activator,$AddSpell,Pumpkin MIRV,0" } } Spell_Invictus_Upgrade_Newbook { Name "Upgrade Spellbook to2" Attribute "is_passive_weapon" Cap 1 Increment 1 Cost 5 Tier 2 AllowedWeapons { ItemName "Spellbook INVICTUS1" } SecondaryAttributes { "add cond when active" 5 } OnUpgrade { Output "!activator,$SetProp$m_bInUpgradeZone,0,0" Output "!activator,$GiveItem,Spellbook INVICTUS2,0" Output "!activator,$RemoveItemAttribute,is_passive_weapon|9,0" Output "!activator,$RemoveItemAttribute,add cond when active|9,0" Output "!activator,$AddSpell,Healing Aura,0" } } Spell_Invictus_Healing_Aura { Name "Buy Spell: Healing Aura" Attribute "non economy" Cap 2 Increment 1 Cost 25 AllowedWeapons { ItemName "Spellbook INVICTUS1" } OnUpgrade { Output "!activator,$RemoveItemAttribute,non economy|9,0" Output "!activator,$AddSpell,Healing Aura,0" } } Spell_Invictus_BlastJump { Name "Buy Spell: Blast Jump" Attribute "non economy" Cap 2 Increment 1 Cost 25 AllowedWeapons { ItemName "Spellbook INVICTUS1" } OnUpgrade { Output "!activator,$RemoveItemAttribute,non economy|9,0" Output "!activator,$AddSpell,Superjump,0" } } Spell_Invictus_Upgrade_MoreMaxHealth { Name "+10 Max Health" Attribute "max health additive bonus" Cap 50 Increment 10 Cost 50 AllowedWeapons { ItemName "Spellbook INVICTUS1" } } Spell_Invictus_Upgrade_Conch { Name "Magic Conch" Description "Upon casting, apply Vampirism and a Speed Boost to allies for 6 seconds" Attribute "add cond when active" Cap 56 Increment 56 Cost 100 Tier 1 AllowedWeapons { ItemName "Spellbook INVICTUS1" } } //////////////// /// Soldier /// ////////////// Soldier_melee_up1 { Name "Test" Description "test desc" Attribute "non economy" Cap 1 Increment 1 Cost 100 AllowPlayerClass Soldier AllowedWeapons { Slot Melee } } //////////////// /// Demoman /// ////////////// Demoman_Eyelander_Regen { Name "Each Decapitation Gives Passive HP Regen" Attribute "add cond on kill" Cap 65 Increment 65 Cost 400 AllowPlayerClass Demoman AllowedWeapons { Itemname "The Infinity Eyelander" } SecondaryAttributes { "add cond on kill duration" 0.5 } OnUpgrade { Output "!activator,$AddCond,65,0" //doesn't work for some reason OutPut "!activator,FireUser4,,0.5" Output "!activator,SetHealth,10000,1" } } //////////////// /// Engineer /// //////////////// Engineer_Medieval_Masher_Building_Max_Level { Name "Max Building Level" Attribute "building max level" Cap 3 Increment 1 Cost 400 AllowPlayerClass Engineer AllowedWeapons { Itemname "The Medieval Masher" } } ////////////// /// Sniper /// ////////////// Sniper_FireArrow_Magic { Name "Magic Fire Arrows" Description "Try firing arrows. Ignites target and marks for death for 8 seconds." Attribute "add cond when active" Cap 65 Increment 65 Cost 100 Tier 1 DisallowedUpgrade { Upgrade Sniper_IceArrow_Magic } AllowedWeapons { Itemname "The Magic Bow" } SecondaryAttributes { "Set DamageType Ignite" 1 } OnUpgrade { // OutPut "!activator,$RemoveItemAttribute,add cond when active|0,0" OutPut "!activator,$Regenerate,,0" OutPut "@c@!activator,$SetProp$m_bArrowAlight,1,0.1" } } Sniper_IceArrow_Magic { Name "Magic Ice Arrows" Description "Freezes target for up to 4 seconds." Attribute "add damage type" Cap 16384 Increment 16384 Cost 100 Tier 1 DisallowedUpgrade { Upgrade Sniper_FireArrow_Magic } AllowedWeapons { Itemname "The Magic Bow" } SecondaryAttributes { // "add damage type" 16384 "add cond when active" 78 "remove damage type" 2 "add cond on hit" 121 "add cond on hit duration" 1 "set turn to ice" 1 "attach particle effect" 173 } OnUpgrade { // OutPut "!activator,$RemoveItemAttribute,add cond when active|0,0" OutPut "@c@!activator,$SetProp$m_bArrowAlight,0,0" OutPut "!activator,$Regenerate,,0" } } Sniper_FireArrow_Afterburn { Name "Afterburn+" Attribute "weapon burn dmg increased" Cap 3 Increment 0.5 Cost 100 Tier 2 DisallowedUpgrade { Upgrade Sniper_IceArrow_Magic } AllowedWeapons { Itemname "The Magic Bow" } SecondaryAttributes { } } } ExtraLoadoutItems // Extra loadout items available after typing !missionitems in chat { AllowEquipOutsideSpawn 1 Scout { SubClass { Item "Scout Sub-Class Chicken" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } SubClass { Item "Scout Sub-Class Pilot" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } } Soldier { SubClass { Item "Soldier Sub-Class Robot" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } SubClass { Item "Soldier Sub-Class Crusader" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } } Pyro { SubClass { Item "Pyro Sub-Class Spider Thing" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } SubClass { Item "Pyro Sub-Class Unicorn" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } } Demoman { SubClass { Item "Demoman Sub-Class King" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } SubClass { Item "Demoman Sub-Class Bomber" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } } HeavyWeapons { SubClass { Item "Heavy Sub-Class Mannvich Monster" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } SubClass { Item "Heavy Sub-Class Bull Man" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } } Engineer { SubClass { Item "Engineer Sub-Class Dwarf" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } SubClass { Item "Engineer Sub-Class Cyborg" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } } Medic { SubClass { Item "Medic Sub-Class Doctor Acula" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } SubClass { Item "Medic Sub-Class Ze Mad Doktor" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } } Sniper { SubClass { Item "Sniper Sub-Class Beastmaster" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } SubClass { Item "Sniper Sub-Class Hero" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } } Spy { SubClass { Item "Spy Sub-Class Phantom of the Opera" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } SubClass { Item "Spy Sub-Class Zorro" Cost 5000 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } } Head // Extended syntax, Item slot to use { Item "Basic Armor" // Item name, custom weapon names are available Cost 100 // The cost of the weapon (default: 0) AllowedMinWave 1 //The wave at which the weapon is enabled (default: 1) AllowedMaxWave 1 //The max wave at which the weapon is enabled (default: infinite) AllowRefund 1 //Allow refunding of the weapon (default: 1) } Head { Item "The Dark Falkirk Helm" Cost 200 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 1 } Head { Item "Mega Armor" Cost 200 AllowedMinWave 2 AllowedMaxWave 55 AllowRefund 1 } Misc { Item "Dispenser Backpack" Cost 100 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 1 } Misc { Item "Dispenser Ghost" Cost 100 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 1 } Action { Item "Spellbook INVICTUS1" Cost 100 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 1 } Action { Item "Spellbook CREPITUS1" Cost 100 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 1 } Action { Item "Spellbook FULUMENUS1" Cost 100 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 1 } Action { Item "Spellbook BOMBINOMICON" Cost 10 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 1 } Head { Item "Alakablamicon" Cost 100 AllowedMinWave 1 AllowedMaxWave 55 AllowRefund 0 } } }