Юнит не кастует скиллы

NeedWay

Активный
5 Сен 2017
104
5
18
17
steamcommunity.com
Проект
Dota 2 PUBG
Реакции
5 0 0
#1
Есть юнит:
Код:
"boss2"   
   {
      // General
      //----------------------------------------------------------------
      "Model"                        "models/heroes/centaur/centaur.vmdl"   // Model.
      "BaseClass"               "npc_dota_creature"
      "SoundSet"                     "Hero_Centaur"
      "GameSoundsFile"               "soundevents/game_sounds_heroes/game_sounds_centaur.vsndevts"
      "IdleSoundLoop"                "Hero_Centaur.Tutorial_Intro"
      "Level"                  "4"
      "ModelScale"             "1.6"
      // Abilities
      //----------------------------------------------------------------
      "Ability1"               "centaur_hoof_stomp"         // Ability 1
      "Ability2"               ""         // Ability 2
      "Ability3"               ""         // Ability 3
      "Ability4"               ""         // Ability 4

      // Armor
      //----------------------------------------------------------------
      "ArmorPhysical"            "50"         // Physical protection.
      "MagicalResistance"            "75"
      "IsAncient"                    "1" 
      // Attack
      //----------------------------------------------------------------
      "AttackCapabilities"      "DOTA_UNIT_CAP_MELEE_ATTACK"
      "AttackDamageMin"         "520"      // Damage range min.
      "AttackDamageMax"         "560"      // Damage range max.
      "AttackRate"            "1.0"      // Speed of attack.
      "AttackAnimationPoint"      "0.4"      // Normalized time in animation cycle to attack.
      "AttackAcquisitionRange"   "800"      // Range within a target can be acquired.
      "AttackRange"            "130"      // Range within a target can be attacked.
      "ProjectileModel"         "particles/neutral_fx/gnoll_base_attack.vpcf" // Particle system model for projectile.
      "ProjectileSpeed"         "1500"      // Speed of projectile.           

      // Bounds
      //----------------------------------------------------------------
      "RingRadius"            "40"
      "HealthBarOffset"         "200"

      // Bounty
      //----------------------------------------------------------------
      "BountyXP"               "1000"      // Experience earn.
      "BountyGoldMin"            "1210"      // Gold earned min.
      "BountyGoldMax"            "1350"      // Gold earned max.

      // Movement
      //----------------------------------------------------------------
      "MovementCapabilities"      "DOTA_UNIT_CAP_MOVE_GROUND"
      "MovementSpeed"            "380"      // Speed.         

      // Status
      //----------------------------------------------------------------
      "StatusHealth"            "25000"      // Base health.
      "StatusHealthRegen"         "25"      // Health regeneration rate.
      "StatusMana"            "1300"         // Base mana.
      "StatusManaRegen"         "5.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_GOODGUYS"                  // Team name.
      "CombatClassAttack"         "DOTA_COMBAT_CLASS_ATTACK_BASIC"
        "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"
         "ItemDrops"
            {
                "StatTomes"
                {
                    "Item"
                    {
                        "1"             "item_assault"
                    }
                    "Chance"            "100"
                }
            }
             "DefaultState"            "Invade"
         "States"
            {
                "Invade"
                {
                    "Name"            "Invade"
                    "Aggression"    "100.0"
                    "Avoidance"        "0.0"
                    "Support"        "100.0"
                }
            }
      "AttachWearables"
    {
            "Wearable1" { "ItemDef" "6500" }
            "Wearable2" { "ItemDef" "6497" }
            "Wearable3" { "ItemDef" "6494" }
            "Wearable4" { "ItemDef" "6495" }
            "Wearable5" { "ItemDef" "6496" }
            "Wearable6" { "ItemDef" "6889" }
            "Wearable7" { "ItemDef" "6498" }
    }
     }
   }
Вроде как по гайду сделал стейт, но кент не дает стан. В чем ошибка?
 

X=Y

Пользователь
26 Апр 2018
11
0
1
18
Реакции
0 0 0
#2
Есть юнит:
Код:
"boss2"  
   {
      // General
      //----------------------------------------------------------------
      "Model"                        "models/heroes/centaur/centaur.vmdl"   // Model.
      "BaseClass"               "npc_dota_creature"
      "SoundSet"                     "Hero_Centaur"
      "GameSoundsFile"               "soundevents/game_sounds_heroes/game_sounds_centaur.vsndevts"
      "IdleSoundLoop"                "Hero_Centaur.Tutorial_Intro"
      "Level"                  "4"
      "ModelScale"             "1.6"
      // Abilities
      //----------------------------------------------------------------
      "Ability1"               "centaur_hoof_stomp"         // Ability 1
      "Ability2"               ""         // Ability 2
      "Ability3"               ""         // Ability 3
      "Ability4"               ""         // Ability 4

      // Armor
      //----------------------------------------------------------------
      "ArmorPhysical"            "50"         // Physical protection.
      "MagicalResistance"            "75"
      "IsAncient"                    "1"
      // Attack
      //----------------------------------------------------------------
      "AttackCapabilities"      "DOTA_UNIT_CAP_MELEE_ATTACK"
      "AttackDamageMin"         "520"      // Damage range min.
      "AttackDamageMax"         "560"      // Damage range max.
      "AttackRate"            "1.0"      // Speed of attack.
      "AttackAnimationPoint"      "0.4"      // Normalized time in animation cycle to attack.
      "AttackAcquisitionRange"   "800"      // Range within a target can be acquired.
      "AttackRange"            "130"      // Range within a target can be attacked.
      "ProjectileModel"         "particles/neutral_fx/gnoll_base_attack.vpcf" // Particle system model for projectile.
      "ProjectileSpeed"         "1500"      // Speed of projectile.          

      // Bounds
      //----------------------------------------------------------------
      "RingRadius"            "40"
      "HealthBarOffset"         "200"

      // Bounty
      //----------------------------------------------------------------
      "BountyXP"               "1000"      // Experience earn.
      "BountyGoldMin"            "1210"      // Gold earned min.
      "BountyGoldMax"            "1350"      // Gold earned max.

      // Movement
      //----------------------------------------------------------------
      "MovementCapabilities"      "DOTA_UNIT_CAP_MOVE_GROUND"
      "MovementSpeed"            "380"      // Speed.        

      // Status
      //----------------------------------------------------------------
      "StatusHealth"            "25000"      // Base health.
      "StatusHealthRegen"         "25"      // Health regeneration rate.
      "StatusMana"            "1300"         // Base mana.
      "StatusManaRegen"         "5.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_GOODGUYS"                  // Team name.
      "CombatClassAttack"         "DOTA_COMBAT_CLASS_ATTACK_BASIC"
        "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"
         "ItemDrops"
            {
                "StatTomes"
                {
                    "Item"
                    {
                        "1"             "item_assault"
                    }
                    "Chance"            "100"
                }
            }
             "DefaultState"            "Invade"
         "States"
            {
                "Invade"
                {
                    "Name"            "Invade"
                    "Aggression"    "100.0"
                    "Avoidance"        "0.0"
                    "Support"        "100.0"
                }
            }
      "AttachWearables"
    {
            "Wearable1" { "ItemDef" "6500" }
            "Wearable2" { "ItemDef" "6497" }
            "Wearable3" { "ItemDef" "6494" }
            "Wearable4" { "ItemDef" "6495" }
            "Wearable5" { "ItemDef" "6496" }
            "Wearable6" { "ItemDef" "6889" }
            "Wearable7" { "ItemDef" "6498" }
    }
     }
   }
Вроде как по гайду сделал стейт, но кент не дает стан. В чем ошибка?
Тебе не хватает этой строчки

"OffensiveAbilities"
{
"Ability1"
{
"Name" "centaur_hoof_stomp"
"AOE" "1"
"Radius" "275"
"MinimumTargets" "1"
"Debuff" "1"
"Stun" "1"
}
 

NeedWay

Активный
5 Сен 2017
104
5
18
17
steamcommunity.com
Проект
Dota 2 PUBG
Реакции
5 0 0
#3
Тебе не хватает этой строчки

"OffensiveAbilities"
{
"Ability1"
{
"Name" "centaur_hoof_stomp"
"AOE" "1"
"Radius" "275"
"MinimumTargets" "1"
"Debuff" "1"
"Stun" "1"
}
Куда вписать то? В стейты, creature, или вне creature?
 

NeedWay

Активный
5 Сен 2017
104
5
18
17
steamcommunity.com
Проект
Dota 2 PUBG
Реакции
5 0 0
#4

NeedWay

Активный
5 Сен 2017
104
5
18
17
steamcommunity.com
Проект
Dota 2 PUBG
Реакции
5 0 0
#5
Тебе не хватает этой строчки

"OffensiveAbilities"
{
"Ability1"
{
"Name" "centaur_hoof_stomp"
"AOE" "1"
"Radius" "275"
"MinimumTargets" "1"
"Debuff" "1"
"Stun" "1"
}
А где можно посмотреть какие параметры бывают? Чтобы другие скиллы уже сам писал
 
Реклама:

X=Y

Пользователь
26 Апр 2018
11
0
1
18
Реакции
0 0 0
#6
А где можно посмотреть какие параметры бывают? Чтобы другие скиллы уже сам писал
"OffensiveAbilities" - Это когда юниты используют способности при нападении.
"DefensiveAbilities" - Способности при нападении на юнита.
 
Реклама: