aliens

Author Topic: Diving suit ignore sonic damage  (Read 1236 times)

Offline mutantlord

  • Colonel
  • ****
  • Posts: 134
    • View Profile
Diving suit ignore sonic damage
« on: April 08, 2023, 03:15:23 pm »
Hi trying to help out a player, he found the diving suit is ignoring damage from sonic weapon underwater
I check the damageModifier of the armour vs the damageType of the weapon class as 10 in the Hybrid mod, I can’t find an explanation why it is the armour ignoring damage. It should receive sonic damage from land and sea.

Offline mutantlord

  • Colonel
  • ****
  • Posts: 134
    • View Profile
Re: Diving suit ignore sonic damage
« Reply #1 on: April 08, 2023, 03:18:15 pm »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8888
    • View Profile
Re: Diving suit ignore sonic damage
« Reply #2 on: April 08, 2023, 04:12:58 pm »
The damageType is 5, not 10.
And diving suit has immunity against damage type 5.

Code: [Select]
  - type: STR_TRIBIO_SONIC_WEAPON
    weight: 3
    bigSprite: 570
    floorSprite: 570
    handSprite: 381
    bulletSprite: 8
    fireSound: 960
    hitAnimation: 150
    hitSound: 980
    power: 110
    damageType: 5                   # <---------------------
    accuracySnap: 86
    accuracyAimed: 100
    tuSnap: 30
    tuAimed: 60
    battleType: 1
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
    vaporColor: 3
    vaporDensity: 30

TFTDTerrorunitWeapons.rul
« Last Edit: April 08, 2023, 04:15:52 pm by Meridian »

Offline mutantlord

  • Colonel
  • ****
  • Posts: 134
    • View Profile
Re: Diving suit ignore sonic damage
« Reply #3 on: April 09, 2023, 07:01:42 am »
Thank you for the awesome help as always. You just made some one’s day.