Usage:
ObjectTemplate.ExplosionDamage
number
Argument values:
argument 1: | range is 0 to 20; most commonly 5 |
Description: When the object itself is destroyed, this property specifies the damage caused by the explosion, radiating from the center of the object by the radius set with ExplosionRadius.
Related properties: ExplosionForce, ExplosionForceMod, ExplosionRadius
Used in object types (and how often in each type): Bundle (2%), ClusterProjectile (100%), PlayerControlObject (33%), Projectile (13%), simpleobject (1%)
Used in a total of 135 .con files: Commonsoldierdata.inc, Objects.con, Projectile.con, Weapons.con
Parent directories of these .con files: objects/Vehicles, objects/Soldiers, objects/MOVE_FILES, objects/HandWeapons, Bf1942/Levels
Example: (from objects/Vehicles/Air/C47/Objects.con)
rem *** C47 ***
ObjectTemplate.Create PlayerControlObject C47
ObjectTemplate.SetNetworkableInfo C47bodyinfo
ObjectTemplate.SaveInSeparateFile 1
ObjectTemplate.HasMobilePhysics 1
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.Drag 0.135
ObjectTemplate.Mass 25000
ObjectTemplate.InertiaModifier 0.6/0.6/0.3
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
ObjectTemplate.ExplosionRadius 8
ObjectTemplate.ExplosionDamage 5
ObjectTemplate.HasArmor 1
ObjectTemplate.AngleMod 1
ObjectTemplate.SpeedMod 2
ObjectTemplate.Hitpoints 250
ObjectTemplate.Maxhitpoints 250
ObjectTemplate.Material 60
ObjectTemplate.CriticalDamage 20
ObjectTemplate.HpLostWhileCriticalDamage 1.5
ObjectTemplate.ExplosionForceMod 15
ObjectTemplate.HpLostWhileUpSideDown 10
ObjectTemplate.HpLostWhileDamageFromWater 10
ObjectTemplate.AddArmorEffect 175 em_B17Damage 3.2/-1.52/4.11
ObjectTemplate.AddArmorEffect 175 em_PlaneDamage 3.2/-1.53/4.11
ObjectTemplate.AddArmorEffect 125 em_B17Damage -3.2/-1.52/4.11
ObjectTemplate.AddArmorEffect 125 em_PlaneDamage -3.2/-1.53/4.11
ObjectTemplate.AddArmorEffect 125 em_B17Damage 3.2/-1.52/4.11
ObjectTemplate.AddArmorEffect 125 em_PlaneDamage 3.2/-1.53/4.11
ObjectTemplate.AddArmorEffect 20 e_StukaFire 3.2/-0.8/4.11
ObjectTemplate.AddArmorEffect 20 e_StukaFire -3.2/-0.8/4.11
ObjectTemplate.AddArmorEffect 20 em_B17Damage -3.2/-1.52/4.11
ObjectTemplate.AddArmorEffect 20 em_PlaneDamage -3.2/-1.53/4.11
ObjectTemplate.AddArmorEffect 20 em_B17Damage 3.2/-1.52/4.11
ObjectTemplate.AddArmorEffect 20 em_PlaneDamage 3.2/-1.53/4.11
ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/0/0
ObjectTemplate.AddArmorEffect 0 e_scrapmetal_C47 0/0/0
ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.DamageFromWater 1
ObjectTemplate.AiTemplate C47
rem -------------------------------------
ObjectTemplate.AddTemplate lodC47
rem -------------------------------------
ObjectTemplate.SetSoldierExitLocation -3.2/-0.4/-3.5 0/0/0
ObjectTemplate.GUIIndex 69
ObjectTemplate.SetVehicleIcon "Vehicle/Icon_c47.tga"
ObjectTemplate.SetVehicleIconPos 78/115
ObjectTemplate.SetVehicleCategory VCAir
ObjectTemplate.SetVehicleType VTLevelBomber
ObjectTemplate.SetToolTipType TTC47
ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_plane_16x16.tga"
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.