New Feature: Assign ai members in your squad to Anti-Aircraft Gun

A new AA feature will be added to the new version of big action.

Now you can assign your squad members to control builded AA, and they will automatically shoot at enemy aircrafts (within 800 meters, not very accurate). Just a refinement of the squad mode gameplay


Planed to added to big action version 914


Blks

undestroyableBuilding should be mark as gameclient only

_group{
    _tags:t="gameClient"

    "undestroyableBuilding:tag"{
    }
}
base_vehicle_building_manual_supply{
  _use:t="big_action_fortification_builded_no_shred_undestroyable"
  repairable__baseRepairTotalTime:r=10.0
  fortification_repair__costPercent:r=0.5
  // building_menu__image:t="repair_parts/empty"
  // building_menu__text:t="vehicle/turret"
  isTpsView:b=no
  buildingRadius:r=5.0

  "undestroyableyByTeammates:tag"{
  }

  "building__destructionAwardStat:t"{
    _tags:t="server"
    value:t="enemyBuiltUtilityDestructions"
  }

  "buildByPlayer:eid"{
  }

  "disableVehicleResupply:tag"{
  }

 _group{
    _tags:t="gameClient"

    "undestroyableBuilding:tag"{
    }
  }
}

big_action_fortification_build_no_radius{
  _use:t="fortification_builder_info"
  _use:t="fortification_ai_target"
  buildingCost:r=0.0
  maxCostReturnedOnDestructionMul:r=0.5
  costReturnedOnDestructionMul:r=0.5
  buildTypeId:i=0
  buildingCenterOffset:p3=0.0, 0.0, 0.0
  buildingCostructedAtTime:r=0.0
  buildingSoundTag:t="fortification"
  actionTimerColor:p3=255.0, 0.0, 0.0
  // _replicated:t="building_destroy__timeToDestroy"
  // building_destroy__maxTimeToDestroy:r=5.0
  // building_destroy__timeToDestroy:r=0.0
  // building_destroy__lastDamageAtTime:r=-1.0
  // building_destroy__timeToResetDestructionTimer:r=15.0
  // building_destroy__distanceVerifyThreshold:r=1.5
  // building_destroy__disassembleSound:t="env_effects/building/destroy_action"

  "building__canDismantle:tag"{
  }

  "build_attach__riexHandle:u64"{
    value:i64=-1
    _tags:t="server"
  }

  "building__isBroken:b"{
    value:b=no
    _tags:t="server"
  }

  _group{
    _tags:t="server"
    obstacle__initialStillTimeout:r=0.0
    building__destructionAwardStat:t=""

    "building__breakOffender:eid"{
    }
  }

  // "building_destroy__operator:eid"{
  // }
}

big_action_fortification_builded_no_shred_undestroyable{
  _extends:t="big_action_fortification_build_no_radius"
  _use:t="big_action_fortification_build_no_radius"
  building_destroy__maxTimeToDestroy:r=999999.0
  actionTimerColor:p3=160.0, 160.0, 160.0

  "hasCrosshairHint:tag"{
  }

  "undestroyableyByTeammates:tag"{
  }
}

base_anti_aircraft_cannon{
  _override:b=yes
  _use:t="destroy_inactive_vehicle"
  vehicle_seats__restrictToGroup:i64=0
  vehicle__isDestroyedWithoutCrew:b=no
  inactiveDeleteTimer:r=540.0
  inactiveTimer:r=0.0
  destroyTimerCheckDistance:r=20.0
  // entity__recreateToOnDeath:t="big_action_wreck_gameobj" // not nessary
  fire_source__scale:r=1.0
  item__name:t="research/buildings_unlock_1"

  "ownedBySquad:eid"{
  }

  "turret_control__hasAiGunners:tag"{
  }
}

cannon_ussr_25mm_72k_preview_common{
  _override:b=yes
  additionalBuildingTemplate:t="base_vehicle_building_manual_supply"
}

cannon_germ_20mm_flak38_preview_common{
  _override:b=yes
  additionalBuildingTemplate:t="base_vehicle_building_manual_supply"
}

cannon_us_20mm_polsten_preview_common{
  _override:b=yes
  additionalBuildingTemplate:t="base_vehicle_building_manual_supply"
}

cannon_jp_20mm_type98_preview_common{
  _override:b=yes
  additionalBuildingTemplate:t="base_vehicle_building_manual_supply"
}
11 Likes

Like a boss :+1:

1 Like

if I go far will they stay?

1 Like

distance increase to 120meters

squad{
  _override:b=yes
  squad__maxOrderDistance:r=120.0
  // ...
}
3 Likes