Modding Commanders? If not Win Conditions Immunity from death?

Discussion in 'Mod Discussions' started by kanehart, September 1, 2015.

  1. kanehart

    kanehart New Member

    Messages:
    3
    Likes Received:
    0
    Modding Commanders? If not Win Conditions Immunity from death?

    I would like to for fun Prolong the battles so that the Commander can't die or if he dies they don't die. As far as I know 100% the first part is not possible. Though the he can't die I'm not sure about either.

    If not can we adjust his def/hp/attack? Make them a bad ***? This is used mainly with friends or Single Player so I don't need to worry about balance as I will not use my commander as an offensive machine nor will AI as far as I know.
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Well if you mod the commanders to have 9999999 hp or to have 100% resistance to all weapons then they will be pretty much immortal. The super high hp part is probably the easiest solution.
  3. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    The commander unit could be made arbitrarily powerful. As an example, tutorial commanders in the titans tutorial have 1000000 hp (they really don't want someone to lose their first matches)
  4. kanehart

    kanehart New Member

    Messages:
    3
    Likes Received:
    0
    Thanks all:
    Code:
    {
       "display_name":"Base Commander",
       "description":"Base Commander Description - If you're seeing this, something is wrong in your commander.",
       "si_name":"commander",
       "strategic_icon_priority":0,
       "max_health":12500000,
       "build_metal_cost":25000,
       "buildable_types":"CmdBuild",
       "show_in_orbital_layer":true,
       "armor_type":"AT_Commander",
       "attachable":{
          "offsets":{
             "root":[
                0,
                0,
                0
             ],
             "head":[
                0,
                0,
                10
             ]
          }
       },
       "production":{
          "energy":2000,
          "metal":20
       },
       "storage":{
          "energy":45000,
          "metal":1500
       },
       "unit_types":[
          "UNITTYPE_Commander",
          "UNITTYPE_Construction",
          "UNITTYPE_Mobile",
          "UNITTYPE_Offense",
          "UNITTYPE_Land",
          "UNITTYPE_NoBuild"
       ],
       "command_caps":[
          "ORDER_Move",
          "ORDER_Patrol",
          "ORDER_Build",
          "ORDER_Attack",
          "ORDER_Reclaim",
          "ORDER_Repair",
          "ORDER_Assist",
          "ORDER_Use",
          "ORDER_FireSecondaryWeapon"
       ],
       "transportable":{
          "size":1
       },
       "navigation":{
          "type":"amphibious",
          "acceleration":60,
          "brake":-1,
          "move_speed":6,
          "turn_speed":90,
          "turn_in_place":false,
          "park_stamp":{
             "shape":"sphere",
             "cost":20,
             "type_data":[
                {
                   "move_type":"land-small",
                   "stamp_type":"simple"
                },
                {
                   "move_type":"amphibious",
                   "stamp_type":"simple"
                }
             ]
          }
       },
       "physics":{
          "radius":9,
          "sync_radius_to_extents":true
       },
       "recon":{
          "observer":{
             "items":[
                {
                   "layer":"surface_and_air",
                   "channel":"sight",
                   "shape":"capsule",
                   "radius":150
                },
                {
                   "layer":"underwater",
                   "channel":"sight",
                   "shape":"capsule",
                   "radius":150
                }
             ]
          }
       },
       "teleportable":{
    
       },
       "tools":[
          {
             "spec_id":"/pa/tools/commander_build_arm/commander_build_arm.json",
             "aim_bone":"bone_turret"
          },
          {
             "spec_id":"/pa/units/commanders/base_commander/base_commander_tool_bullet_weapon.json",
             "aim_bone":"bone_turret",
             "muzzle_bone":"socket_rightMuzzle",
             "primary_weapon":true
          },
          {
             "spec_id":"/pa/tools/uber_cannon/uber_cannon.json",
             "aim_bone":"bone_turret",
             "muzzle_bone":"socket_rightMuzzle",
             "secondary_weapon":true
          },
          {
             "spec_id":"/pa/units/commanders/base_commander/base_commander_tool_aa_weapon.json",
             "aim_bone":"bone_turret",
             "muzzle_bone":"socket_rightMuzzle",
             "primary_weapon":false,
             "show_range":false
          },
          {
             "spec_id":"/pa/units/commanders/base_commander/base_commander_tool_torpedo_weapon.json",
             "aim_bone":"bone_turret",
             "muzzle_bone":"socket_rightMuzzle",
             "primary_weapon":false,
             "show_range":false
          }
       ],
       "death_weapon":{
          "ground_ammo_spec":"/pa/ammo/nuke_pbaoe/nuke_pbaoe.json",
          "air_ammo_spec":"/pa/ammo/nuke_pbaoe/nuke_pbaoe_air.json",
          "air_height_threshold":50
       },
       "events":{
          "fired":{
             "effect_spec":"/pa/effects/specs/default_muzzle_flash.pfx socket_rightMuzzle"
          }
       },
       "fx_offsets":[
          {
             "type":"build",
             "filename":"/pa/effects/specs/fab_spray.pfx",
             "bone":"socket_leftMuzzle"
          }
       ],
       "audio":{
          "loops":{
             "build":{
                "cue":"/SE/Construction/Commander_contruction_beam_loop",
                "flag":"build_target_changed",
                "should_start_func":"has_build_target",
                "should_stop_func":"no_build_target"
             }
          },
          "selection_response":{
             "cue":"/SE/Selection/commander"
          },
          "sing_selection_response":{
             "cue":"/SE/UI/plus/sing"
          }
       },
       "selection_icon":{
          "diameter":16.6
       },
       "mesh_bounds":[
          12.6,
          8.71255,
          15.6193
       ]
    }
    Is there any sort of quick speedy sandbox mode to test things? Like say Spawn a enemy unity or 100 them lol
  5. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
  6. kanehart

    kanehart New Member

    Messages:
    3
    Likes Received:
    0
    Thank you for the advice :)

Share This Page