Kit Type
The Kit object type is created by ObjectTemplate.Create.
The Kit type is what the BattleField engine uses to create a class or
soldier type that you will play during the game.
The kit defines the soldier type as well as what weapons will be displayed in the weapon selector.
You can create as many kits
as you like, since each level picks what kits are used and what order they
appear in the menu.
Kits are placed in the Objects/Items/[Team]Kit/[Class] hierarchy.
Used in a total of 90 .con files: Objects.con Parent directory of these .con files: objects/Items
Example: (from objects/Items/JapKit/Engineer/Objects.con) Properties used with this type of object: Go to the ObjectTemplate type list page, ObjectTemplate page, All Types list, Class list, CON file list, or Main scripting page.
ObjectTemplate.Create Kit Jap_Engineer
ObjectTemplate.SetType Engineer
ObjectTemplate.SetKitTeam 1
ObjectTemplate.Geometry Kit_Jap_Engineer
ObjectTemplate.SetHasCollisionPhysics 1
ObjectTemplate.NetworkableInfo KitInfo
ObjectTemplate.AddTemplate Jap_Helmet
ObjectTemplate.AddTemplate Jap_hip_pack
ObjectTemplate.AddTemplate BacpacBig_jap
ObjectTemplate.SetHealthBarIcon "Ingame/Healthbar_empty_engineer_64x64.tga"
ObjectTemplate.SetHealthBarFullIcon "Ingame/Healthbar_full_engineer_64x64.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_axisKnife.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_walter.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_type_5.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_demokit.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_landmine.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_repairpack.tga"
ObjectTemplate.SetKitIcon 4 "kits/Icon_engineer_jap_selected.tga"
ObjectTemplate.SetKitName 4 "RESPAWN_ENGINEER"
ObjectTemplate.SetKitActiveName 4 "RESPAWN_ACTIVE_ENGINEER"
ObjectTemplate.AddTemplate Type5
ObjectTemplate.AddTemplate walterp38
ObjectTemplate.AddTemplate KnifeAxis
ObjectTemplate.AddTemplate RepairPack
ObjectTemplate.AddTemplate Landmine
ObjectTemplate.AddTemplate Detonator
ObjectTemplate.AddTemplate ExpPack
ObjectTemplate.AiTemplate Engineer
ObjectTemplate.AddTemplate
ObjectTemplate.AddWeaponIcon
ObjectTemplate.AiTemplate
ObjectTemplate.Create
ObjectTemplate.Geometry
ObjectTemplate.HasCollisionPhysics
ObjectTemplate.HealthBarFullIcon
ObjectTemplate.HealthBarIcon
ObjectTemplate.NetworkableInfo
ObjectTemplate.SetHasCollisionPhysics
ObjectTemplate.SetHealthBarFullIcon
ObjectTemplate.SetHealthBarIcon
ObjectTemplate.SetKitAccelFactor
ObjectTemplate.SetKitActiveName
ObjectTemplate.SetKitIcon
ObjectTemplate.SetKitName
ObjectTemplate.SetKitSpeedFactor
ObjectTemplate.SetKitTeam
ObjectTemplate.SetType
ObjectTemplate.Type