![]() |
VR-Forces Developer's Guide
|
DtAdditionalWeaponEntry; per-weapon overrides for a named additional loader slot on the ballistic gun controller.
Describes an additional weapon that shares the same ballistic gun controller and art part as the primary weapon but uses a separate named loader slot. The sysdef block name is the loader slot name. All fields are optional; absent fields fall back to the weapon-level values on the controller or actuator descriptor.
Instances are owned by DtAdditionalWeaponList.

Public Member Functions | |
| DtAdditionalWeaponEntry (const DtString &name, DtReaderWriterRegistry *parentRegistry=nullptr) | |
| DtAdditionalWeaponEntry (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=nullptr) | |
| DtAdditionalWeaponEntry (const DtString &name, const DtAdditionalWeaponEntry &orig, DtReaderWriterRegistry *parentRegistry=nullptr) | |
| DtAdditionalWeaponEntry (const DtSymbolString &name, const DtAdditionalWeaponEntry &orig, DtReaderWriterRegistry *parentRegistry=nullptr) | |
| virtual | ~DtAdditionalWeaponEntry () override |
| DtAdditionalWeaponEntry & | operator= (const DtAdditionalWeaponEntry &orig) |
| bool | operator== (const DtAdditionalWeaponEntry &rhs) const |
| bool | operator!= (const DtAdditionalWeaponEntry &rhs) const |
| virtual DtAdditionalWeaponEntry * | clone (DtReaderWriterRegistry *parent=nullptr) const |
| virtual int | roundsPerMinute () const |
| virtual void | setRoundsPerMinute (int v) |
| virtual bool | isRoundsPerMinuteSpecified () const |
| virtual int | roundsPerMagazine () const |
| virtual void | setRoundsPerMagazine (int v) |
| virtual bool | isRoundsPerMagazineSpecified () const |
| virtual double | loadAmmoTime () const |
| virtual void | setLoadAmmoTime (double v) |
| virtual bool | isLoadAmmoTimeSpecified () const |
| virtual double | unloadAmmoTime () const |
| virtual void | setUnloadAmmoTime (double v) |
| virtual bool | isUnloadAmmoTimeSpecified () const |
| virtual const DtVector & | muzzleOffset () const |
| virtual void | setMuzzleOffset (const DtVector &v) |
| virtual bool | isMuzzleOffsetSpecified () const |
| virtual bool | simulateMunition () const |
| virtual void | setSimulateMunition (bool v) |
| virtual bool | isSimulateMunitionSpecified () const |
| virtual double | projectileStartSpeed () const |
| virtual void | setProjectileStartSpeed (double v) |
| virtual bool | isProjectileStartSpeedSpecified () const |
| virtual int | roundsPerTriggerPull () const |
| virtual void | setRoundsPerTriggerPull (int v) |
| virtual bool | isRoundsPerTriggerPullSpecified () const |
| virtual int | rangeId () const |
| virtual void | setRangeId (int v) |
| virtual bool | isRangeIdSpecified () const |
| virtual double | maxRange () const |
| virtual void | setMaxRange (double v) |
| virtual bool | isMaxRangeSpecified () const |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| bool | operator== (const DtReaderWriter &) const |
| bool | operator!= (const DtReaderWriter &rhs) const |
| virtual | ~DtReaderWriter () |
| virtual void | putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual void | postPutSelf () |
| virtual void | prePutSelf () |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| virtual void | postGetSelf () |
| virtual void | preGetSelf () |
| virtual void | writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual DtSymbolString | name () const |
| virtual void | addAlias (const DtSymbolString &alias) |
| virtual void | addAlias (const DtString &alias) |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| bool | isReadonly () const |
| virtual void | reset () |
| virtual int | alignment () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| virtual void | setName (const DtString &) |
| virtual const char * | readerWriterType () const |
| virtual const char * | xmlType () const |
| virtual DtString | prettyPrint () const |
| std::string | debugText () const |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| virtual bool | hasVariableReference () const |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| virtual void | recordUpdateTime () const |
| virtual bool | changedSinceLastChecked () |
| virtual bool | peekChangedSinceLastChecked () const |
| virtual void | putData (std::string &fp, int indentLevel=0) |
| virtual DtlObjPtr | getData (DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| virtual bool | valueSpecified () const |
| virtual bool | isVariableReference () const |
| virtual void | setIsVariableReference (bool value) |
| virtual void | clearAllVariableReferenceFlags () |
| virtual DtSymbolString | variableName () const |
| virtual void | setVariableName (const DtSymbolString variableName) |
| virtual const DtReaderWriter * | defaultRWValue () const |
| virtual DtReaderWriter * | defaultRWValue () |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| const DtReaderWriterRegistry & | registry () const |
| DtReaderWriterRegistry & | registry () |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual DtString | toXml () const |
| virtual DtRwVariableBindings * | generateVariableBindings () const |
| virtual bool | toXml (const DtFilename &) const |
| virtual bool | fromXml (const DtString &) |
| virtual bool | fromXmlFile (const DtFilename &) |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
| DtAdditionalWeaponEntry::DtAdditionalWeaponEntry | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = nullptr |
||
| ) |
| DtAdditionalWeaponEntry::DtAdditionalWeaponEntry | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = nullptr |
||
| ) |
| DtAdditionalWeaponEntry::DtAdditionalWeaponEntry | ( | const DtString & | name, |
| const DtAdditionalWeaponEntry & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = nullptr |
||
| ) |
| DtAdditionalWeaponEntry::DtAdditionalWeaponEntry | ( | const DtSymbolString & | name, |
| const DtAdditionalWeaponEntry & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = nullptr |
||
| ) |
|
inlineoverridevirtual |
| DtAdditionalWeaponEntry& DtAdditionalWeaponEntry::operator= | ( | const DtAdditionalWeaponEntry & | orig | ) |
| bool DtAdditionalWeaponEntry::operator== | ( | const DtAdditionalWeaponEntry & | rhs | ) | const |
|
inline |
|
virtual |
|
virtual |
Parameter Name: rounds-per-minute
Rate of fire for this weapon, overriding the actuator-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: rounds-per-minute
Rate of fire for this weapon, overriding the actuator-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: rounds-per-minute
Rate of fire for this weapon, overriding the actuator-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: rounds-per-magazine
Magazine capacity for this weapon's loader slot, overriding the actuator-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: rounds-per-magazine
Magazine capacity for this weapon's loader slot, overriding the actuator-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: rounds-per-magazine
Magazine capacity for this weapon's loader slot, overriding the actuator-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: load-ammo-time
Load time in seconds for this weapon's loader, overriding the controller-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: load-ammo-time
Load time in seconds for this weapon's loader, overriding the controller-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: load-ammo-time
Load time in seconds for this weapon's loader, overriding the controller-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: unload-ammo-time
Unload time in seconds for this weapon's loader, overriding the controller-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: unload-ammo-time
Unload time in seconds for this weapon's loader, overriding the controller-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: unload-ammo-time
Unload time in seconds for this weapon's loader, overriding the controller-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: muzzle-offset
Offset in art-part-local coordinates from the gun art part origin to the muzzle of this weapon. Overrides the actuator-level muzzle-offset when this loader is active.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: muzzle-offset
Offset in art-part-local coordinates from the gun art part origin to the muzzle of this weapon. Overrides the actuator-level muzzle-offset when this loader is active.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: muzzle-offset
Offset in art-part-local coordinates from the gun art part origin to the muzzle of this weapon. Overrides the actuator-level muzzle-offset when this loader is active.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: simulate-munition
When true, rounds from this weapon are spawned as flyout munition entities. Applies to all munitions assigned to this loader unless overridden per-munition in munition-overrides.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: simulate-munition
When true, rounds from this weapon are spawned as flyout munition entities. Applies to all munitions assigned to this loader unless overridden per-munition in munition-overrides.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: simulate-munition
When true, rounds from this weapon are spawned as flyout munition entities. Applies to all munitions assigned to this loader unless overridden per-munition in munition-overrides.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: projectile-start-speed
Muzzle speed in m/s for all munitions assigned to this weapon. Overrides the actuator-level muzzle-speed for this loader. May be overridden further per-munition in munition-overrides. Parameter Default Value: not specified.
|
virtual |
Parameter Name: projectile-start-speed
Muzzle speed in m/s for all munitions assigned to this weapon. Overrides the actuator-level muzzle-speed for this loader. May be overridden further per-munition in munition-overrides. Parameter Default Value: not specified.
|
virtual |
Parameter Name: projectile-start-speed
Muzzle speed in m/s for all munitions assigned to this weapon. Overrides the actuator-level muzzle-speed for this loader. May be overridden further per-munition in munition-overrides. Parameter Default Value: not specified.
|
virtual |
Parameter Name: rounds-per-trigger-pull
Number of rounds fired per trigger pull for this weapon, overriding the controller-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: rounds-per-trigger-pull
Number of rounds fired per trigger pull for this weapon, overriding the controller-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: rounds-per-trigger-pull
Number of rounds fired per trigger pull for this weapon, overriding the controller-level value.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: range-id
Range ring enumeration id (DtVrfRangeRingUid) for this weapon. When specified together with max-range, a separate range ring is drawn for this additional weapon.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: range-id
Range ring enumeration id (DtVrfRangeRingUid) for this weapon. When specified together with max-range, a separate range ring is drawn for this additional weapon.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: range-id
Range ring enumeration id (DtVrfRangeRingUid) for this weapon. When specified together with max-range, a separate range ring is drawn for this additional weapon.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: max-range
Maximum effective range in metres for this weapon's range ring. Only used when range-id is also specified.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: max-range
Maximum effective range in metres for this weapon's range ring. Only used when range-id is also specified.
Parameter Default Value: not specified.
|
virtual |
Parameter Name: max-range
Maximum effective range in metres for this weapon's range ring. Only used when range-id is also specified.
Parameter Default Value: not specified.
|
protected |
Parameter Name: rounds-per-minute.
|
protected |
Parameter Name: rounds-per-magazine.
|
protected |
Parameter Name: load-ammo-time.
|
protected |
Parameter Name: unload-ammo-time.
|
protected |
Parameter Name: muzzle-offset.
|
protected |
Parameter Name: simulate-munition.
|
protected |
Parameter Name: projectile-start-speed.
|
protected |
Parameter Name: rounds-per-trigger-pull.
|
protected |
Parameter Name: range-id.
|
protected |
Parameter Name: max-range.