Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second Day Spiders: Boss - Code #2155

Merged
merged 16 commits into from
Apr 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ read_globals = { -- these globals can only be accessed.
"ACT_IDLE",
"ACT_DROP_WEAPON_SHOTGUN",
"VectorLerp",
"LerpVectors",
"ACT_DOTA_THIRST",
"ACT_RUN_CROUCH",
"ACT_PDA_VM_RELOAD",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//=============================================================================
// Second Day Spiders abilities
//=============================================================================


"DOTA_Tooltip_Ability_boss_spiders_cannonshot" "Cannonshot"
"DOTA_Tooltip_Ability_boss_spiders_cannonshot_Description" ""
"DOTA_Tooltip_Ability_boss_spiders_cannonshot_damage" ""
"DOTA_Tooltip_Ability_boss_spiders_cannonshot_radius" ""
"DOTA_Tooltip_Ability_boss_spiders_cannonshot_projectile_speed" ""
"DOTA_Tooltip_Ability_boss_spiders_cannonshot_projectile_height" ""

"DOTA_Tooltip_Ability_boss_spiders_spidershot" "Spidershot"
"DOTA_Tooltip_Ability_boss_spiders_spidershot_Description" ""
"DOTA_Tooltip_Ability_boss_spiders_spidershot_impact_damage" ""
"DOTA_Tooltip_Ability_boss_spiders_spidershot_impact_slow_rate" ""
"DOTA_Tooltip_Ability_boss_spiders_spidershot_impact_slow_duration" ""
"DOTA_Tooltip_Ability_boss_spiders_spidershot_explode_time" ""
"DOTA_Tooltip_Ability_boss_spiders_spidershot_spiders_count" ""
"DOTA_Tooltip_Ability_boss_spiders_spidershot_projectile_speed" ""
"DOTA_Tooltip_Ability_boss_spiders_spidershot_projectile_height" ""

"DOTA_Tooltip_Ability_boss_spiders_spider_cold_combustion" "Cannonshot"
"DOTA_Tooltip_Ability_boss_spiders_spider_cold_combustion_Description" ""
"DOTA_Tooltip_Ability_boss_spiders_spider_cold_combustion_damage" ""
"DOTA_Tooltip_Ability_boss_spiders_spider_cold_combustion_radius" ""
4 changes: 4 additions & 0 deletions game/resource/English/npc/npc_bosses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@
"npc_dota_creature_spider_boss" "Ankaboot"
"npc_dota_creature_temple_guardian" "Temple Guardian"
"npc_dota_creature_temple_guardian_spawner" "Temple Spawner"
"npc_dota_boss_spiders" "Second Day Spiders"
"npc_dota_boss_spiders_explosive" "Explosive"
"npc_dota_boss_spiders_spider" "Baneling"
"npc_dota_boss_spiders_spiderball" "Spider Cocoon"
76 changes: 76 additions & 0 deletions game/scripts/npc/abilities/spiders/boss_spiders_cannonshot.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
"DOTAAbilities"
{
//=================================================================================================================
// Second Day Spiders: Cannonshot
//=================================================================================================================
"boss_spiders_cannonshot"
{
"ID" "8473"
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "ability_lua"
"ScriptFile" "abilities/spiders/boss_spiders_cannonshot.lua"
"AbilityTextureName" "sniper_shrapnel"

"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_POINT"
"AbilityUnitTargetTeam" "DOTA_UNIT_TARGET_TEAM_ENEMY"
"AbilityUnitTargetType" "DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
"AbilityUnitDamageType" "DAMAGE_TYPE_PURE"
"SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_YES"
"FightRecapLevel" "1"

// "AbilityCastAnimation" "ACT_DOTA_CAST_REFRACTION"

"MaxLevel" "1"
"RequiredLevel" "1"
"LevelsBetweenUpgrades" "1"

// Casting
//-------------------------------------------------------------------------------------------------------------
"AbilityCastRange" "1300"
"AbilityCastPoint" "0.3"

// Time
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "5"


// Cost
//-------------------------------------------------------------------------------------------------------------
"AbilityManaCost" "0"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"damage" "100"
}
"02"
{
"var_type" "FIELD_FLOAT"
"radius" "400"
}
"03"
{
"var_type" "FIELD_FLOAT"
"projectile_speed" "0.02"
}
"04"
{
"var_type" "FIELD_INTEGER"
"projectile_height" "300"
}
}

"precache"
{
"particle" "particles/econ/items/techies/techies_arcana/techies_suicide_arcana.vpcf"
"particle" "particles/econ/items/shadow_fiend/sf_fire_arcana/sf_fire_arcana_base_attack_impact.vpcf"
"soundfile" "soundevents/game_sounds_heroes/game_sounds_broodmother.vsndevts"
"soundfile" "soundevents/game_sounds_heroes/game_sounds_techies.vsndevts"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
"DOTAAbilities"
{
//=================================================================================================================
// Ability: Spider Cold Combustion
//=================================================================================================================
"boss_spiders_spider_cold_combustion"
{
// General
//-------------------------------------------------------------------------------------------------------------
"ID" "8474" // unique ID number for this ability. Do not change this once established or it will invalidate collected stats.
"BaseClass" "ability_lua"
"ScriptFile" "abilities/spiders/boss_spiders_spider_cold_combustion.lua"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET"
"AbilityUnitDamageType" "DAMAGE_TYPE_MAGICAL"
"SpellDispellableType" "SPELL_DISPELLABLE_YES"
"AbilityTextureName" "crystal_maiden_crystal_nova"
"MaxLevel" "1"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"damage" "150"
}
"02"
{
"var_type" "FIELD_INTEGER"
"radius" "350"
}
}

// Precache
//-------------------------------------------------------------------------------------------------------------
"precache"
{
"particle" "particles/units/heroes/hero_crystalmaiden/maiden_crystal_nova.vpcf"
"soundfile" "soundevents/game_sounds_heroes/game_sounds_crystalmaiden.vsndevts"
}
}
}
90 changes: 90 additions & 0 deletions game/scripts/npc/abilities/spiders/boss_spiders_spidershot.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
"DOTAAbilities"
{
//=================================================================================================================
// Second Day Spiders: Spidershot
//=================================================================================================================
"boss_spiders_spidershot"
{
"ID" "8482"
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "ability_lua"
"ScriptFile" "abilities/spiders/boss_spiders_spidershot.lua"
"AbilityTextureName" "broodmother_spawn_spiderlings"

"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_POINT"
"AbilityUnitTargetTeam" "DOTA_UNIT_TARGET_TEAM_ENEMY"
"AbilityUnitTargetType" "DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
"AbilityUnitDamageType" "DAMAGE_TYPE_PURE"
"SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_YES"
"FightRecapLevel" "1"

// "AbilityCastAnimation" "ACT_DOTA_CAST_REFRACTION"

"MaxLevel" "1"
"RequiredLevel" "1"
"LevelsBetweenUpgrades" "1"

// Casting
//-------------------------------------------------------------------------------------------------------------
"AbilityCastRange" "1300"
"AbilityCastPoint" "0.3"

// Time
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "5"


// Cost
//-------------------------------------------------------------------------------------------------------------
"AbilityManaCost" "0"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"impact_damage" "100"
}
"02"
{
"var_type" "FIELD_FLOAT"
"impact_slow_rate" "-50"
}
"03"
{
"var_type" "FIELD_FLOAT"
"impact_slow_duration" "3.0"
}
"04"
{
"var_type" "FIELD_FLOAT"
"explode_time" "5.0"
}
"05"
{
"var_type" "FIELD_INTEGER"
"spiders_count" "3"
}
"06"
{
"var_type" "FIELD_FLOAT"
"projectile_speed" "0.03"
}
"07"
{
"var_type" "FIELD_INTEGER"
"projectile_height" "300"
}
}

"precache"
{
"particle" "particles/econ/items/shadow_fiend/sf_fire_arcana/sf_fire_arcana_base_attack_impact.vpcf"
"soundfile" "soundevents/game_sounds_heroes/game_sounds_broodmother.vsndevts"
"soundfile" "soundevents/game_sounds_heroes/game_sounds_techies.vsndevts"
}
}
}
4 changes: 4 additions & 0 deletions game/scripts/npc/npc_abilities_custom.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
#base "abilities/boss/boss_cliffwalk.txt"
#base "abilities/siltbreaker/siltbreaker_boss_protection.txt"

#base "abilities/spiders/boss_spiders_spider_cold_combustion.txt"
#base "abilities/spiders/boss_spiders_spidershot.txt"
#base "abilities/spiders/boss_spiders_cannonshot.txt"

#base "abilities/charger/boss_charger_charge.txt"
#base "abilities/charger/boss_charger_summon_pillar.txt"
#base "abilities/charger/boss_charger_super_armor.txt"
Expand Down
4 changes: 4 additions & 0 deletions game/scripts/npc/npc_units_custom.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#base "units/buildings/npc_dota_bottle_statue_dire.txt"
#base "units/buildings/npc_dota_bottle_statue_radiant.txt"

#base "units/spiders/npc_dota_boss_spiders.txt"
#base "units/spiders/npc_dota_boss_spiders_explosive.txt"
#base "units/spiders/npc_dota_boss_spiders_spiderball.txt"
#base "units/spiders/npc_dota_boss_spiders_spider.txt"
#base "units/charger/npc_dota_boss_charger_pillar.txt"
#base "units/charger/npc_dota_boss_charger.txt"
#base "units/shielder/npc_dota_boss_shielder.txt"
Expand Down
117 changes: 117 additions & 0 deletions game/scripts/npc/units/spiders/npc_dota_boss_spiders.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
"DOTAUnits"
{
//=================================================================================
// Boss tier ?
//=================================================================================
"npc_dota_boss_spiders"
{
// General
//
"BaseClass" "npc_dota_creature" // Class of entity of link to.
"Model" "models/heroes/weaver/weaver.vmdl" // Model.
"vscripts" "units/spiders.lua"
"SoundSet" "sniper" // Name of sound set.
"ModelScale" "1"
"Level" "30"
"IsAncient" "1"
"ConsideredHero" "1"

// Abilities
//----------------------------------------------------------------
"Ability1" "boss_spiders_cannonshot"
"Ability2" "boss_spiders_spidershot"
"Ability3" "boss_resistance"
"Ability4" "boss_cliffwalk"

// Armor
//----------------------------------------------------------------
"ArmorPhysical" "25" // Physical protection.
"MagicalResistance" "-25" // Magical protection (percentage).

// Attack
//----------------------------------------------------------------
"AttackCapabilities" "DOTA_UNIT_CAP_NO_ATTACK"
"AttackDamageMin" "1" // Damage range min.
"AttackDamageMax" "1" // Damage range max.
"AttackDamageType" "DAMAGE_TYPE_ArmorPhysical"
"AttackRate" "1.0" // Speed of attack.
"AttackAnimationPoint" "0.3" // Normalized time in animation cycle to attack.
"AttackAcquisitionRange" "150" // Range within a target can be acquired.
"AttackRange" "128" // Range within a target can be attacked.

// Bounty
//----------------------------------------------------------------
"BountyXP" "0" // Experience earn.
"BountyGoldMin" "0" // Gold earned min.
"BountyGoldMax" "0" // Gold earned max.

// Bounds
//----------------------------------------------------------------
"BoundsHullName" "DOTA_HULL_SIZE_HERO" // Hull type used for navigation/locomotion.
"RingRadius" "110"
"HealthBarOffset" "400"

// Movement
//----------------------------------------------------------------
"MovementCapabilities" "DOTA_UNIT_CAP_MOVE_GROUND" // Type of locomotion - ground, air
"MovementSpeed" "150" // Speed
"MovementTurnRate" "0.8" // Turning rate.

// Status
//----------------------------------------------------------------
"StatusHealth" "8500" // Base health
"StatusHealthRegen" "5.0" // Health regeneration rate.
"StatusMana" "1000" // Base mana.
"StatusManaRegen" "5.0" // Mana regeneration rate.

// Creature data

"Creature"
{
//Makes it only have 50% remaining of applied crowd control
"DisableResistance" "50.0"
"AttachWearables"
{
"Wearable1"
{
"ItemDef" "280"
}
"Wearable2"
{
"ItemDef" "278"
}
"Wearable3"
{
"ItemDef" "277"
}
"Wearable4"
{
"ItemDef" "585"
}
"Wearable5"
{
"ItemDef" "279"
}
}
}

// Team
//----------------------------------------------------------------
"TeamName" "DOTA_TEAM_NEUTRALS" // Team name.
"CombatClassAttack" "DOTA_COMBAT_CLASS_ATTACK_HERO"
"CombatClassDefend" "DOTA_COMBAT_CLASS_DEFEND_HERO"
"UnitRelationshipClass" "DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT"

// Vision
//----------------------------------------------------------------
"VisionDaytimeRange" "1400" // Range of vision during day light.
"VisionNighttimeRange" "1400" // Range of vision at night time.

// Inventory
//----------------------------------------------------------------
"HasInventory" "1"

"MinimapIcon" "minimap_roshancamp"
"MinimapIconSize" "450"
}
}
Loading