Author Topic: Flying units can't into melee?  (Read 4415 times)

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Flying units can't into melee?
« on: August 07, 2014, 01:27:21 am »
I made this large flying unit, using the Hallucinoid drawroutine (12).
I just doesn't attack. Is it because it flies?
Besides the strict necessary (size-related stuff), all its stats and attributes are copypasted from another melee unit, which DOES attack normally (even with less TUs).

I also noticed that melee has changed. All melee "built-in" weapons have accuracy 100 instead of 80 (and the units too have meleeskill 100, instead of 80), "power:" is missing, and "strengthapplied: true" is there. Is there an explanation around?

  - type: SWARMIDSL_WEAPON
    weight: 3
    bigSprite: -3
    floorSprite: 31
    handSprite: 104
    hitSound: 54
#    meleeSound: 130
    clipSize: -1
    power: 200
#    strengthApplied: false
    damageType: 7
    accuracyMelee: 80
    tuMelee: 15
    battleType: 3
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    recover: false

  - type: SWARMIDS_LARGE_ARMOR
    spriteSheet: SWARMIDS_LARGE.PCK
    corpseBattle:
      - CYBERDISC_CORPSE_1
      - CYBERDISC_CORPSE_2
      - CYBERDISC_CORPSE_3
      - CYBERDISC_CORPSE_4
    corpseGeo: STR_CYBERDISC_CORPSE
    frontArmor: 4
    sideArmor: 4
    rearArmor: 4
    underArmor: 4
    drawingRoutine: 12
    constantAnimation: true
    movementType: 1
    size: 2
    damageModifier:
      - 1.0
      - 0.1
      - 4.0
      - 0.8
      - 0.2
      - 0.2
      - 1.0
      - 1.0
      - 1.0
      - 0.0
    loftempsSet: [ 92, 89, 90, 91 ]

  - type: STR_SWARMIDSL_TERRORIST
    race: STR_SWARMIDS
    rank: STR_LIVE_TERRORIST
    stats:
      tu: 80
      stamina: 95
      health: 100
      bravery: 110
      reactions: 64
      firing: 0
      throwing: 0
      strength: 70
      psiStrength: 100
      psiSkill: 0
      melee: 80
    armor: SWARMIDS_LARGE_ARMOR
    standHeight: 17
    kneelHeight: 11
    floatHeight: 2
    value: 25
    deathSound: 23
    moveSound: 130
    intelligence: 2
    aggression: 2
#    energyRecovery: 50
    livingWeapon: true



Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Flying units can't into melee?
« Reply #1 on: August 07, 2014, 04:57:55 am »
your race string doesn't correlate to the weapon string. remove the L in the weapon.

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: Flying units can't into melee?
« Reply #2 on: August 07, 2014, 02:17:08 pm »
your race string doesn't correlate to the weapon string. remove the L in the weapon.
Ok I changed it and now it works.
So my Spitter variants:

  - type: SPITTER_WEAPON
    weight: 3
    bigSprite: -2
    floorSprite: 31
    handSprite: 104
    bulletSprite: 8
    fireSound: 116
    hitSound: 118
    hitAnimation: 46
    power: 80
    damageType: 8
    accuracyAuto: 30
    accuracySnap: 60
    accuracyAimed: 90
    tuAuto: 40
    tuSnap: 30
    tuAimed: 60
    battleType: 1
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
    arcingShot: true
    autoShots: 3
  - type: SPITTER_RETRACT_WEAPON
    weight: 3
    bigSprite: -2
    floorSprite: 31
    handSprite: 104
    bulletSprite: 8
    fireSound: 116
    hitSound: 118
    hitAnimation: 46
    power: 80
    damageType: 8
    accuracySnap: 60
    accuracyAimed: 90
    tuSnap: 30
    tuAimed: 60
    battleType: 1
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
    arcingShot: true
  - type: SPITTER_RETRES_WEAPON
    weight: 3
    bigSprite: -2
    floorSprite: 31
    handSprite: 104
    bulletSprite: 8
    fireSound: 116
    hitSound: 118
    hitAnimation: 46
    power: 80
    damageType: 8
    accuracySnap: 60
    accuracyAimed: 90
    tuSnap: 30
    tuAimed: 60
    battleType: 1
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
    arcingShot: true
  - type: SPITTER_NAKED_WEAPON
    weight: 3
    bigSprite: -2
    floorSprite: 31
    handSprite: 104
    bulletSprite: 8
    fireSound: 116
    hitSound: 118
    hitAnimation: 46
    power: 80
    damageType: 8
    accuracyAuto: 30
    accuracySnap: 60
    accuracyAimed: 90
    tuAuto: 40
    tuSnap: 30
    tuAimed: 60
    battleType: 1
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
    arcingShot: true
    autoShots: 3


  - type: STR_SPITTER_TERRORIST
    race: STR_SPITTER
    rank: STR_LIVE_TERRORIST
    stats:
      tu: 45
      stamina: 80
      health: 30
      bravery: 80
      reactions: 45
      firing: 58
      throwing: 65
      strength: 47
      psiStrength: 40
      psiSkill: 0
      melee: 76
    armor: SPITTER_ARMOR
    standHeight: 18
    kneelHeight: 18
    value: 15
    deathSound: 115
    moveSound: 0
    intelligence: 2
    aggression: 2
    energyRecovery: 30
    livingWeapon: true
  - type: STR_SPITTER_RETRACT_TERRORIST
    race: STR_SPITTER
    rank: STR_LIVE_TERRORIST
    stats:
      tu: 30
      stamina: 80
      health: 30
      bravery: 80
      reactions: 35
      firing: 58
      throwing: 65
      strength: 47
      psiStrength: 40
      psiSkill: 0
      melee: 76
    armor: SPITTER_RETRACT_ARMOR
    standHeight: 10
    kneelHeight: 10
    value: 15
    deathSound: 115
    moveSound: 0
    intelligence: 2
    aggression: 2
    energyRecovery: 30
    livingWeapon: true
  - type: STR_SPITTER_RETRES_TERRORIST
    race: STR_SPITTER
    rank: STR_LIVE_TERRORIST
    stats:
      tu: 30
      stamina: 80
      health: 30
      bravery: 80
      reactions: 35
      firing: 58
      throwing: 65
      strength: 47
      psiStrength: 40
      psiSkill: 0
      melee: 76
    armor: SPITTER_RETRES_ARMOR
    standHeight: 10
    kneelHeight: 10
    value: 15
    deathSound: 117
    moveSound: 0
    intelligence: 2
    aggression: 2
    energyRecovery: 30
    spawnUnit: STR_SPITTER_NAKED_TERRORIST
    livingWeapon: true
  - type: STR_SPITTER_NAKED_TERRORIST
    race: STR_SPITTER
    rank: STR_LIVE_TERRORIST
    stats:
      tu: 45
      stamina: 80
      health: 30
      bravery: 80
      reactions: 45
      firing: 58
      throwing: 65
      strength: 47
      psiStrength: 40
      psiSkill: 0
      melee: 76
    armor: SPITTER_NAKED_ARMOR
    standHeight: 18
    kneelHeight: 18
    value: 15
    deathSound: 115
    moveSound: 0
    intelligence: 2
    aggression: 2
    energyRecovery: 30
    livingWeapon: true


all use "STR_SPITTER_WEAPON" as weapon, instead of their own intended one?

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Flying units can't into melee?
« Reply #3 on: August 07, 2014, 02:23:02 pm »
my guess:
 - type: SPITTER_WEAPON
  - type: SPITTER_RETRACT_WEAPON
  - type: SPITTER_RETRES_WEAPON
  - type: SPITTER_NAKED_WEAPON

  - type: STR_SPITTER_TERRORIST
    race: STR_SPITTER
  - type: STR_SPITTER_RETRACT_TERRORIST
    race: STR_SPITTER_RETRACT
  - type: STR_SPITTER_RETRES_TERRORIST
    race: STR_SPITTER_RETRES
  - type: STR_SPITTER_NAKED_TERRORIST
    race: STR_SPITTER_NAKED

Offline Deskulpa

  • Sergeant
  • **
  • Posts: 21
    • View Profile
Re: Flying units can't into melee?
« Reply #4 on: August 07, 2014, 11:59:29 pm »
I changed the chryssalid to flying units, and destroyed my tank in the air.
Then must be a error in your units or the code.