generated from the code
DefaultAmmoComp
BF22142Heroes
A template component (class id 0x000094e0): its properties are set through their prefix on the active template.
Properties (14)#
Each name links its row in the cross-game table (the owner classes and the scope's reason). The BF2 cell holds this class's argument types; Notes the default a fresh template holds, what the BF2 dedicated server does with the line, and whether bf2-rs handles it.
Scope badges
serveronly the server reads it: a mod on the server alone takes effect, players need nothingclientonly the game client reads it (drawing, sound, HUD): every player who should see it needs the modsharedthe server and every client read it: both need the same files, or the clients' view jumpsyesthe game has it; nobody has classified its scope yet
BF22142HeroesA game column holds that game's badge and the argument types its program registers; an empty cell means the game does not know the name. The Notes column gives the reason (how the scopes are worked out).
| Name | BF2 | 2142 | Heroes | Notes |
|---|---|---|---|---|
ammo.ammoType | shared int | shared int | shared int | default 0; stored on the template; bf2-rs: yes |
ammo.autoReload | shared bool | shared bool | shared bool | default 0; stored on the template; bf2-rs: yes |
ammo.changeMagAt | shared float | shared float | shared float | default 0.699999988079071; stored, derived values updated; bf2-rs: yes |
ammo.firstShotExtraTime | shared float | shared float | shared float | default 0.0; stored, derived values updated; bf2-rs: yes |
ammo.instantReloadOnEnable | shared bool | shared bool | shared bool | default 0; stored on the template; bf2-rs: yes |
ammo.lastShotExtraTime | shared float | shared float | shared float | default 0.0; stored, derived values updated; bf2-rs: yes |
ammo.magLinkWeapon | shared std::string | shared std::string | shared std::string | default ''; stored on the template; bf2-rs: yes |
ammo.magSize | shared int | shared int | shared int | default 30; stored on the template; bf2-rs: yes |
ammo.minimumTimeUntilReload | shared float | shared float | shared float | default 0.0; stored, derived values updated; bf2-rs: yes |
ammo.nrOfMags | shared int | shared int | shared int | default 5; stored on the template; bf2-rs: yes |
ammo.reloadAmount | shared int | shared int | shared int | default 0; stored on the template; bf2-rs: yes |
ammo.reloadTime | shared float | shared float | shared float | default 2.0; stored, derived values updated; bf2-rs: yes |
ammo.reloadWithoutPlayer | shared bool | shared bool | shared bool | default 1; stored on the template; bf2-rs: yes |
ammo.toggleWhenNoAmmo | shared bool | shared bool | shared bool | default 0; stored on the template; bf2-rs: yes |
Generated by tools/devwiki/refs_con.py from re/data/template_properties.tsv.
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.