心灵终结3ini吧 关注:10,907贴子:199,828
  • 10回复贴,共1

求助一下大佬们

只看楼主收藏回复

自己给增殖机器人写了个弹头,可以把非人类步兵转化成人类再击杀,来生成增殖机器人,但是增殖机器人数量上去后总会莫名弹窗,可以帮忙看看哪里有问题吗,楼下放代码


IP属地:山东1楼2023-10-03 12:35回复
    [DUPL];增殖机器人
    UIName=NAME:DUPL
    Name=Duplicant
    Prerequisite=FABARR,FACYBR,FABARR_D
    Crushable=no
    Pip=red
    Category=Soldier
    Strength=400
    SuppressionThreshold=400
    Primary=DuplicantAttack
    Secondary=VirtualScanner
    NavalTargeting=5
    CivilianEnemy=yes
    DeathWeapon=DuplicantAttack
    DeathAnims=HUNTEXP
    Explodes=yes
    Armor=n_dupl
    TechLevel=11
    CrushSound=InfantrySquish
    Insignificant=no
    SelfHealing=yes
    Assaulter=yes
    Sight=6
    Speed=9
    AllowedToStartInMultiplayer=no
    Cost=1000
    Soylent=500
    Bounty.Value=200
    Bounty=yes
    Bounty.Display=yes
    Points=25
    Fearless=yes
    CloseRange=yes
    IsSelectableCombatant=yes
    VoiceSelect=DuplicantSelect
    VoiceMove=DuplicantMove
    VoiceAttack=DuplicantAttackCommand
    VoiceFeedback=DuplicantFear
    Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
    PhysicalSize=1
    SpeedType=Hover
    MovementZone=AmphibiousDestroyer
    ThreatPosed=15
    SpecialThreatValue=1
    DetectDisguise=yes
    DetectDisguiseRange=7
    DefaultToGuardArea=yes
    BombSight=7
    GuardRange=7
    Size=1
    IFVMode=18
    Trainable=no
    PixelSelectionBracketDelta=-3
    ImmuneToEMP=no
    CanBeReversed=yes
    Insignia.Veteran=dummy
    Insignia.Elite=dummy
    [DUPL1];被转化的步兵
    Image=DUPL
    UIName=
    Name=
    Category=Civilian
    Strength=50
    AutoDeath.Behavior=kill
    AutoDeath.AfterDelay=20
    Armor=n_dupl2
    TechLevel=11
    CrushSound=InfantrySquish
    Insignificant=yes
    Sight=4
    Speed=4
    Owner=Europeans,UnitedStates,Pacific,USSR,Latin,Chinese,PsiCorps,Headquaters,ScorpionCell
    AllowedToStartInMultiplayer=no
    Cost=10
    Soylent=50
    Points=0
    Pip=yellow
    VoiceSelect=
    VoiceMove=
    VoiceAttack=
    VoiceFeedback=
    VoiceSpecialAttack=
    DieSound=
    Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
    PhysicalSize=1
    SpeedType=Hover
    MovementZone=AmphibiousDestroyer
    ThreatPosed=0
    ImmuneToVeins=yes
    Size=1
    Trainable=no
    Insignia.Veteran=dummy
    Insignia.Elite=dummy
    CanBeReversed=yes
    PixelSelectionBracketDelta=-3
    RadarInvisible=yes
    ImmuneToEMP=no


    IP属地:山东2楼2023-10-03 12:37
    回复
      [DuplicantAttack]武器与弹头
      Projectile=Invisible
      Damage=200
      Warhead=DuplicantWH1
      Range=1.5
      ROF=60
      ;Suicide=yes
      FireInTransport=no
      Report=SealPlaceBomb
      CellRangefinding=yes
      DecloakToFire=no
      Bright=yes
      AssaultAnim=UCBLOOD
      ExtraWarheads=DuplicantWH
      ExtraWarheads.DamageOverrides=300
      [DuplicantWH]
      ;Verses=300%,300%,300%,100%,80%,60%,60%,80%,40%,100%,100%
      Verses=0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,
      Versus.n_dupl2=300%
      InfDeathAnim=DUPDEATH
      Wood=yes
      Wall=yes
      CellSpread=1.2
      PercentAtMax=1
      CellSpread.MaxAffect=1
      AffectsAllies=no
      Bright=yes
      AttachEffect.Animation=DUPTRAIL
      AttachEffect.DiscardOnEntry=yes
      AttachEffect.Duration=45
      CombatLightSize=75%
      [DuplicantWH1]
      Verses=300%,300%,300%,100%,80%,60%,60%,80%,40%,100%,100%
      Versus.n_dupl=100%
      Versus.n_dupl2=0%
      Convert0.To=DUPL1
      Convert0.AffectedHouses=enemy
      InfDeathAnim=DUPDEATH
      Wood=yes
      Wall=yes
      CellSpread=1.2
      PercentAtMax=1
      CellSpread.MaxAffect=1
      AffectsAllies=no
      Bright=yes
      AttachEffect.Animation=DUPTRAIL
      AttachEffect.DiscardOnEntry=yes
      AttachEffect.Duration=45
      CombatLightSize=75%


      IP属地:山东3楼2023-10-03 12:38
      回复
        一开始的时候是没有问题的,但增殖机器人变多就会弹窗


        IP属地:山东4楼2023-10-03 12:39
        收起回复
          dd


          IP属地:四川来自Android客户端5楼2023-10-03 15:51
          回复
            如果少的时候不弹多了弹,那没准是什么过程并发导致的。
            这应该是kratos的标签吧,你可以试着从源码结合dump文件debug


            IP属地:北京来自Android客户端6楼2023-10-05 19:01
            收起回复