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

LightSource

BF22142Heroes

Template type dice.hfe.world.ObjectTemplate.LightSource (class id 0x000094c7). Inheritance: 0x0000946f > LightSource.

con
ObjectTemplate.create LightSource my_lightsource

Types that have these properties: LightSource

Properties (63)#

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
activeshared world::IObjectTemplate_ptrproxyshared world::IObjectTemplate_ptrproxyshared world::IObjectTemplate_ptrproxyhandled by the template manager; bf2-rs: yes
activeSafeshared std::string, world::IObjectTemplate_ptrproxyshared std::string, world::IObjectTemplate_ptrproxyshared std::string, world::IObjectTemplate_ptrproxyhandled by the template manager (method); bf2-rs: yes
affectingTypeshared intshared intshared intdefault 0; stored on the template; bf2-rs: yes
affectLightmappedObjectsclient boolclient boolclient booldefault 1; stored on the template; bf2-rs: yes
attenuationRange1shared floatshared floatshared floatdefault 4.0; stored, derived values updated; bf2-rs: yes
attenuationRange2shared floatshared floatshared floatdefault 5.0; stored, derived values updated; bf2-rs: yes
castsDynamicShadowshared boolshared boolshared booldefault 0; stored on the template; bf2-rs: yes
castsStaticShadowshared boolshared boolshared booldefault 0; stored on the template; bf2-rs: yes
colorclient Vec3ColorFloatIntensityclient Vec3ColorFloatIntensityclient Vec3ColorFloatIntensitydefault 1.0/1.0/1.0; stored on the template; bf2-rs: yes
coneAngle1shared floatshared floatshared floatdefault 20.0; stored, derived values updated; bf2-rs: yes
coneAngle2shared floatshared floatshared floatdefault 22.5; stored, derived values updated; bf2-rs: yes
createshared std::string, std::stringshared std::string, std::stringshared std::string, std::stringhandled by the template manager (method); bf2-rs: yes
createdInEditorshared boolshared boolshared booldefault 0; stored, derived values updated; bf2-rs: yes
createInvisibleshared boolshared boolshared booldefault 0; stored, derived values updated; bf2-rs: yes
createNotInGridshared boolshared boolshared booldefault 1; stored, derived values updated; bf2-rs: yes
createVisibleInEditorshared boolshared boolshared booldefault 0; stored, derived values updated; bf2-rs: yes
cullRadiusScaleshared floatshared floatshared floatdefault 1.0; stored on the template; bf2-rs: yes
deleteshared world::IObjectTemplate_ptrproxyshared world::IObjectTemplate_ptrproxyshared world::IObjectTemplate_ptrproxyhandled by the template manager (method); bf2-rs: yes
directionshared Vec3shared Vec3shared Vec3builds a list / sub-object; bf2-rs: yes
enabledshared boolshared boolshared booldefault 1; stored on the template; bf2-rs: yes
flickershared floatshared floatshared floatdefault 0.0; stored, derived values updated; bf2-rs: yes
fovclient floatclient floatclient floatdefault 8.0; stored, derived values updated; bf2-rs: yes
geometryshared std::stringshared std::stringshared std::stringdefault ''; stored on the template; bf2-rs: yes
hasRelativeOffsetshared boolshared boolshared booldefault 0; stored, derived values updated; bf2-rs: yes
HDRIntensityshared floatshared floatshared floatdefault 1.0; stored on the template; bf2-rs: yes
infoshared world::IObjectTemplate_ptrproxyhandled by the template manager (method); bf2-rs: yes
intensityshared floatshared floatshared floatdefault 0.699999988079071; stored on the template; bf2-rs: yes
isDestructableshared boolshared boolshared booldefault 0; stored, derived values updated; bf2-rs: yes
isDynamicshared boolshared boolshared booldefault 0; stored on the template; bf2-rs: yes
isNotSaveableshared boolshared boolshared booldefault 0; stored, derived values updated; bf2-rs: yes
lightTypeclient std::stringclient std::stringclient std::stringdefault ''; stored, derived values updated; bf2-rs: yes
listshared std::stringshared std::stringshared std::stringhandled by the template manager (method); bf2-rs: yes
listTemplateClassessharedsharedsharedhandled by the template manager (method); bf2-rs: yes
loadAllsharedhandled by the template manager (method); bf2-rs: yes
nameclientclientclientread-only; bf2-rs: yes
objectShadowsshared boolshared boolshared booldefault 1; stored on the template; bf2-rs: yes
preCacheObjectclient boolclient boolclient boolaccepted, no effect on the server; bf2-rs: yes
printScriptshared world::IObjectTemplate_ptrproxyhandled by the template manager (method); bf2-rs: yes
projectorApplyMaskshared boolshared boolshared booldefault 0; stored on the template; bf2-rs: yes
projectorAspectshared floatshared floatshared floatdefault 1.0; stored on the template; bf2-rs: yes
projectorFarshared floatshared floatshared floatdefault 5.0; stored on the template; bf2-rs: yes
projectorFovclient floatclient floatclient floatdefault 1.0471975803375244; stored on the template; bf2-rs: yes
projectorNearshared floatshared floatshared floatdefault 0.0010000000474974513; stored on the template; bf2-rs: yes
projectorTextureclient std::stringclient std::stringclient std::stringdefault ''; stored on the template; bf2-rs: yes
readBinaryshared std::stringshared std::stringshared std::stringhandled by the template manager (method); bf2-rs: yes
saveshared world::IObjectTemplate_ptrproxyshared world::IObjectTemplate_ptrproxyshared world::IObjectTemplate_ptrproxyhandled by the template manager (method); bf2-rs: yes
saveAllsharedhandled by the template manager (method); bf2-rs: yes
saveInSeparateFileshared boolshared boolshared booldefault 0; stored, derived values updated; bf2-rs: yes
scaleshared Vec3shared Vec3shared Vec3default 1.0/1.0/1.0; stored on the template; bf2-rs: yes
selfLightsclient boolclient boolclient booldefault 1; stored on the template; bf2-rs: yes
selfShadowsshared boolshared boolshared booldefault 0; stored on the template; bf2-rs: yes
shadowIntensityshared floatshared floatshared floatdefault 0.8500000238418579; stored on the template; bf2-rs: yes
softnessshared floatshared floatshared floatdefault 0.0; stored on the template; bf2-rs: yes
speccolorclient Vec3ColorFloatIntensityclient Vec3ColorFloatIntensityclient Vec3ColorFloatIntensitydefault 1.0/1.0/1.0; stored on the template; bf2-rs: yes
supportsEmittershared boolshared boolshared booldefault 1; stored on the template; bf2-rs: yes
supportsGlowclient boolclient boolclient booldefault 1; stored on the template; bf2-rs: yes
supportsPerPixelshared boolshared boolshared booldefault 0; stored on the template; bf2-rs: yes
supportsPerVertexshared boolshared boolshared booldefault 1; stored on the template; bf2-rs: yes
templateHasBeenUsedshared boolshared boolshared booldefault 0; stored, derived values updated; bf2-rs: yes
typeshared world::IObjectTemplate_ptrproxyshared ItemContainerTypehandled by the template manager (method); bf2-rs: yes
updateshared world::IObjectTemplate_ptrproxyhandled by the template manager (method); bf2-rs: yes
updateAllsharedhandled by the template manager (method); bf2-rs: yes
writeBinaryshared std::stringshared std::stringshared std::stringhandled by the template manager (method); 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.