BF2.US bf2-rsdeveloper wiki Parity Discord bf2.us
generated from the code
On this page

CON property reference

Every ObjectTemplate class and component, and every property a .con / .tweak file can set on it. Generated on each build from the tables bf2-rs is built from (re/data/template_properties.tsv, re/data/template_types.tsv) and the Rust that handles them (crates/bf2-objects/src/template/), plus the command tables of the 2142 and Heroes binaries.

BF22142Heroes
objectTemplate.* commands121912571783
handled by bf2-rs11211121 shared + 273 checked / 2142-onlyshared with 2142
Reading a property row

Args are the console types the original parser accepts (float, int, bool, std::string, Vec3 as x/y/z, template names as std::string). Default is the value a fresh template holds before any script line (read from the original constructors). Effect says what the server does with it; accepted, no effect on the server means the line is valid but only the client (rendering, sound) reads it.

Template classes#

A template is created with ObjectTemplate.create <Type> <name>; every line after it sets a property on that active template. A type inherits the properties of every class in its chain.

TypeInherits fromOwn propertiesUsed by
AirDraftEffectBundle0x0000946f > SimpleObject136AirDraftEffectBundle
AmbientEffectArea0x0000946f > Bundle > SimpleObject103AmbientEffectArea
AnimatedBundle0x0000946f > Bundle > SimpleObject98AnimatedBundle, GenericFireArm, MaskObject
AntennaObject0x0000946f > SimpleObject89AntennaObject
AreaObject0x0000946f > Bundle > SimpleObject97AreaObject
Bundle0x0000946f > Bundle95AmbientEffectArea, AnimatedBundle, AreaObject, Bundle, Bundle, Camera ...
Camera0x0000946f > Bundle > Camera > RotationalBundle163Camera
ControlPoint0x0000946f > Bundle > SimpleObject131ControlPoint
Decal0x0000946f47Decal
DestroyableObject0x0000946f > Bundle > SimpleObject101DestroyableObject
DestroyableWindow0x0000946f > SimpleObject83DestroyableWindow
DestroyableWindowsBundle0x0000946f > Bundle > SimpleObject100DestroyableWindowsBundle
DropVehicle0x0000946f > SimpleObject84DropVehicle
DynamicBundle0x0000946f > Bundle > SimpleObject96DynamicBundle
EffectBundle0x0000946f > Bundle > EffectBundle158EffectBundle
Emitter0x0000946f > Emitter121Emitter
Engine0x0000946f > Bundle > Engine > RotationalBundle189Engine
EntryPoint0x0000946f > EntryPoint84EntryPoint
EnvMap0x0000946f > SimpleObject84EnvMap
FloatingBundle0x0000946f > Bundle > FloatingBundle > RotationalBundle125FloatingBundle
ForceObject0x0000946f > SimpleObject91ForceObject
FreeCamera0x0000946f > Bundle > SimpleObject97FreeCamera
GenericFireArm0x0000946f > Bundle > SimpleObject > AnimatedBundle121GenericFireArm
GenericProjectile0x0000946f > Bundle > SimpleObject125GenericProjectile
GrapplingHookRope0x0000946f > SimpleObject107GrapplingHookRope
GrapplingHookRopeContainer0x0000946f > Bundle > SimpleObject > GrapplingHookRopeContainer158GrapplingHookRopeContainer
GroundEffectBundle0x0000946f > SimpleObject84GroundEffectBundle
HookLink0x0000946f > SimpleObject83HookLink
Item0x0000946f > Bundle > SimpleObject99Item, Kit
ItemContainer0x0000946f > Bundle > SimpleObject97ItemContainer
Kit0x0000946f > Bundle > SimpleObject > Item113Kit
KitPart0x0000946f > Bundle > SimpleObject98KitPart
Ladder0x0000946f > SimpleObject84Ladder
LadderContainer0x0000946f > Bundle > SimpleObject > LadderContainer158LadderContainer
LandingGear0x0000946f > Bundle > RotationalBundle > SimpleObject128LandingGear
LightSource0x0000946f63LightSource
MaskObject0x0000946f > Bundle > SimpleObject > MaskObject100MaskObject
MeshParticleSystem0x0000946f93MeshParticleSystem
NonScreenAlignedParticleSystem0x0000946f101NonScreenAlignedParticleSystem
ObjectSpawner0x0000946f > SimpleObject102ObjectSpawner
Obstacle0x0000946f > Bundle > SimpleObject96Obstacle
OverheadCamera0x0000946f > Bundle > SimpleObject98OverheadCamera
Parachute0x0000946f > Bundle > SimpleObject > PlayerControlObject158Parachute
Particle0x0000946f66Particle
ParticleSystemEmitter0x0000946f79ParticleSystemEmitter
PlayerControlObject0x0000946f > Bundle > SimpleObject158GrapplingHookRopeContainer, LadderContainer, Parachute, PlayerControlObject, ZiplineContainer
RemoteControlledObject0x0000946f > Bundle > SimpleObject102RemoteControlledObject, TurnableRemoteControlledObject
RopeLink0x0000946f > SimpleObject83RopeLink
RotationalBundle0x0000946f > Bundle > RotationalBundle120Camera, Engine, FloatingBundle, LandingGear, RotationalBundle, Wing
Rotor0x0000946f > Bundle > SimpleObject101Rotor
SimpleObject0x0000946f83AirDraftEffectBundle, AmbientEffectArea, AnimatedBundle, AntennaObject, AreaObject, Bundle ...
Soldier0x0000946f > Bundle > SimpleObject113Soldier
Sound0x0000946f51Sound
SpawnPoint0x0000946f42SpawnPoint
Spring0x0000946f > Bundle > SimpleObject101Spring
SpriteParticle0x0000946f29SpriteParticle
SpriteParticleSystem0x0000946f106SpriteParticleSystem
SupplyDepot0x0000946f > SimpleObject90SupplyDepot
SupplyObject0x0000946f > Bundle > SimpleObject111SupplyObject
TargetObject0x0000946f > Bundle > SimpleObject100TargetObject
TrailSystem0x0000946f100TrailSystem
Trigger0x0000946f > Bundle > SimpleObject102Trigger
Triggerable0x0000946f > Bundle > SimpleObject105Triggerable
TriggerableTarget0x0000946f > Bundle > SimpleObject102TriggerableTarget
TurnableRemoteControlledObject0x0000946f > Bundle > SimpleObject > RemoteControlledObject103TurnableRemoteControlledObject
UAVVehicle0x0000946f > Bundle > SimpleObject95UAVVehicle
WheelEffectBundle0x0000946f > SimpleObject132WheelEffectBundle
Wing0x0000946f > Bundle > RotationalBundle > SimpleObject128Wing
Zipline0x0000946f > SimpleObject90Zipline
ZiplineContainer0x0000946f > Bundle > SimpleObject > ZiplineContainer158ZiplineContainer
ZiplineRope0x0000946f > SimpleObject84ZiplineRope

Components#

Components are sub-objects a template creates on demand; their properties carry a prefix (ObjectTemplate.fire.roundsPerMinute, ObjectTemplate.armor.hitPoints). Weapons are almost entirely components.

Triggers in each game#

Which trigger classes each game's template parser registers (the class pages hold the events values each game reads, with the handler addresses). 2142 and Heroes have no Triggerable switch or TriggerableTarget mover: no use-key triggers and no moving doors or lifts; their Trigger fires on proximity, explosions and weapon fire (BF2 adds control point events).

ClassBF22142Heroes
Triggeryes BF2.exe!0x00537263 +0x812, bf2_w32ded.exe!0x00480be0 +0x91ayes BF2142.exe!0x00504be6 +0x61ayes BFHeroes.exe@bfh126!0x00540cd1
AmbientEffectAreayes BF2.exe!0x00537263 +0x851, bf2_w32ded.exe!0x00480be0 +0x961yes BF2142.exe!0x00504be6 +0x659yes BFHeroes.exe@bfh126!0x00540d2d
Triggerableyes BF2.exe!0x00537263 +0x890, bf2_w32ded.exe!0x00480be0 +0x9a8nono
TriggerableTargetyes BF2.exe!0x00537263 +0x8cf, bf2_w32ded.exe!0x00480be0 +0x9efnono
TutorialTrigger (Heroes' tutorial waypoint: once armed it fires when the local player reaches it, posts ECGameLogicGLTutorialTriggerTriggered with its triggerId and arms the TutorialTrigger its nextTriggerId names; no shipped level creates one)nonoyes BFHeroes.exe@bfh126!0x00688c16

Class lists read: BF2 BF2.exe!0x00537263, bf2_w32ded.exe!0x00480be0; 2142 BF2142.exe!0x00504be6; Heroes BFHeroes.exe@bfh126!0x005c28c2, BFHeroes.exe@bfh126!0x0068959a.

TutorialTrigger#

Which games parse it#

Heroes' tutorial waypoint: once armed it fires when the local player reaches it, posts ECGameLogicGLTutorialTriggerTriggered with its triggerId and arms the TutorialTrigger its nextTriggerId names; no shipped level creates one. Read from each game's ObjectTemplate class list (a game that does not register the type ignores ObjectTemplate.create TutorialTrigger):

GameParsedRegistered at
BF2nonot in BF2.exe!0x00537263, bf2_w32ded.exe!0x00480be0
2142nonot in BF2142.exe!0x00504be6
HeroesyesBFHeroes.exe@bfh126!0x00688c16

##### radius and the shape it tests

The property values pick one test. Read by lists the games whose handler runs it.

WhenFires onRead byHandler
radius above 0; length or width below 0the local player's soldier or vehicle closer than radius plus its own radius (a sphere)HeroesBFHeroes.exe@bfh126!0x0082e44b (the sphere test at +0x87, the object's vt+0x90 radius added at +0xb0, the hit at +0x493)
length and width 0 or above (radius not read)the local player's soldier or vehicle inside the length x width box, flat on the ground and turned with the triggerHeroesBFHeroes.exe@bfh126!0x0082e44b (the box test at +0xd2), BFHeroes.exe@bfh126!0x0082e2d1 (four triangles from the centre)
radius 0 or below; length or width below 0fires on its first update once armed (no shape tested)HeroesBFHeroes.exe@bfh126!0x0082e44b (no shape tested at +0x94, the hit at +0x493)

The editor's Ambient panel and inspector show the same table for the loaded game (crates/bf2-editor/src/triggers.rs, H2936).

Across the three games#

The cross-game table lists all 2085 objectTemplate commands (and the other template objects' commands) with their argument types and their server / client scope in each game, so you can see what a 2142 or Heroes file may use that BF2 does not and whether a mod of it needs the players' files. Every property row on the class pages links its cross-game row; the unified reference finds a name in all three games.

Generated by tools/devwiki/refs_con.py.

Source: tools/devwiki/refs_con.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.