I_Explorer
Друзья CG
- 30 Июл 2016
- 318
- 16
- Проект
- Жизнь в тюрьме
Что нужно изменить/убрать/добавить в код юнита, чтобы он увидивши вражеского юнита в радиусе 80000 направился атаковать его, и после этой проваленной/выполненной миссии НЕ возвращался назад?
"unit_polise_r2"
{
// General
//----------------------------------------------------------------
"Model" "models/creeps/lane_creeps/creep_bad_ranged/lane_dire_ranged.vmdl" // Model.
"BaseClass" "npc_dota_creature"
"SoundSet" "n_creep_Ranged"
"GameSoundsFile" "soundevents/game_sounds_creeps.vsndevts"
"Level" "10"
"ModelScale" "1.1"
"UseNeutralCreepBehavior" "0"
"IsAncient" "1"
// Abilities
//----------------------------------------------------------------
"Ability1" "" // Ability 1
"Ability2" "" // Ability 2
"Ability3" "" // Ability 3
"Ability4" "" // Ability 4
// Armor
//----------------------------------------------------------------
"ArmorPhysical" "14" // Physical protection.
"MagicalResistance" "80"
// Attack
//----------------------------------------------------------------
"AttackCapabilities" "DOTA_UNIT_CAP_RANGED_ATTACK"
"AttackDamageType" "DAMAGE_TYPE_ArmorPhysical"
"AttackDamageMin" "130" // Damage range min.
"AttackDamageMax" "150" // Damage range max.
"AttackRate" "2.2" // Speed of attack.
"AttackAnimationPoint" "0.5" // Normalized time in animation cycle to attack.
"AttackAcquisitionRange" "520" // Range within a target can be acquired.
"AttackRange" "500" // Range within a target can be attacked.
"AttackRangeBuffer" "9000"
// Bounds
//----------------------------------------------------------------
"RingRadius" "40"
"HealthBarOffset" "170"
// Bounty
//----------------------------------------------------------------
"BountyXP" "200" // Experience earn.
"BountyGoldMin" "180" // Gold earned min.
"BountyGoldMax" "200" // Gold earned max.
// Movement
//----------------------------------------------------------------
"MovementCapabilities" "DOTA_UNIT_CAP_MOVE_GROUND"
"MovementSpeed" "190" // Speed.
// Status
//----------------------------------------------------------------
"StatusHealth" "1800" // Base health.
"StatusHealthRegen" "4" // Health regeneration rate.
"StatusMana" "0" // Base mana.
"StatusManaRegen" "0.0" // Mana regeneration rate.
// Vision
//----------------------------------------------------------------
"VisionDaytimeRange" "0" // Range of vision during day light.
"VisionNighttimeRange" "350" // 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"
{
//Level Up
"HPGain" "50"
"DamageGain" "2"
"ArmorGain" "0.25"
"MagicResistGain" "0.1"
"MoveSpeedGain" "1"
"BountyGain" "3"
"XPGain" "15"
}
}
{
// General
//----------------------------------------------------------------
"Model" "models/creeps/lane_creeps/creep_bad_ranged/lane_dire_ranged.vmdl" // Model.
"BaseClass" "npc_dota_creature"
"SoundSet" "n_creep_Ranged"
"GameSoundsFile" "soundevents/game_sounds_creeps.vsndevts"
"Level" "10"
"ModelScale" "1.1"
"UseNeutralCreepBehavior" "0"
"IsAncient" "1"
// Abilities
//----------------------------------------------------------------
"Ability1" "" // Ability 1
"Ability2" "" // Ability 2
"Ability3" "" // Ability 3
"Ability4" "" // Ability 4
// Armor
//----------------------------------------------------------------
"ArmorPhysical" "14" // Physical protection.
"MagicalResistance" "80"
// Attack
//----------------------------------------------------------------
"AttackCapabilities" "DOTA_UNIT_CAP_RANGED_ATTACK"
"AttackDamageType" "DAMAGE_TYPE_ArmorPhysical"
"AttackDamageMin" "130" // Damage range min.
"AttackDamageMax" "150" // Damage range max.
"AttackRate" "2.2" // Speed of attack.
"AttackAnimationPoint" "0.5" // Normalized time in animation cycle to attack.
"AttackAcquisitionRange" "520" // Range within a target can be acquired.
"AttackRange" "500" // Range within a target can be attacked.
"AttackRangeBuffer" "9000"
// Bounds
//----------------------------------------------------------------
"RingRadius" "40"
"HealthBarOffset" "170"
// Bounty
//----------------------------------------------------------------
"BountyXP" "200" // Experience earn.
"BountyGoldMin" "180" // Gold earned min.
"BountyGoldMax" "200" // Gold earned max.
// Movement
//----------------------------------------------------------------
"MovementCapabilities" "DOTA_UNIT_CAP_MOVE_GROUND"
"MovementSpeed" "190" // Speed.
// Status
//----------------------------------------------------------------
"StatusHealth" "1800" // Base health.
"StatusHealthRegen" "4" // Health regeneration rate.
"StatusMana" "0" // Base mana.
"StatusManaRegen" "0.0" // Mana regeneration rate.
// Vision
//----------------------------------------------------------------
"VisionDaytimeRange" "0" // Range of vision during day light.
"VisionNighttimeRange" "350" // 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"
{
//Level Up
"HPGain" "50"
"DamageGain" "2"
"ArmorGain" "0.25"
"MagicResistGain" "0.1"
"MoveSpeedGain" "1"
"BountyGain" "3"
"XPGain" "15"
}
}
Последнее редактирование модератором: