|
| | WeaponTemplate () |
| |
| void | reset (void) |
| |
| void | friend_setNextTemplate (WeaponTemplate *nextTemplate) |
| |
| WeaponTemplate * | friend_clearNextTemplate (void) |
| |
| Bool | isOverride (void) |
| |
| const FieldParse * | getFieldParse () const |
| | field table for loading the values from an INI
|
| |
| UnsignedInt | fireWeaponTemplate (const Object *sourceObj, WeaponSlotType wslot, Int specificBarrelToUse, Object *victimObj, const Coord3D *victimPos, const WeaponBonus &bonus, Bool isProjectileDetonation, Bool ignoreRanges, Weapon *firingWeapon, ObjectID *projectileID, Bool inflictDamage) const |
| |
| Real | estimateWeaponTemplateDamage (const Object *sourceObj, const Object *victimObj, const Coord3D *victimPos, const WeaponBonus &bonus) const |
| |
| Real | getAttackRange (const WeaponBonus &bonus) const |
| |
| Real | getUnmodifiedAttackRange () const |
| |
| Real | getMinimumAttackRange () const |
| |
| Int | getDelayBetweenShots (const WeaponBonus &bonus) const |
| |
| Int | getClipReloadTime (const WeaponBonus &bonus) const |
| |
| Real | getPrimaryDamage (const WeaponBonus &bonus) const |
| |
| Real | getPrimaryDamageRadius (const WeaponBonus &bonus) const |
| |
| Real | getSecondaryDamage (const WeaponBonus &bonus) const |
| |
| Real | getSecondaryDamageRadius (const WeaponBonus &bonus) const |
| |
| Int | getPreAttackDelay (const WeaponBonus &bonus) const |
| |
| Bool | isContactWeapon () const |
| |
| Real | getShockWaveAmount () const |
| |
| Real | getShockWaveRadius () const |
| |
| Real | getShockWaveTaperOff () const |
| |
| Real | getRequestAssistRange () const |
| |
| AsciiString | getName () const |
| |
| AsciiString | getProjectileStreamName () const |
| |
| AsciiString | getLaserName () const |
| |
| const AsciiString & | getLaserBoneName () const |
| |
| NameKeyType | getNameKey () const |
| |
| Real | getWeaponSpeed () const |
| |
| Real | getMinWeaponSpeed () const |
| |
| Bool | isScaleWeaponSpeed () const |
| |
| Real | getWeaponRecoilAmount () const |
| |
| Real | getMinTargetPitch () const |
| |
| Real | getMaxTargetPitch () const |
| |
| Real | getRadiusDamageAngle () const |
| |
| DamageType | getDamageType () const |
| |
| ObjectStatusTypes | getDamageStatusType () const |
| |
| DeathType | getDeathType () const |
| |
| Real | getContinueAttackRange () const |
| |
| Real | getInfantryInaccuracyDist () const |
| |
| Real | getAimDelta () const |
| |
| Real | getScatterRadius () const |
| |
| Real | getScatterTargetScalar () const |
| |
| const ThingTemplate * | getProjectileTemplate () const |
| |
| Bool | getDamageDealtAtSelfPosition () const |
| |
| Int | getAffectsMask () const |
| |
| Int | getProjectileCollideMask () const |
| |
| WeaponReloadType | getReloadType () const |
| |
| WeaponPrefireType | getPrefireType () const |
| |
| Bool | getAutoReloadsClip () const |
| |
| Int | getClipSize () const |
| |
| Int | getContinuousFireOneShotsNeeded () const |
| |
| Int | getContinuousFireTwoShotsNeeded () const |
| |
| UnsignedInt | getContinuousFireCoastFrames () const |
| |
| UnsignedInt | getAutoReloadWhenIdleFrames () const |
| |
| UnsignedInt | getSuspendFXDelay () const |
| |
| const FXList * | getFireFX (VeterancyLevel v) const |
| |
| const FXList * | getProjectileDetonateFX (VeterancyLevel v) const |
| |
| const ObjectCreationList * | getFireOCL (VeterancyLevel v) const |
| |
| const ObjectCreationList * | getProjectileDetonationOCL (VeterancyLevel v) const |
| |
| const ParticleSystemTemplate * | getProjectileExhaust (VeterancyLevel v) const |
| |
| const AudioEventRTS & | getFireSound () const |
| |
| UnsignedInt | getFireSoundLoopTime () const |
| |
| const std::vector< Coord2D > & | getScatterTargetsVector () const |
| |
| const WeaponBonusSet * | getExtraBonus () const |
| |
| Int | getShotsPerBarrel () const |
| |
| Int | getAntiMask () const |
| |
| Bool | isLeechRangeWeapon () const |
| |
| Bool | isCapableOfFollowingWaypoint () const |
| |
| Bool | isShowsAmmoPips () const |
| |
| Bool | isPlayFXWhenStealthed () const |
| |
| Bool | getDieOnDetonate () const |
| |
| Bool | shouldProjectileCollideWith (const Object *projectileLauncher, const Object *projectile, const Object *thingWeCollidedWith, ObjectID intendedVictimID) const |
| |
| void | postProcessLoad () |
| |
| void | deleteInstance () |
| |
Definition at line 338 of file Weapon.h.
| UnsignedInt WeaponTemplate::fireWeaponTemplate |
( |
const Object * | sourceObj, |
|
|
WeaponSlotType | wslot, |
|
|
Int | specificBarrelToUse, |
|
|
Object * | victimObj, |
|
|
const Coord3D * | victimPos, |
|
|
const WeaponBonus & | bonus, |
|
|
Bool | isProjectileDetonation, |
|
|
Bool | ignoreRanges, |
|
|
Weapon * | firingWeapon, |
|
|
ObjectID * | projectileID, |
|
|
Bool | inflictDamage ) const |
fire the weapon. return the logic-frame in which the damage will be dealt.
If the damage will be determined at an indeterminate later date (eg, via Projectile), or will never be dealt (eg, target was out of range), return zero.
You may not pass null for source or target.
Definition at line 762 of file Weapon.cpp.