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

ReplenishingAmmoComp

BF22142Heroes

A template component (class id 0x000094ed): its properties are set through their prefix on the active template.

Properties (21)#

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).
NameBF22142HeroesNotes
ammo.abilityCostshared floatshared floatshared floatdefault 0.0; stored on the template; bf2-rs: yes
ammo.abilityDrainshared floatshared floatshared floatdefault -1.0; stored, derived values updated; bf2-rs: yes
ammo.abilityMaterialshared intshared intshared intdefault -1; stored on the template; bf2-rs: yes
ammo.abilityRadiusshared floatshared floatshared floatdefault 1.0; stored on the template; bf2-rs: yes
ammo.abilityStrengthshared floatshared floatshared floatdefault 1.0; stored, derived values updated; bf2-rs: yes
ammo.ammoTypeshared intshared intshared intdefault 0; stored on the template; bf2-rs: yes
ammo.autoReloadshared boolshared boolshared booldefault 0; stored on the template; bf2-rs: yes
ammo.changeMagAtshared floatshared floatshared floatdefault 0.699999988079071; stored, derived values updated; bf2-rs: yes
ammo.firstShotExtraTimeshared floatshared floatshared floatdefault 0.0; stored, derived values updated; bf2-rs: yes
ammo.instantReloadOnEnableshared boolshared boolshared booldefault 0; stored on the template; bf2-rs: yes
ammo.lastShotExtraTimeshared floatshared floatshared floatdefault 0.0; stored, derived values updated; bf2-rs: yes
ammo.magLinkWeaponshared std::stringshared std::stringshared std::stringdefault ''; stored on the template; bf2-rs: yes
ammo.magSizeshared intshared intshared intdefault 30; stored on the template; bf2-rs: yes
ammo.minimumTimeUntilReloadshared floatshared floatshared floatdefault 0.0; stored, derived values updated; bf2-rs: yes
ammo.nrOfMagsshared intshared intshared intdefault 5; stored on the template; bf2-rs: yes
ammo.onlyActiveWhileFiringshared boolshared boolshared booldefault 0; stored on the template; bf2-rs: yes
ammo.reloadAmountshared intshared intshared intdefault 0; stored on the template; bf2-rs: yes
ammo.reloadTimeshared floatshared floatshared floatdefault 2.0; stored, derived values updated; bf2-rs: yes
ammo.reloadWithoutPlayershared boolshared boolshared booldefault 1; stored on the template; bf2-rs: yes
ammo.replenishingTypeshared ReplenishingTypeshared ReplenishingTypeshared ReplenishingTypedefault 0; stored on the template; bf2-rs: yes
ammo.toggleWhenNoAmmoshared boolshared boolshared booldefault 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.