Damage resistance

You can build a dragon damage resistance configuration.

  • Make the dragon resistant or immune to certain weapons.

  • Assign lower or zero damage values for weapons that would realistically have no effect (e.g., WEAPON_UNARMED).

  • Assign moderate or full damage to more powerful weapons (like WEAPON_SNIPERRIFLE_CARCANO).

1. Make sure you have enabled damage receiving in config.lua

Config.AllowDamageToDragonByBullets = true -- Guns damage

You also can enable melee and fire damage:

Config.AllowDamageToDragonByBullets = true
Config.AllowDamageToDragonByFire = true

2. Next go to shared/damage.lua and change values per weapon.

For example:

WEAPON_DAMAGE = {
    {Name = `WEAPON_UNARMED`, Damage = 0.0}, -- No damage by fists
    {Name = `WEAPON_PISTOL_M1899`, Damage = 2.0}, -- 2x more damage by m1899 pistol
    {Name = `WEAPON_RIFLE_ELEPHANT`, Damage = 4.0}, -- 4x more damage elephant rifle 
}

You can change max health per dragon, for example set 100k health to specific dragon. Check config values health and healthRegenration on More Dragons.

Last updated