Maxhitpoints Property

Usage:
   ObjectTemplate.Maxhitpoints number

Argument values:

argument 1:    range is 1 to 10000; most commonly 100

Description: The maximum number of hitpoints an object can have, i.e. when fully repaired. Normally this amount is the same as Hitpoints, which determines the initial state of the object. It is possible to have Hitpoints be lower than Maxhitpoints, i.e., all objects of that type will spawn on the battlefield in a damaged state.

Related properties: Hitpoints

Used in object types (and how often in each type): Bundle (1%), ClusterProjectile (100%), FireArms (2%), HandFireArms (12%), PlayerControlObject (48%), Projectile (12%)

Used in a total of 170 .con files: Commonsoldierdata.inc, Objects.con, Weapons.con

Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/Soldiers, objects/Objectives, objects/MOVE_FILES, objects/HandWeapons, Bf1942/Levels

Example: (from objects/Vehicles/Air/B17/Objects.con)
   rem *** B17 ***
   ObjectTemplate.Create PlayerControlObject B17
   ObjectTemplate.NameTagOffset 0/-0.415/4.578
   ObjectTemplate.SetNetworkableInfo B17BodyInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.CullRadiusScale 5
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.Drag 0.125
   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 450
   ObjectTemplate.Maxhitpoints 450
   ObjectTemplate.Material 60
   ObjectTemplate.CriticalDamage 60
   ObjectTemplate.HpLostWhileCriticalDamage 4
   ObjectTemplate.ExplosionForceMod 5
   ObjectTemplate.HpLostWhileUpSideDown 10
   ObjectTemplate.HpLostWhileDamageFromWater 10
   ObjectTemplate.AddArmorEffect 230 em_B17Damage -2.998/-0.548/4.6
   ObjectTemplate.AddArmorEffect 230 em_PlaneDamage -2.998/-1.048/4.6
   ObjectTemplate.AddArmorEffect 160 em_B17Damage -2.998/-0.548/4.6
   ObjectTemplate.AddArmorEffect 160 em_PlaneDamage -2.998/-1.048/4.6
   ObjectTemplate.AddArmorEffect 160 em_B17Damage 6.5/-0.548/4.2
   ObjectTemplate.AddArmorEffect 160 em_PlaneDamage 6.5/-1.048/4.2
   ObjectTemplate.AddArmorEffect 120 em_B17Damage 6.5/-0.548/4.2
   ObjectTemplate.AddArmorEffect 120 em_PlaneDamage 6.5/-1.048/4.2
   ObjectTemplate.AddArmorEffect 120 em_B17Damage -2.998/-0.548/4.6
   ObjectTemplate.AddArmorEffect 120 em_PlaneDamage -2.998/-1.048/4.6
   ObjectTemplate.AddArmorEffect 120 em_B17Damage -6.3/-0.548/4.2
   ObjectTemplate.AddArmorEffect 120 em_PlaneDamage -6.3/-1.048/4.2
   ObjectTemplate.AddArmorEffect 90 em_B17Damage 3/-0.548/4.6
   ObjectTemplate.AddArmorEffect 90 em_PlaneDamage 3/-1.048/4.6
   ObjectTemplate.AddArmorEffect 90 em_B17Damage 6.5/-0.548/4.2
   ObjectTemplate.AddArmorEffect 90 em_PlaneDamage 6.5/-1.048/4.2
   ObjectTemplate.AddArmorEffect 90 em_B17Damage -2.998/-0.548/4.6
   ObjectTemplate.AddArmorEffect 90 em_PlaneDamage -2.998/-1.048/4.6
   ObjectTemplate.AddArmorEffect 90 em_B17Damage -6.3/-0.548/4.2
   ObjectTemplate.AddArmorEffect 90 em_PlaneDamage -6.3/-1.048/4.2
   ObjectTemplate.AddArmorEffect 60 e_B17Fire 0/0.75/1.2
   ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/0/0
   ObjectTemplate.AddArmorEffect 0 e_ScrapMetal_B17 0/0/0
   ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/0/0
   ObjectTemplate.DamageFromWater 1
   ObjectTemplate.AiTemplate B17
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodB17
   rem -------------------------------------
   ObjectTemplate.SetSoldierExitLocation -1.9/-0.5/-4.2 0/0/0
   ObjectTemplate.GUIIndex 28
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_b17.tga"
   ObjectTemplate.SetVehicleIconPos 79/112
   ObjectTemplate.SetNumberOfWeaponIcons 1
   ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_bomb.tga"
   ObjectTemplate.SetPrimaryAmmoBar ABAmmoBarReloadBar
   ObjectTemplate.SetCrossHairType CHTNone
   ObjectTemplate.SetVehicleCategory VCAir
   ObjectTemplate.SetVehicleType VTBomber
   ObjectTemplate.SetToolTipType TTBomber
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_plane_16x16.tga"


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.