I_GRIN_I, всё так, просто
не нужно хранить данные в объектах типа hero.
Последнее редактирование модератором:
не нужно хранить данные в объектах типа hero.
"basic_unit_special_5"
{
// General
//----------------------------------------------------------------
"Model" "models/heroes/crystal_maiden/crystal_maiden.vmdl" // Model.
"BaseClass" "npc_dota_creature"
"SoundSet" "hero_Crystal"
"GameSoundsFile" "soundevents/game_sounds_heroes/game_sounds_crystalmaiden.vsndevts"
"Level" "10"
"ModelScale" ".9"
// CLASSESS
"UnitClass" "#unit_special5"
"UnitCost" "6000"
"UnitIncome" "16"
"UnitPage" "3"
// Abilities
//----------------------------------------------------------------
"Ability1" "crystal_maiden_frostbite" // Ability 1
"Ability2" "" // Ability 2
"Ability3" "" // Ability 3
"Ability4" "" // Ability 4
// Armor
//----------------------------------------------------------------
"MagicalResistance" "25"
"ArmorPhysical" "3" // Physical protection.
// Attack
//----------------------------------------------------------------
"AttackCapabilities" "DOTA_UNIT_CAP_RANGED_ATTACK"
"AttackDamageMin" "75" // Damage range min.
"AttackDamageMax" "84" // Damage range max.
"AttackRate" "1.6" // Speed of attack.
"AttackAnimationPoint" "0.4" // Normalized time in animation cycle to attack.
"AttackAcquisitionRange" "1200" // Range within a target can be acquired.
"AttackRange" "500" // Range within a target can be attacked.
"ProjectileModel" "particles/econ/items/crystal_maiden/ti7_immortal_shoulder/cm_ti7_immortal_base_attack.vpcf" // Particle system model for projectile.
"ProjectileSpeed" "1500" // Speed of projectile.
"AutoAttacksByDefault" "0"
//"WakesNeutrals" "0"
// Bounds
//----------------------------------------------------------------
"RingRadius" "40"
"HealthBarOffset" "170"
// Bounty
//----------------------------------------------------------------
"BountyXP" "65" // Experience earn.
"BountyGoldMin" "40" // Gold earned min.
"BountyGoldMax" "75" // Gold earned max.
// Movement
//----------------------------------------------------------------
"MovementCapabilities" "DOTA_UNIT_CAP_MOVE_GROUND"
"MovementSpeed" "320" // Speed.
// Status
//----------------------------------------------------------------
"StatusHealth" "640" // Base health.
"StatusHealthRegen" "0.5" // Health regeneration rate.
"StatusMana" "250" // Base mana.
"StatusManaRegen" "1.0" // Mana regeneration rate.
// Vision
//----------------------------------------------------------------
"VisionDaytimeRange" "1250" // Range of vision during day light.
"VisionNighttimeRange" "1050" // Range of vision at night time.
// Team
//----------------------------------------------------------------
"TeamName" "DOTA_TEAM_GOODGUYS" // Team name.
"CombatClassAttack" "DOTA_COMBAT_CLASS_ATTACK_PIERCE"
"CombatClassDefend" "DOTA_COMBAT_CLASS_DEFEND_BASIC"
"UnitRelationshipClass" "DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT"
// Creature Data
//----------------------------------------------------------------
"Creature"
{
"DisableClumpingBehavior" "1"
//Level Up
"HPGain" "50"
"DamageGain" "2"
"ArmorGain" "0.25"
"MagicResistGain" "1"
"MoveSpeedGain" "1"
"BountyGain" "3"
"XPGain" "15"
"DefaultState" "Invade"
"States"
{
"Invade"
{
"Name" "Invade"
"Aggression" "100.0"
"Avoidance" "0.0"
"Support" "100.0"
}
}
"OffensiveAbilities"
{
"Ability1"
{
"Name" "crystal_maiden_frostbite"
"Radius" "500"
"MinimumTargets" "1"
}
}
"AttachWearables"
{
"Wearable1" { "ItemDef" "38" }
"Wearable2" { "ItemDef" "39" }
"Wearable3" { "ItemDef" "40" }
"Wearable4" { "ItemDef" "41" }
"Wearable5" { "ItemDef" "311" }
"Wearable6" { "ItemDef" "502" }
}
}
}