//Meant for custom medieval upgrade tests on mvm_sandcastle using rafmod //yakibomb was here WaveSchedule { ExtendedUpgradesOnly 1 PrecacheModel "models/weapons/w_models/w_masher_engineer/w_masher_engineer.mdl" PrecacheModel "models/weapons/w_models/w_medigun_healing_staff/w_medigun_healing_staff_tf2.mdl" CustomWeapon { "The Kritsader's Crossbow" { OriginalItemName "The Crusader's Crossbow" "special item description" "Give crits to allies hit. Might not work." "add cond on hit" 11 "add cond on hit duration" 5 "dmg penalty vs players" 0 "allow friendly fire" 1 "add give health to teammate on hit" 35 } "The Heretic Staff" { OriginalItemName "Necro Smasher" // The item used as a base "custom item model" "models/weapons/w_models/w_medigun_healing_staff/w_medigun_healing_staff_tf2.mdl" "effect cond override" 73 "speed buff ally" 1 "melee range multiplier" 1.7 "melee bounds multiplier" 1.55 "special item description" "doo bee doo bee do" "custom kill icon" "freedom_staff" } "The Medieval Masher" { OriginalItemName "Necro Smasher" "custom item model" "models/weapons/w_models/w_masher_engineer/w_masher_engineer.mdl" "custom kill icon" "sledgehammer" } "Engineer Medieval PDA" { OriginalItemName "Upgradeable TF_WEAPON_PDA_ENGINEER_BUILD" // "building scale" 1 } } ExtraLoadoutItems // Extra loadout items available after typing !missionitems in chat { Medic { Primary "The Kritsader's Crossbow" Melee "The Heretic Staff" } Engineer { Primary "The Rescue Ranger" Melee "The Medieval Masher" PDA "Engineer Medieval PDA" } } ExtendedUpgrades { upgrade { Name "+25 max health" // Name of the upgrade displayed on the menu Attribute "max health additive bonus" // The attribute name Cap 200 // Maximum amount of the attribute Increment 25 // Attribute increment value per level Cost 200 // Cost of the upgrade per level PlayerUpgrade 1 // Is the upgrade a player upgrade } upgrade1 { Name "Rocket Specialist" // Name of the upgrade displayed on the menu Attribute "rocket specialist" // The attribute name Cap 1 // Maximum amount of the attribute Increment 1 // Attribute increment value per level Cost 300 // Cost of the upgrade per level PlayerUpgrade 1 // Is the upgrade a player upgrade AllowedWeapons //Restricts upgrade to specified weapons { ItemName "Engineer Medieval PDA" } SecondaryAttributes //Secondary attributes applied when upgrade is applied, for each upgrade level { "mult firerocket rate" 0 "mod projectile heat follow crosshair" 1 } } upgrade2 { Name "Mechanical Mastery" Description "+20% faster construction, upgrade, and repair rates per point." Attribute "Construction rate increased" Cap 1.6 // Maximum amount of the attribute Increment 0.2 // Attribute increment value per level Cost 150 // Cost of the upgrade per level PlayerUpgrade 1 // Is the upgrade a player upgrade AllowedWeapons //Restricts upgrade to specified weapons { ItemName "The Medieval Masher" } SecondaryAttributes //Secondary attributes applied when upgrade is applied, for each upgrade level { "upgrade rate decrease" 0.2 "Repair rate increased" 0.2 } } } //MedievalMode 1 //Players can only use melee weapons. Bots are not weapon restricted NoThrillerTaunt 1 // No thriller taunt in halloween (default: 0) PlayerItemEquipSpawnTemplate { Name "hothandfireball" ItemName "The Hot Hand" } ItemAttributes { ItemName "The Hot Hand" "always crit" 1 "always allow taunt" 1 } PointTemplates { fireball { NoFixup 1 OnSpawnOutput { Target "fire" Action "$setowner" Param "!activator" Delay 0.01 } tf_projectile_spellfireball { "targetname" "fire" "teamnum" "2" } } hothandfireball { filter_tf_condition { "targetname" "filter_cond" "condition" "56" } filter_tf_condition { "targetname" "filter_taunt" "condition" "7" } filter_multi { "targetname" "filter_both" "filter01" "filter_cond" "filter02" "filter_taunt" } env_entity_maker { "targetname" "fireshoot" "postspawnspeed" "1100" "postspawninheritangles" "1" "entitytemplate" "fireball" "origin" "32 0 48" } trigger_multiple { "targetname" "trigger" "origin" "0 0 10" "mins" "-1 -1 -1" "maxs" "1 1 1" "filtername" "filter_both" "spawnflags" "1" "onstarttouch" "!activator,$addcond,87,0,-1" "onstarttouch" "fireshoot,forcespawn,,1.9,-1" "onstarttouch" "fire,$setowner,!activator,2,-1" "onstarttouch" "timer,disable,,0,-1" "onstarttouch" "timer,enable,,4,-1" "onstarttouch" "!activator,$removecond,87,3.5,-1" } logic_timer { "targetname" "timer" "refiretime" "0.1" "ontimer" "trigger,enable,,0,-1" "ontimer" "trigger,disable,,0.05,-1" } } medievalHPkitDrop { monster_generic { "targetname" "drop_medkit_point_actor" "angles" "0 0 0" "body" "0" "disableshadows" "1" "DontUseSpeechSemaphore" "1" "effects" "0" "fademindist" "-1" "fadescale" "0" "health" "0" "hintlimiting" "0" "ignoreunseenenemies" "1" "model" "models/props_halloween/fridge.mdl" "modelscale" "0" "relationship" "player D_NU 1" "renderamt" "255" "rendercolor" "255 255 255" "renderfx" "0" "rendermode" "10" "shadowcastdist" "0" "skin" "0" "sleepstate" "3" "spawnflags" "82054" "texframeindex" "0" "wakeradius" "0" "wakesquad" "0" "origin" "0.87001 1.97 -39.88" "OnUser1" "!self,AddOutput,solid 5,0,1" "OnUser1" "!self,Kill,,30,1" } item_healthkit_small { "parentname" "drop_medkit_point_actor" "angles" "0 0 0" "AutoMaterialize" "0" "body" "0" "disableshadows" "0" "effects" "0" "fademaxdist" "0" "fademindist" "-1" "fadescale" "1.0" "modelscale" "1.0" "renderamt" "255" "rendercolor" "255 255 255" "renderfx" "0" "rendermode" "0" "screenspacefade" "0" "shadowcastdist" "0" "skin" "0" "StartDisabled" "0" "targetname" "drop_medkit_point" "TeamNum" "0" "texframeindex" "0" "origin" "0 0 -24.002" "OnPlayerTouch" "drop_medkit_point_actor,Kill,,0,1" } } hpkitonkill { env_entity_maker { "angles" "0 0 0" "EntityTemplate" "medievalHPkitDrop" "PostSpawnDirection" "-90 0 0" "PostSpawnDirectionVariance" "0.15" "PostSpawnInheritAngles" "0" "PostSpawnSpeed" "300" "spawnflags" "0" "targetname" "m_drop_medkit_point" "origin" "0.87001 1.97 -31.754" "OnEntitySpawned" "drop_medkit_point*,FireUser1,,0,-1" } trigger_brush { "targetname" "game_playerdie" "DontMessageParent" "0" "InputFilter" "0" "origin" "-16 16 -6.92" "mins" "-1 -1 -1" "maxs" "1 1 1" "spawnflags" "2" "OnUse" "m_drop_medkit_point,ForceSpawnAtEntityOrigin,!activator,0,-1" } } } }