- 25 Сен 2015
- 2,348
- 41
Так, ребят, я что-то не втыкаю:
Насколько мне известно, параметр IsAncient позволяет придать юниту тип древнего и тогда заклинания на него действовать не будут.
Но вот у меня в одном моде параметр работает:
А в другом нет:
В чем же проблема?
Насколько мне известно, параметр IsAncient позволяет придать юниту тип древнего и тогда заклинания на него действовать не будут.
Но вот у меня в одном моде параметр работает:
Код:
"Forest_ghost"
{
// General
//----------------------------------------------------------------
"Model" "models/creeps/neutral_creeps/n_creep_ghost_a/n_creep_ghost_a.vmdl" // Model.
"BaseClass" "npc_dota_creature"
"SoundSet" "n_creep_Ranged"
"GameSoundsFile" "soundevents/game_sounds_creeps.vsndevts"
"Level" "10"
"ModelScale" "1.0"
"IsAncient" "1"
// Abilities
//----------------------------------------------------------------
"Ability1" "custom_exorcism" // Ability 1
"Ability2" "boss_cast_spell" // Ability 2
"Ability3" "blood" // Ability 3
"Ability4" "" // Ability 4
// Armor
//----------------------------------------------------------------
"ArmorPhysical" "100" // Physical protection.
"MagicalResistance" "100"
// Attack
//----------------------------------------------------------------
"AttackCapabilities" "DOTA_UNIT_CAP_MELEE_ATTACK"
"AttackDamageType" "DAMAGE_TYPE_ArmorPhysical"
"AttackDamageMin" "60" // Damage range min.
"AttackDamageMax" "80" // Damage range max.
"AttackRate" "1.6" // Speed of attack.
"AttackAnimationPoint" "0.4" // Normalized time in animation cycle to attack.
"AttackAcquisitionRange" "800" // Range within a target can be acquired.
"AttackRange" "700" // Range within a target can be attacked.
"ProjectileSpeed" "900"
// Bounds
//----------------------------------------------------------------
"RingRadius" "40"
"HealthBarOffset" "170"
// Bounty
//----------------------------------------------------------------
"BountyXP" "500" // Experience earn.
"BountyGoldMin" "550" // Gold earned min.
"BountyGoldMax" "570" // Gold earned max.
// Movement
//----------------------------------------------------------------
"MovementCapabilities" "DOTA_UNIT_CAP_MOVE_GROUND"
"MovementSpeed" "220" // Speed.
// Status
//----------------------------------------------------------------
"StatusHealth" "1500" // Base health.
"StatusHealthRegen" "3" // Health regeneration rate.
"StatusMana" "0" // Base mana.
"StatusManaRegen" "0.0" // Mana regeneration rate.
// Vision
//----------------------------------------------------------------
"VisionDaytimeRange" "400" // Range of vision during day light.
"VisionNighttimeRange" "400" // Range of vision at night time.
// Team
//----------------------------------------------------------------
"TeamName" "DOTA_TEAM_BADGUYS" // 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"
"UseNeutralCreepBehavior" "1"
//Level Up
"HPGain" "50"
"DamageGain" "2"
"ArmorGain" "0.25"
"MagicResistGain" "0.1"
"MoveSpeedGain" "1"
"BountyGain" "3"
"XPGain" "15"
}
}
А в другом нет:
Код:
"npc_knight"
{
// General
//----------------------------------------------------------------
"Model" "models/heroes/chaos_knight/chaos_knight.vmdl" // Model.
"BaseClass" "npc_dota_creature"
"SoundSet" "n_creep_Melee"
"GameSoundsFile" "soundevents/game_sounds_creeps.vsndevts"
"Level" "20"
"ModelScale" "1.1"
"UseNeutralCreepBehavior" "1"
"IsAncient" "1"
// Abilities
//----------------------------------------------------------------
"Ability1" "ability_bosses_respawn"
"Ability2" "knight_moment_of_courage"
"Ability3" "knight_chaos_strike"
"Ability4" "knight_great_cleave"
"Ability5" "knight_greater_bash"
// Armor
//----------------------------------------------------------------
"ArmorPhysical" "10" // Physical protection.
"MagicalResistance" "100"
// Attack
//----------------------------------------------------------------
"AttackCapabilities" "DOTA_UNIT_CAP_MELEE_ATTACK"
"AttackDamageType" "DAMAGE_TYPE_ArmorPhysical"
"AttackDamageMin" "150" // Damage range min.
"AttackDamageMax" "200" // Damage range max.
"AttackRate" "1.6" // Speed of attack.
"AttackAnimationPoint" "0.4" // Normalized time in animation cycle to attack.
"AttackAcquisitionRange" "100" // Range within a target can be acquired.
"AttackRange" "90" // Range within a target can be attacked.
// Bounds
//----------------------------------------------------------------
"RingRadius" "40"
"HealthBarOffset" "170"
// Bounty
//----------------------------------------------------------------
"BountyXP" "300" // Experience earn.
"BountyGoldMin" "0" // Gold earned min.
"BountyGoldMax" "0" // Gold earned max.
// Movement
//----------------------------------------------------------------
"MovementCapabilities" "DOTA_UNIT_CAP_MOVE_GROUND"
"MovementSpeed" "370" // Speed.
// Status
//----------------------------------------------------------------
"StatusHealth" "3000" // Base health.
"StatusHealthRegen" "5" // Health regeneration rate.
"StatusMana" "0" // Base mana.
"StatusManaRegen" "0.0" // Mana regeneration rate.
// Vision
//----------------------------------------------------------------
"VisionDaytimeRange" "500" // Range of vision during day light.
"VisionNighttimeRange" "500" // Range of vision at night time.
// Team
//----------------------------------------------------------------
"TeamName" "DOTA_TEAM_NEUTRALS" // Team name.
"CombatClassAttack" "DOTA_COMBAT_CLASS_ATTACK_PIERCE"
"CombatClassDefend" "DOTA_COMBAT_CLASS_DEFEND_BASIC"
"UnitRelationshipClass" "DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT"
// Creature Data
//----------------------------------------------------------------
"Creature"
{
"AttachWearables"
{
"Wearable1" { "ItemDef" "5704" }
"Wearable2" { "ItemDef" "181" }
"Wearable3" { "ItemDef" "7087" }
"Wearable4" { "ItemDef" "5983" }
}
"DefaultState" "Invade"
"States"
{
"Invade"
{
"Name" "Invade"
"Aggression" "100.0" //cast offensive spells whenever
"Avoidance" "0.0" //dont flee
"Support" "50.0" //start buffing
}
}
//Level Up
"HPGain" "50"
"DamageGain" "2"
"ArmorGain" "0.25"
"MagicResistGain" "0.1"
"MoveSpeedGain" "1"
"BountyGain" "3"
"XPGain" "15"
}
}
В чем же проблема?
Последнее редактирование модератором: