PlayerControlObject Type

The PlayerControlObject object type is created by ObjectTemplate.Create.

This object is what Battlefield 1942 uses as a base object for vehicles and stationary weapons, or whatever the player can "enter". The PlayerControlObject itself contain information like Hitpoints and damage information, ammo/weapon icons, and other miscellaneous properties.

Most of the actual behavior for vehicles and stationary weapons is determined by the child objects. In simple vehicles (like stationary weapons), most of the objects are direct children, but in complex vehicles (tanks, jeeps, planes, ships) the only direct children of a PlayerControlObject are FloatingBundle type objects (for ships, amphibious vehicles, and submarines) and a LodObject that contains a Bundle with all of the physics, weapons, and other PlayerControlObjects (for multiple positions).

Used in a total of 145 .con files: Objects.con

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

Example: (from objects/Vehicles/Sea/Shokaku/Objects.con)
   rem *** Shokaku ***
   ObjectTemplate.Create PlayerControlObject Shokaku
   ObjectTemplate.SetNetworkableInfo ShokakuBodyInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.Drag 1.97
   ObjectTemplate.Mass 25000000
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.HasArmor 1
   ObjectTemplate.Hitpoints 600
   ObjectTemplate.Maxhitpoints 600
   ObjectTemplate.Material 55
   ObjectTemplate.CriticalDamage 100
   ObjectTemplate.HpLostWhileCriticalDamage 1.5
   ObjectTemplate.ExplosionForceMod 5
   ObjectTemplate.DontClearTeamOnExit 1
   ObjectTemplate.AddArmorEffect 500 em_ExFumePOW 21/10/-2
   ObjectTemplate.AddArmorEffect 500 em_ExFumePOW 22/10/8
   ObjectTemplate.AddArmorEffect 350 em_ExFumePOW 21/10/-2
   ObjectTemplate.AddArmorEffect 350 em_ExFumePOW 22/10/8
   ObjectTemplate.AddArmorEffect 350 em_ShokakuDamage 0/0/0
   ObjectTemplate.AddArmorEffect 150 em_ShokakuDamage 0/0/0
   ObjectTemplate.AddArmorEffect 150 e_waterBoatSink 0/5/0
   ObjectTemplate.AddArmorEffect 100 em_ShokakuDamage 0/0/0
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSink 0/5/0
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 19/6/-5
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 17/2/-45
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 14/2/-85
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 10/2/-115
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 13/3/25
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 18/3/45
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 16/2/65
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 14/2/85
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 0/3/120
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 0/6/35
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 0/5/-25
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 0/15/-5
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf 0/3/-90
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf -19/6/-5
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf -17/3/-35
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf -14/2/-75
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf -10/2/-115
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf -13/3/25
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf -18/3/45
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf -16/2/65
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSinkEf -14/2/85
   ObjectTemplate.AiTemplate Shokaku
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodShokaku
   ObjectTemplate.AddTemplate ShokakuFloater
   ObjectTemplate.SetPosition 0/11/130
   ObjectTemplate.AddTemplate ShokakuFloater
   ObjectTemplate.SetPosition -7.999/11/60
   ObjectTemplate.AddTemplate ShokakuFloater
   ObjectTemplate.SetPosition 8/11/60
   ObjectTemplate.AddTemplate ShokakuFloater
   ObjectTemplate.SetPosition -9.999/11/0
   ObjectTemplate.AddTemplate ShokakuFloater
   ObjectTemplate.SetPosition 10/11/0
   ObjectTemplate.AddTemplate ShokakuFloater
   ObjectTemplate.SetPosition -7.999/11/-59.999
   ObjectTemplate.AddTemplate ShokakuFloater
   ObjectTemplate.SetPosition 8/11/-59.999
   ObjectTemplate.AddTemplate ShokakuFloater
   ObjectTemplate.SetPosition 0/11/-129.999
   rem -------------------------------------
   ObjectTemplate.SetSoldierExitLocation 15.39/17.93/35.77 180/0/0
   ObjectTemplate.GUIIndex 94
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_shokaku.tga"
   ObjectTemplate.SetVehicleIconPos 65/85
   ObjectTemplate.SetPrimaryAmmoBar ABNone
   ObjectTemplate.SetCrossHairType CHTNone
   ObjectTemplate.SetVehicleCategory VCSea
   ObjectTemplate.SetVehicleType VTCarrier
   ObjectTemplate.SetToolTipType TTCarrier
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_aircraft_carrier_64x64.tga"
   ObjectTemplate.SetMinimapIconSize 64

Properties used with this type of object:
   ObjectTemplate.AddArmorEffect
   ObjectTemplate.AddPcoPosId
   ObjectTemplate.AddTemplate
   ObjectTemplate.AiTemplate
   ObjectTemplate.AngleMod
   ObjectTemplate.ArtPos
   ObjectTemplate.CameraDelayDistance
   ObjectTemplate.CameraDelayTime
   ObjectTemplate.CanBeRepaiedAsDestroyed
   ObjectTemplate.CanConvertToAmmo
   ObjectTemplate.Create
   ObjectTemplate.CriticalDamage
   ObjectTemplate.CrossHairType
   ObjectTemplate.CullRadiusScale
   ObjectTemplate.DamageFromWater
   ObjectTemplate.DeathEffectName
   ObjectTemplate.DestroyOnExit
   ObjectTemplate.DirBarRotate
   ObjectTemplate.DirBarXScale
   ObjectTemplate.DirBarYScaleAbove
   ObjectTemplate.DirBarYScaleBelow
   ObjectTemplate.DirBarYScaleMax
   ObjectTemplate.DirBarYScaleMin
   ObjectTemplate.DisableSpawnPointsOnEnter
   ObjectTemplate.DontClearTeamOnExit
   ObjectTemplate.Drag
   ObjectTemplate.DragOffset
   ObjectTemplate.ExitSpeedMod
   ObjectTemplate.ExitTimer
   ObjectTemplate.ExplosionDamage
   ObjectTemplate.ExplosionForce
   ObjectTemplate.ExplosionForceMod
   ObjectTemplate.ExplosionRadius
   ObjectTemplate.FadeAtTimeToLiveAfterDeath
   ObjectTemplate.Geometry
   ObjectTemplate.GUIIndex
   ObjectTemplate.HasArmor
   ObjectTemplate.HasCollisionPhysics
   ObjectTemplate.HasDynamicShadow
   ObjectTemplate.HasGyroScope
   ObjectTemplate.HasMobilePhysics
   ObjectTemplate.Haspointphysics
   ObjectTemplate.HasResponsePhysics
   ObjectTemplate.HasRestrictedExit
   ObjectTemplate.HasTurretIcon
   ObjectTemplate.Hitpoints
   ObjectTemplate.HpLostWhileCriticalDamage
   ObjectTemplate.HpLostWhileDamageFromWater
   ObjectTemplate.HpLostWhileUpSideDown
   ObjectTemplate.InertiaModifier
   ObjectTemplate.LoadSoundScript
   ObjectTemplate.Mass
   ObjectTemplate.Material
   ObjectTemplate.Maxhitpoints
   ObjectTemplate.MaxVertRegAngle
   ObjectTemplate.MinimapIcon
   ObjectTemplate.NameTagOffset
   ObjectTemplate.NetworkableInfo
   ObjectTemplate.NoVertRegAngle
   ObjectTemplate.NumberOfWeaponIcons
   ObjectTemplate.PcoId
   ObjectTemplate.PrimaryAmmoBar
   ObjectTemplate.PrimaryAmmoIcon
   ObjectTemplate.RegulatePitch
   ObjectTemplate.RegulatePitchInput
   ObjectTemplate.RegulateRoll
   ObjectTemplate.RegulateRollInput
   ObjectTemplate.RegulateVerticalPos
   ObjectTemplate.RegulateVerticalPosInput
   ObjectTemplate.RegulateYaw
   ObjectTemplate.RegulateYawInput
   ObjectTemplate.SaveInSeparateFile
   ObjectTemplate.SecondaryAmmoBar
   ObjectTemplate.SecondaryAmmoIcon
   ObjectTemplate.SetAttachToListener
   ObjectTemplate.SetCrossHairType
   ObjectTemplate.SetForwardMod
   ObjectTemplate.SetHasCollisionPhysics
   ObjectTemplate.SetHasResponsePhysics
   ObjectTemplate.SetHasTurretIcon
   ObjectTemplate.SetMinimapIcon
   ObjectTemplate.SetMinimapIconSize
   ObjectTemplate.SetNetworkableInfo
   ObjectTemplate.SetNumberOfWeaponIcons
   ObjectTemplate.SetPcoId
   ObjectTemplate.SetPosition
   ObjectTemplate.SetPrimaryAmmoBar
   ObjectTemplate.SetPrimaryAmmoIcon
   ObjectTemplate.SetRotation
   ObjectTemplate.SetSecondaryAmmoBar
   ObjectTemplate.SetSecondaryAmmoIcon
   ObjectTemplate.SetSoldierExitLocation
   ObjectTemplate.SetSubmarineHudDepthModifier
   ObjectTemplate.SetSubmarineHudDirModifier
   ObjectTemplate.SetToolTipType
   ObjectTemplate.SetVehicleCategory
   ObjectTemplate.SetVehicleIcon
   ObjectTemplate.SetVehicleIconPos
   ObjectTemplate.SetVehicleType
   ObjectTemplate.ShowPCOCockpit
   ObjectTemplate.SonarPos
   ObjectTemplate.SpeedMod
   ObjectTemplate.SubmarineData
   ObjectTemplate.SubPos
   ObjectTemplate.TimeToLiveAfterDeath
   ObjectTemplate.ToolTipType
   ObjectTemplate.VehicleCameraShake
   ObjectTemplate.VehicleCategory
   ObjectTemplate.VehicleFov
   ObjectTemplate.VehicleIcon
   ObjectTemplate.VehicleIconPos
   ObjectTemplate.VehicleType


Go to the ObjectTemplate type list page, ObjectTemplate page, All Types list, Class list, CON file list, or Main scripting page.