rey
  • rey
  • 52.5% (Neutral)
  • Major Topic Starter
9 years ago
some units can do it: kill these 3 men with rockets in stinger site - how to add this to unit/his weapon?
Sponsor
klingondragon
9 years ago

  Body                 = HiveStructureBody ModuleTag_04 ;Requires SpawnBehavior!
    MaxHealth          = 1000.0
    InitialHealth      = 1000.0
    ;**Careful with these damage types -- because area damage types will already
    ;**damage slaves.
    PropagateDamageTypesToSlavesWhenExisting = NONE +SMALL_ARMS +SNIPER +POISON +RADIATION +SURRENDER
    SwallowDamageTypesIfSlavesNotExisting = NONE +SNIPER +POISON +SURRENDER; Take no damage if no one to pass this to

    ; Subdual damage "Subdues" you (reaction defined by BodyModule) when it passes your max health.
    ; The cap limits how extra-subdued you can be, and the other numbers detemine how fast it drains away on its own.
    SubdualDamageCap = 1200
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 100
  End

If the weapon is SMALL_ARMS, SNIPER, POISON, or RADIATION then it will kill the soldiers.
rey
  • rey
  • 52.5% (Neutral)
  • Major Topic Starter
9 years ago
@klingondragon, thank you for informative answer!
klingondragon
9 years ago
Most of modding is reading the existing code and working out what things do.
It was a simple matter of finding the code and finding the right line.