doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
idWeapon Class Reference

#include <Weapon.h>

Inheritance diagram for idWeapon:
idAnimatedEntity idEntity idClass

Public Types

enum  { EVENT_RELOAD = idEntity::EVENT_MAXEVENTS, EVENT_ENDRELOAD, EVENT_CHANGESKIN, EVENT_MAXEVENTS }
 
- Public Types inherited from idAnimatedEntity
enum  { EVENT_ADD_DAMAGE_EFFECT = idEntity::EVENT_MAXEVENTS, EVENT_MAXEVENTS }
 
- Public Types inherited from idEntity
enum  { EVENT_STARTSOUNDSHADER, EVENT_STOPSOUNDSHADER, EVENT_MAXEVENTS }
 

Public Member Functions

 CLASS_PROTOTYPE (idWeapon)
 
 idWeapon ()
 
virtual ~idWeapon ()
 
void Spawn (void)
 
void SetOwner (idPlayer *owner)
 
idPlayerGetOwner (void)
 
virtual bool ShouldConstructScriptObjectAtSpawn (void) const
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
void Clear (void)
 
void GetWeaponDef (const char *objectname, int ammoinclip)
 
bool IsLinked (void)
 
bool IsWorldModelReady (void)
 
const char * Icon (void) const
 
void UpdateGUI (void)
 
virtual void SetModel (const char *modelname)
 
bool GetGlobalJointTransform (bool viewModel, const jointHandle_t jointHandle, idVec3 &offset, idMat3 &axis)
 
void SetPushVelocity (const idVec3 &pushVelocity)
 
bool UpdateSkin (void)
 
void Think (void)
 
void Raise (void)
 
void PutAway (void)
 
void Reload (void)
 
void LowerWeapon (void)
 
void RaiseWeapon (void)
 
void HideWeapon (void)
 
void ShowWeapon (void)
 
void HideWorldModel (void)
 
void ShowWorldModel (void)
 
void OwnerDied (void)
 
void BeginAttack (void)
 
void EndAttack (void)
 
bool IsReady (void) const
 
bool IsReloading (void) const
 
bool IsHolstered (void) const
 
bool ShowCrosshair (void) const
 
idEntityDropItem (const idVec3 &velocity, int activateDelay, int removeDelay, bool died)
 
bool CanDrop (void) const
 
void WeaponStolen (void)
 
virtual idThreadConstructScriptObject (void)
 
virtual void DeconstructScriptObject (void)
 
void SetState (const char *statename, int blendFrames)
 
void UpdateScript (void)
 
void EnterCinematic (void)
 
void ExitCinematic (void)
 
void NetCatchup (void)
 
void PresentWeapon (bool showViewModel)
 
int GetZoomFov (void)
 
void GetWeaponAngleOffsets (int *average, float *scale, float *max)
 
void GetWeaponTimeOffsets (float *time, float *scale)
 
bool BloodSplat (float size)
 
ammo_t GetAmmoType (void) const
 
int AmmoAvailable (void) const
 
int AmmoInClip (void) const
 
void ResetAmmoClip (void)
 
int ClipSize (void) const
 
int LowAmmo (void) const
 
int AmmoRequired (void) const
 
virtual void WriteToSnapshot (idBitMsgDelta &msg) const
 
virtual void ReadFromSnapshot (const idBitMsgDelta &msg)
 
virtual bool ClientReceiveEvent (int event, int time, const idBitMsg &msg)
 
virtual void ClientPredictionThink (void)
 
- Public Member Functions inherited from idAnimatedEntity
 CLASS_PROTOTYPE (idAnimatedEntity)
 
 idAnimatedEntity ()
 
 ~idAnimatedEntity ()
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
void UpdateAnimation (void)
 
virtual idAnimatorGetAnimator (void)
 
bool GetJointWorldTransform (jointHandle_t jointHandle, int currentTime, idVec3 &offset, idMat3 &axis)
 
bool GetJointTransformForAnim (jointHandle_t jointHandle, int animNum, int currentTime, idVec3 &offset, idMat3 &axis) const
 
virtual int GetDefaultSurfaceType (void) const
 
virtual void AddDamageEffect (const trace_t &collision, const idVec3 &velocity, const char *damageDefName)
 
void AddLocalDamageEffect (jointHandle_t jointNum, const idVec3 &localPoint, const idVec3 &localNormal, const idVec3 &localDir, const idDeclEntityDef *def, const idMaterial *collisionMaterial)
 
void UpdateDamageEffects (void)
 
- Public Member Functions inherited from idEntity
 ABSTRACT_PROTOTYPE (idEntity)
 
 idEntity ()
 
 ~idEntity ()
 
void Spawn (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
const char * GetEntityDefName (void) const
 
void SetName (const char *name)
 
const char * GetName (void) const
 
virtual void UpdateChangeableSpawnArgs (const idDict *source)
 
virtual renderView_tGetRenderView ()
 
bool CheckDormant (void)
 
virtual void DormantBegin (void)
 
virtual void DormantEnd (void)
 
bool IsActive (void) const
 
void BecomeActive (int flags)
 
void BecomeInactive (int flags)
 
void UpdatePVSAreas (const idVec3 &pos)
 
virtual void Present (void)
 
virtual renderEntity_tGetRenderEntity (void)
 
virtual int GetModelDefHandle (void)
 
void SetSkin (const idDeclSkin *skin)
 
const idDeclSkinGetSkin (void) const
 
void SetShaderParm (int parmnum, float value)
 
virtual void SetColor (float red, float green, float blue)
 
virtual void SetColor (const idVec3 &color)
 
virtual void GetColor (idVec3 &out) const
 
virtual void SetColor (const idVec4 &color)
 
virtual void GetColor (idVec4 &out) const
 
virtual void FreeModelDef (void)
 
virtual void FreeLightDef (void)
 
virtual void Hide (void)
 
virtual void Show (void)
 
bool IsHidden (void) const
 
void UpdateVisuals (void)
 
void UpdateModel (void)
 
void UpdateModelTransform (void)
 
virtual void ProjectOverlay (const idVec3 &origin, const idVec3 &dir, float size, const char *material)
 
int GetNumPVSAreas (void)
 
const intGetPVSAreas (void)
 
void ClearPVSAreas (void)
 
bool PhysicsTeamInPVS (pvsHandle_t pvsHandle)
 
virtual bool UpdateAnimationControllers (void)
 
bool UpdateRenderEntity (renderEntity_s *renderEntity, const renderView_t *renderView)
 
virtual bool CanPlayChatterSounds (void) const
 
bool StartSound (const char *soundName, const s_channelType channel, int soundShaderFlags, bool broadcast, int *length)
 
bool StartSoundShader (const idSoundShader *shader, const s_channelType channel, int soundShaderFlags, bool broadcast, int *length)
 
void StopSound (const s_channelType channel, bool broadcast)
 
void SetSoundVolume (float volume)
 
void UpdateSound (void)
 
int GetListenerId (void) const
 
idSoundEmitterGetSoundEmitter (void) const
 
void FreeSoundEmitter (bool immediate)
 
virtual void PreBind (void)
 
virtual void PostBind (void)
 
virtual void PreUnbind (void)
 
virtual void PostUnbind (void)
 
void JoinTeam (idEntity *teammember)
 
void Bind (idEntity *master, bool orientated)
 
void BindToJoint (idEntity *master, const char *jointname, bool orientated)
 
void BindToJoint (idEntity *master, jointHandle_t jointnum, bool orientated)
 
void BindToBody (idEntity *master, int bodyId, bool orientated)
 
void Unbind (void)
 
bool IsBound (void) const
 
bool IsBoundTo (idEntity *master) const
 
idEntityGetBindMaster (void) const
 
jointHandle_t GetBindJoint (void) const
 
int GetBindBody (void) const
 
idEntityGetTeamMaster (void) const
 
idEntityGetNextTeamEntity (void) const
 
void ConvertLocalToWorldTransform (idVec3 &offset, idMat3 &axis)
 
idVec3 GetLocalVector (const idVec3 &vec) const
 
idVec3 GetLocalCoordinates (const idVec3 &vec) const
 
idVec3 GetWorldVector (const idVec3 &vec) const
 
idVec3 GetWorldCoordinates (const idVec3 &vec) const
 
bool GetMasterPosition (idVec3 &masterOrigin, idMat3 &masterAxis) const
 
void GetWorldVelocities (idVec3 &linearVelocity, idVec3 &angularVelocity) const
 
void SetPhysics (idPhysics *phys)
 
idPhysicsGetPhysics (void) const
 
void RestorePhysics (idPhysics *phys)
 
bool RunPhysics (void)
 
void SetOrigin (const idVec3 &org)
 
void SetAxis (const idMat3 &axis)
 
void SetAngles (const idAngles &ang)
 
bool GetFloorPos (float max_dist, idVec3 &floorpos) const
 
virtual bool GetPhysicsToVisualTransform (idVec3 &origin, idMat3 &axis)
 
virtual bool GetPhysicsToSoundTransform (idVec3 &origin, idMat3 &axis)
 
virtual bool Collide (const trace_t &collision, const idVec3 &velocity)
 
virtual void GetImpactInfo (idEntity *ent, int id, const idVec3 &point, impactInfo_t *info)
 
virtual void ApplyImpulse (idEntity *ent, int id, const idVec3 &point, const idVec3 &impulse)
 
virtual void AddForce (idEntity *ent, int id, const idVec3 &point, const idVec3 &force)
 
virtual void ActivatePhysics (idEntity *ent)
 
virtual bool IsAtRest (void) const
 
virtual int GetRestStartTime (void) const
 
virtual void AddContactEntity (idEntity *ent)
 
virtual void RemoveContactEntity (idEntity *ent)
 
virtual bool CanDamage (const idVec3 &origin, idVec3 &damagePoint) const
 
virtual void Damage (idEntity *inflictor, idEntity *attacker, const idVec3 &dir, const char *damageDefName, const float damageScale, const int location)
 
virtual void DamageFeedback (idEntity *victim, idEntity *inflictor, int &damage)
 
virtual bool Pain (idEntity *inflictor, idEntity *attacker, int damage, const idVec3 &dir, int location)
 
virtual void Killed (idEntity *inflictor, idEntity *attacker, int damage, const idVec3 &dir, int location)
 
void SetSignal (signalNum_t signalnum, idThread *thread, const function_t *function)
 
void ClearSignal (idThread *thread, signalNum_t signalnum)
 
void ClearSignalThread (signalNum_t signalnum, idThread *thread)
 
bool HasSignal (signalNum_t signalnum) const
 
void Signal (signalNum_t signalnum)
 
void SignalEvent (idThread *thread, signalNum_t signalnum)
 
void TriggerGuis (void)
 
bool HandleGuiCommands (idEntity *entityGui, const char *cmds)
 
virtual bool HandleSingleGuiCommand (idEntity *entityGui, idLexer *src)
 
void FindTargets (void)
 
void RemoveNullTargets (void)
 
void ActivateTargets (idEntity *activator) const
 
virtual void Teleport (const idVec3 &origin, const idAngles &angles, idEntity *destination)
 
bool TouchTriggers (void) const
 
idCurve_Spline< idVec3 > * GetSpline (void) const
 
virtual void ShowEditingDialog (void)
 
virtual bool ServerReceiveEvent (int event, int time, const idBitMsg &msg)
 
void WriteBindToSnapshot (idBitMsgDelta &msg) const
 
void ReadBindFromSnapshot (const idBitMsgDelta &msg)
 
void WriteColorToSnapshot (idBitMsgDelta &msg) const
 
void ReadColorFromSnapshot (const idBitMsgDelta &msg)
 
void WriteGUIToSnapshot (idBitMsgDelta &msg) const
 
void ReadGUIFromSnapshot (const idBitMsgDelta &msg)
 
void ServerSendEvent (int eventId, const idBitMsg *msg, bool saveEvent, int excludeClient) const
 
void ClientSendEvent (int eventId, const idBitMsg *msg) const
 
- Public Member Functions inherited from idClass
 ABSTRACT_PROTOTYPE (idClass)
 
voidoperator new (size_t)
 
voidoperator new (size_t s, int, int, char *, int)
 
void operator delete (void *)
 
void operator delete (void *, int, int, char *, int)
 
virtual ~idClass ()
 
void Spawn (void)
 
void CallSpawn (void)
 
bool IsType (const idTypeInfo &c) const
 
const char * GetClassname (void) const
 
const char * GetSuperclass (void) const
 
void FindUninitializedMemory (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
bool RespondsTo (const idEventDef &ev) const
 
bool PostEventMS (const idEventDef *ev, int time)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool PostEventSec (const idEventDef *ev, float time)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool ProcessEvent (const idEventDef *ev)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool ProcessEventArgPtr (const idEventDef *ev, int *data)
 
void CancelEvents (const idEventDef *ev)
 
void Event_Remove (void)
 

Static Public Member Functions

static void CacheWeapon (const char *weaponName)
 
static ammo_t GetAmmoNumForName (const char *ammoname)
 
static const char * GetAmmoNameForNum (ammo_t ammonum)
 
static const char * GetAmmoPickupNameForNum (ammo_t ammonum)
 
- Static Public Member Functions inherited from idEntity
static bool ModelCallback (renderEntity_s *renderEntity, const renderView_t *renderView)
 
- Static Public Member Functions inherited from idClass
static void Init (void)
 
static void Shutdown (void)
 
static idTypeInfoGetClass (const char *name)
 
static void DisplayInfo_f (const idCmdArgs &args)
 
static void ListClasses_f (const idCmdArgs &args)
 
static idClassCreateInstance (const char *name)
 
static int GetNumTypes (void)
 
static int GetTypeNumBits (void)
 
static idTypeInfoGetType (int num)
 

Private Member Functions

void AlertMonsters (void)
 
void InitWorldModel (const idDeclEntityDef *def)
 
void MuzzleFlashLight (void)
 
void MuzzleRise (idVec3 &origin, idMat3 &axis)
 
void UpdateNozzleFx (void)
 
void UpdateFlashPosition (void)
 
void Event_Clear (void)
 
void Event_GetOwner (void)
 
void Event_WeaponState (const char *statename, int blendFrames)
 
void Event_SetWeaponStatus (float newStatus)
 
void Event_WeaponReady (void)
 
void Event_WeaponOutOfAmmo (void)
 
void Event_WeaponReloading (void)
 
void Event_WeaponHolstered (void)
 
void Event_WeaponRising (void)
 
void Event_WeaponLowering (void)
 
void Event_UseAmmo (int amount)
 
void Event_AddToClip (int amount)
 
void Event_AmmoInClip (void)
 
void Event_AmmoAvailable (void)
 
void Event_TotalAmmoCount (void)
 
void Event_ClipSize (void)
 
void Event_PlayAnim (int channel, const char *animname)
 
void Event_PlayCycle (int channel, const char *animname)
 
void Event_AnimDone (int channel, int blendFrames)
 
void Event_SetBlendFrames (int channel, int blendFrames)
 
void Event_GetBlendFrames (int channel)
 
void Event_Next (void)
 
void Event_SetSkin (const char *skinname)
 
void Event_Flashlight (int enable)
 
void Event_GetLightParm (int parmnum)
 
void Event_SetLightParm (int parmnum, float value)
 
void Event_SetLightParms (float parm0, float parm1, float parm2, float parm3)
 
void Event_LaunchProjectiles (int num_projectiles, float spread, float fuseOffset, float launchPower, float dmgPower)
 
void Event_CreateProjectile (void)
 
void Event_EjectBrass (void)
 
void Event_Melee (void)
 
void Event_GetWorldModel (void)
 
void Event_AllowDrop (int allow)
 
void Event_AutoReload (void)
 
void Event_NetReload (void)
 
void Event_IsInvisible (void)
 
void Event_NetEndReload (void)
 

Private Attributes

idScriptBool WEAPON_ATTACK
 
idScriptBool WEAPON_RELOAD
 
idScriptBool WEAPON_NETRELOAD
 
idScriptBool WEAPON_NETENDRELOAD
 
idScriptBool WEAPON_NETFIRING
 
idScriptBool WEAPON_RAISEWEAPON
 
idScriptBool WEAPON_LOWERWEAPON
 
weaponStatus_t status
 
idThreadthread
 
idStr state
 
idStr idealState
 
int animBlendFrames
 
int animDoneTime
 
bool isLinked
 
idEntityprojectileEnt
 
idPlayerowner
 
idEntityPtr< idAnimatedEntityworldModel
 
int hideTime
 
float hideDistance
 
int hideStartTime
 
float hideStart
 
float hideEnd
 
float hideOffset
 
bool hide
 
bool disabled
 
int berserk
 
idVec3 playerViewOrigin
 
idMat3 playerViewAxis
 
idVec3 viewWeaponOrigin
 
idMat3 viewWeaponAxis
 
idVec3 muzzleOrigin
 
idMat3 muzzleAxis
 
idVec3 pushVelocity
 
const idDeclEntityDefweaponDef
 
const idDeclEntityDefmeleeDef
 
idDict projectileDict
 
float meleeDistance
 
idStr meleeDefName
 
idDict brassDict
 
int brassDelay
 
idStr icon
 
renderLight_t guiLight
 
int guiLightHandle
 
renderLight_t muzzleFlash
 
int muzzleFlashHandle
 
renderLight_t worldMuzzleFlash
 
int worldMuzzleFlashHandle
 
idVec3 flashColor
 
int muzzleFlashEnd
 
int flashTime
 
bool lightOn
 
bool silent_fire
 
bool allowDrop
 
bool hasBloodSplat
 
int kick_endtime
 
int muzzle_kick_time
 
int muzzle_kick_maxtime
 
idAngles muzzle_kick_angles
 
idVec3 muzzle_kick_offset
 
ammo_t ammoType
 
int ammoRequired
 
int clipSize
 
int ammoClip
 
int lowAmmo
 
bool powerAmmo
 
bool isFiring
 
int zoomFov
 
jointHandle_t barrelJointView
 
jointHandle_t flashJointView
 
jointHandle_t ejectJointView
 
jointHandle_t guiLightJointView
 
jointHandle_t ventLightJointView
 
jointHandle_t flashJointWorld
 
jointHandle_t barrelJointWorld
 
jointHandle_t ejectJointWorld
 
const idSoundShadersndHum
 
const idDeclParticleweaponSmoke
 
int weaponSmokeStartTime
 
bool continuousSmoke
 
const idDeclParticlestrikeSmoke
 
int strikeSmokeStartTime
 
idVec3 strikePos
 
idMat3 strikeAxis
 
int nextStrikeFx
 
bool nozzleFx
 
int nozzleFxFade
 
int lastAttack
 
renderLight_t nozzleGlow
 
int nozzleGlowHandle
 
idVec3 nozzleGlowColor
 
const idMaterialnozzleGlowShader
 
float nozzleGlowRadius
 
int weaponAngleOffsetAverages
 
float weaponAngleOffsetScale
 
float weaponAngleOffsetMax
 
float weaponOffsetTime
 
float weaponOffsetScale
 

Additional Inherited Members

- Public Attributes inherited from idEntity
int entityNumber
 
int entityDefNumber
 
idLinkList< idEntityspawnNode
 
idLinkList< idEntityactiveNode
 
idLinkList< idEntitysnapshotNode
 
int snapshotSequence
 
int snapshotBits
 
idStr name
 
idDict spawnArgs
 
idScriptObject scriptObject
 
int thinkFlags
 
int dormantStart
 
bool cinematic
 
renderView_trenderView
 
idEntitycameraTarget
 
idList< idEntityPtr< idEntity > > targets
 
int health
 
struct idEntity::entityFlags_s fl
 
- Static Public Attributes inherited from idEntity
static const int MAX_PVS_AREAS = 4
 
- Protected Attributes inherited from idAnimatedEntity
idAnimator animator
 
damageEffect_tdamageEffects
 
- Protected Attributes inherited from idEntity
renderEntity_t renderEntity
 
int modelDefHandle
 
refSound_t refSound
 

Detailed Description

Definition at line 85 of file Weapon.h.

Member Enumeration Documentation

anonymous enum
Enumerator
EVENT_RELOAD 
EVENT_ENDRELOAD 
EVENT_CHANGESKIN 
EVENT_MAXEVENTS 

Definition at line 181 of file Weapon.h.

Constructor & Destructor Documentation

END_CLASS idWeapon::idWeapon ( )

Definition at line 150 of file Weapon.cpp.

idWeapon::~idWeapon ( )
virtual

Definition at line 187 of file Weapon.cpp.

Member Function Documentation

void idWeapon::AlertMonsters ( void  )
private

Definition at line 2104 of file Weapon.cpp.

int idWeapon::AmmoAvailable ( void  ) const

Definition at line 2583 of file Weapon.cpp.

int idWeapon::AmmoInClip ( void  ) const

Definition at line 2596 of file Weapon.cpp.

int idWeapon::AmmoRequired ( void  ) const

Definition at line 2641 of file Weapon.cpp.

void idWeapon::BeginAttack ( void  )

Definition at line 1679 of file Weapon.cpp.

bool idWeapon::BloodSplat ( float  size)

Definition at line 1911 of file Weapon.cpp.

void idWeapon::CacheWeapon ( const char *  weaponName)
static

Definition at line 250 of file Weapon.cpp.

bool idWeapon::CanDrop ( void  ) const

Definition at line 1754 of file Weapon.cpp.

idWeapon::CLASS_PROTOTYPE ( idWeapon  )
void idWeapon::Clear ( void  )

Definition at line 677 of file Weapon.cpp.

void idWeapon::ClientPredictionThink ( void  )
virtual

Reimplemented from idAnimatedEntity.

Definition at line 3936 of file Weapon.cpp.

bool idWeapon::ClientReceiveEvent ( int  event,
int  time,
const idBitMsg msg 
)
virtual

Reimplemented from idAnimatedEntity.

Definition at line 2724 of file Weapon.cpp.

int idWeapon::ClipSize ( void  ) const

Definition at line 2623 of file Weapon.cpp.

idThread * idWeapon::ConstructScriptObject ( void  )
virtual

Reimplemented from idEntity.

Definition at line 2011 of file Weapon.cpp.

void idWeapon::DeconstructScriptObject ( void  )
virtual

Reimplemented from idEntity.

Definition at line 2039 of file Weapon.cpp.

idEntity * idWeapon::DropItem ( const idVec3 velocity,
int  activateDelay,
int  removeDelay,
bool  died 
)

Definition at line 1791 of file Weapon.cpp.

void idWeapon::EndAttack ( void  )

Definition at line 1701 of file Weapon.cpp.

void idWeapon::EnterCinematic ( void  )

Definition at line 2350 of file Weapon.cpp.

void idWeapon::Event_AddToClip ( int  amount)
private

Definition at line 2907 of file Weapon.cpp.

void idWeapon::Event_AllowDrop ( int  allow)
private

Definition at line 3867 of file Weapon.cpp.

void idWeapon::Event_AmmoAvailable ( void  )
private

Definition at line 2955 of file Weapon.cpp.

void idWeapon::Event_AmmoInClip ( void  )
private

Definition at line 2945 of file Weapon.cpp.

void idWeapon::Event_AnimDone ( int  channel,
int  blendFrames 
)
private

Definition at line 3086 of file Weapon.cpp.

void idWeapon::Event_AutoReload ( void  )
private

Definition at line 2990 of file Weapon.cpp.

void idWeapon::Event_Clear ( void  )
private

Definition at line 2769 of file Weapon.cpp.

void idWeapon::Event_ClipSize ( void  )
private

Definition at line 2981 of file Weapon.cpp.

void idWeapon::Event_CreateProjectile ( void  )
private

Definition at line 3254 of file Weapon.cpp.

void idWeapon::Event_EjectBrass ( void  )
private

Definition at line 3882 of file Weapon.cpp.

void idWeapon::Event_Flashlight ( int  enable)
private

Definition at line 3158 of file Weapon.cpp.

void idWeapon::Event_GetBlendFrames ( int  channel)
private

Definition at line 3108 of file Weapon.cpp.

void idWeapon::Event_GetLightParm ( int  parmnum)
private

Definition at line 3173 of file Weapon.cpp.

void idWeapon::Event_GetOwner ( void  )
private

Definition at line 2778 of file Weapon.cpp.

void idWeapon::Event_GetWorldModel ( void  )
private

Definition at line 3858 of file Weapon.cpp.

void idWeapon::Event_IsInvisible ( void  )
private

Definition at line 3923 of file Weapon.cpp.

void idWeapon::Event_LaunchProjectiles ( int  num_projectiles,
float  spread,
float  fuseOffset,
float  launchPower,
float  dmgPower 
)
private

Definition at line 3274 of file Weapon.cpp.

void idWeapon::Event_Melee ( void  )
private

Definition at line 3722 of file Weapon.cpp.

void idWeapon::Event_NetEndReload ( void  )
private

Definition at line 3016 of file Weapon.cpp.

void idWeapon::Event_NetReload ( void  )
private

Definition at line 3004 of file Weapon.cpp.

void idWeapon::Event_Next ( void  )
private

Definition at line 3117 of file Weapon.cpp.

void idWeapon::Event_PlayAnim ( int  channel,
const char *  animname 
)
private

Definition at line 3028 of file Weapon.cpp.

void idWeapon::Event_PlayCycle ( int  channel,
const char *  animname 
)
private

Definition at line 3058 of file Weapon.cpp.

void idWeapon::Event_SetBlendFrames ( int  channel,
int  blendFrames 
)
private

Definition at line 3099 of file Weapon.cpp.

void idWeapon::Event_SetLightParm ( int  parmnum,
float  value 
)
private

Definition at line 3186 of file Weapon.cpp.

void idWeapon::Event_SetLightParms ( float  parm0,
float  parm1,
float  parm2,
float  parm3 
)
private

Definition at line 3201 of file Weapon.cpp.

void idWeapon::Event_SetSkin ( const char *  skinname)
private

Definition at line 3127 of file Weapon.cpp.

void idWeapon::Event_SetWeaponStatus ( float  newStatus)
private
void idWeapon::Event_TotalAmmoCount ( void  )
private

Definition at line 2971 of file Weapon.cpp.

void idWeapon::Event_UseAmmo ( int  amount)
private

Definition at line 2888 of file Weapon.cpp.

void idWeapon::Event_WeaponHolstered ( void  )
private

Definition at line 2850 of file Weapon.cpp.

void idWeapon::Event_WeaponLowering ( void  )
private

Definition at line 2875 of file Weapon.cpp.

void idWeapon::Event_WeaponOutOfAmmo ( void  )
private

Definition at line 2829 of file Weapon.cpp.

void idWeapon::Event_WeaponReady ( void  )
private

Definition at line 2813 of file Weapon.cpp.

void idWeapon::Event_WeaponReloading ( void  )
private

Definition at line 2841 of file Weapon.cpp.

void idWeapon::Event_WeaponRising ( void  )
private

Definition at line 2862 of file Weapon.cpp.

void idWeapon::Event_WeaponState ( const char *  statename,
int  blendFrames 
)
private

Definition at line 2787 of file Weapon.cpp.

void idWeapon::ExitCinematic ( void  )

Definition at line 2380 of file Weapon.cpp.

const char * idWeapon::GetAmmoNameForNum ( ammo_t  ammonum)
static

Definition at line 2498 of file Weapon.cpp.

ammo_t idWeapon::GetAmmoNumForName ( const char *  ammoname)
static

Definition at line 2445 of file Weapon.cpp.

const char * idWeapon::GetAmmoPickupNameForNum ( ammo_t  ammonum)
static

Definition at line 2552 of file Weapon.cpp.

ammo_t idWeapon::GetAmmoType ( void  ) const

Definition at line 2614 of file Weapon.cpp.

bool idWeapon::GetGlobalJointTransform ( bool  viewModel,
const jointHandle_t  jointHandle,
idVec3 offset,
idMat3 axis 
)

Definition at line 1477 of file Weapon.cpp.

ID_INLINE idPlayer * idWeapon::GetOwner ( void  )

Definition at line 423 of file Weapon.h.

void idWeapon::GetWeaponAngleOffsets ( int average,
float scale,
float max 
)

Definition at line 2417 of file Weapon.cpp.

void idWeapon::GetWeaponDef ( const char *  objectname,
int  ammoinclip 
)

Definition at line 925 of file Weapon.cpp.

void idWeapon::GetWeaponTimeOffsets ( float time,
float scale 
)

Definition at line 2428 of file Weapon.cpp.

int idWeapon::GetZoomFov ( void  )

Definition at line 2408 of file Weapon.cpp.

void idWeapon::HideWeapon ( void  )

Definition at line 1601 of file Weapon.cpp.

void idWeapon::HideWorldModel ( void  )

Definition at line 1629 of file Weapon.cpp.

const char * idWeapon::Icon ( void  ) const

Definition at line 1285 of file Weapon.cpp.

void idWeapon::InitWorldModel ( const idDeclEntityDef def)
private

Definition at line 879 of file Weapon.cpp.

bool idWeapon::IsHolstered ( void  ) const

Definition at line 1736 of file Weapon.cpp.

ID_INLINE bool idWeapon::IsLinked ( void  )

Definition at line 415 of file Weapon.h.

bool idWeapon::IsReady ( void  ) const

Definition at line 1718 of file Weapon.cpp.

bool idWeapon::IsReloading ( void  ) const

Definition at line 1727 of file Weapon.cpp.

ID_INLINE bool idWeapon::IsWorldModelReady ( void  )

Definition at line 419 of file Weapon.h.

int idWeapon::LowAmmo ( void  ) const

Definition at line 2632 of file Weapon.cpp.

void idWeapon::LowerWeapon ( void  )

Definition at line 1563 of file Weapon.cpp.

void idWeapon::MuzzleFlashLight ( void  )
private

Definition at line 1387 of file Weapon.cpp.

void idWeapon::MuzzleRise ( idVec3 origin,
idMat3 axis 
)
private

Definition at line 1976 of file Weapon.cpp.

void idWeapon::NetCatchup ( void  )

Definition at line 2396 of file Weapon.cpp.

void idWeapon::OwnerDied ( void  )

Definition at line 1651 of file Weapon.cpp.

void idWeapon::PresentWeapon ( bool  showViewModel)

Definition at line 2150 of file Weapon.cpp.

void idWeapon::PutAway ( void  )

Definition at line 1539 of file Weapon.cpp.

void idWeapon::Raise ( void  )

Definition at line 1528 of file Weapon.cpp.

void idWeapon::RaiseWeapon ( void  )

Definition at line 1581 of file Weapon.cpp.

void idWeapon::ReadFromSnapshot ( const idBitMsgDelta msg)
virtual

Reimplemented from idEntity.

Definition at line 2692 of file Weapon.cpp.

void idWeapon::Reload ( void  )

Definition at line 1552 of file Weapon.cpp.

void idWeapon::ResetAmmoClip ( void  )

Definition at line 2605 of file Weapon.cpp.

void idWeapon::Restore ( idRestoreGame savefile)

Definition at line 444 of file Weapon.cpp.

void idWeapon::Save ( idSaveGame savefile) const

Definition at line 287 of file Weapon.cpp.

void idWeapon::SetModel ( const char *  modelname)
virtual

Reimplemented from idAnimatedEntity.

Definition at line 1448 of file Weapon.cpp.

void idWeapon::SetOwner ( idPlayer owner)

Definition at line 223 of file Weapon.cpp.

void idWeapon::SetPushVelocity ( const idVec3 pushVelocity)

Definition at line 1503 of file Weapon.cpp.

void idWeapon::SetState ( const char *  statename,
int  blendFrames 
)

Definition at line 1819 of file Weapon.cpp.

bool idWeapon::ShouldConstructScriptObjectAtSpawn ( void  ) const
virtual

Reimplemented from idEntity.

Definition at line 241 of file Weapon.cpp.

bool idWeapon::ShowCrosshair ( void  ) const

Definition at line 1745 of file Weapon.cpp.

void idWeapon::ShowWeapon ( void  )

Definition at line 1614 of file Weapon.cpp.

void idWeapon::ShowWorldModel ( void  )

Definition at line 1640 of file Weapon.cpp.

void idWeapon::Spawn ( void  )

Definition at line 198 of file Weapon.cpp.

void idWeapon::Think ( void  )
virtual

Reimplemented from idAnimatedEntity.

Definition at line 1519 of file Weapon.cpp.

void idWeapon::UpdateFlashPosition ( void  )
private

Definition at line 1366 of file Weapon.cpp.

void idWeapon::UpdateGUI ( void  )

Definition at line 1294 of file Weapon.cpp.

void idWeapon::UpdateNozzleFx ( void  )
private

Definition at line 1855 of file Weapon.cpp.

void idWeapon::UpdateScript ( void  )

Definition at line 2071 of file Weapon.cpp.

bool idWeapon::UpdateSkin ( void  )

Definition at line 1423 of file Weapon.cpp.

void idWeapon::WeaponStolen ( void  )

Definition at line 1770 of file Weapon.cpp.

void idWeapon::WriteToSnapshot ( idBitMsgDelta msg) const
virtual

Reimplemented from idEntity.

Definition at line 2680 of file Weapon.cpp.

Member Data Documentation

bool idWeapon::allowDrop
private

Definition at line 269 of file Weapon.h.

int idWeapon::ammoClip
private

Definition at line 285 of file Weapon.h.

int idWeapon::ammoRequired
private

Definition at line 283 of file Weapon.h.

ammo_t idWeapon::ammoType
private

Definition at line 282 of file Weapon.h.

int idWeapon::animBlendFrames
private

Definition at line 204 of file Weapon.h.

int idWeapon::animDoneTime
private

Definition at line 205 of file Weapon.h.

jointHandle_t idWeapon::barrelJointView
private

Definition at line 296 of file Weapon.h.

jointHandle_t idWeapon::barrelJointWorld
private

Definition at line 303 of file Weapon.h.

int idWeapon::berserk
private

Definition at line 225 of file Weapon.h.

int idWeapon::brassDelay
private

Definition at line 250 of file Weapon.h.

idDict idWeapon::brassDict
private

Definition at line 249 of file Weapon.h.

int idWeapon::clipSize
private

Definition at line 284 of file Weapon.h.

bool idWeapon::continuousSmoke
private

Definition at line 319 of file Weapon.h.

bool idWeapon::disabled
private

Definition at line 222 of file Weapon.h.

jointHandle_t idWeapon::ejectJointView
private

Definition at line 298 of file Weapon.h.

jointHandle_t idWeapon::ejectJointWorld
private

Definition at line 304 of file Weapon.h.

idVec3 idWeapon::flashColor
private

Definition at line 264 of file Weapon.h.

jointHandle_t idWeapon::flashJointView
private

Definition at line 297 of file Weapon.h.

jointHandle_t idWeapon::flashJointWorld
private

Definition at line 302 of file Weapon.h.

int idWeapon::flashTime
private

Definition at line 266 of file Weapon.h.

renderLight_t idWeapon::guiLight
private

Definition at line 254 of file Weapon.h.

int idWeapon::guiLightHandle
private

Definition at line 255 of file Weapon.h.

jointHandle_t idWeapon::guiLightJointView
private

Definition at line 299 of file Weapon.h.

bool idWeapon::hasBloodSplat
private

Definition at line 272 of file Weapon.h.

bool idWeapon::hide
private

Definition at line 221 of file Weapon.h.

float idWeapon::hideDistance
private

Definition at line 216 of file Weapon.h.

float idWeapon::hideEnd
private

Definition at line 219 of file Weapon.h.

float idWeapon::hideOffset
private

Definition at line 220 of file Weapon.h.

float idWeapon::hideStart
private

Definition at line 218 of file Weapon.h.

int idWeapon::hideStartTime
private

Definition at line 217 of file Weapon.h.

int idWeapon::hideTime
private

Definition at line 215 of file Weapon.h.

idStr idWeapon::icon
private

Definition at line 251 of file Weapon.h.

idStr idWeapon::idealState
private

Definition at line 203 of file Weapon.h.

bool idWeapon::isFiring
private

Definition at line 290 of file Weapon.h.

bool idWeapon::isLinked
private

Definition at line 206 of file Weapon.h.

int idWeapon::kick_endtime
private

Definition at line 275 of file Weapon.h.

int idWeapon::lastAttack
private

Definition at line 330 of file Weapon.h.

bool idWeapon::lightOn
private

Definition at line 267 of file Weapon.h.

int idWeapon::lowAmmo
private

Definition at line 286 of file Weapon.h.

const idDeclEntityDef* idWeapon::meleeDef
private

Definition at line 245 of file Weapon.h.

idStr idWeapon::meleeDefName
private

Definition at line 248 of file Weapon.h.

float idWeapon::meleeDistance
private

Definition at line 247 of file Weapon.h.

idAngles idWeapon::muzzle_kick_angles
private

Definition at line 278 of file Weapon.h.

int idWeapon::muzzle_kick_maxtime
private

Definition at line 277 of file Weapon.h.

idVec3 idWeapon::muzzle_kick_offset
private

Definition at line 279 of file Weapon.h.

int idWeapon::muzzle_kick_time
private

Definition at line 276 of file Weapon.h.

idMat3 idWeapon::muzzleAxis
private

Definition at line 237 of file Weapon.h.

renderLight_t idWeapon::muzzleFlash
private

Definition at line 258 of file Weapon.h.

int idWeapon::muzzleFlashEnd
private

Definition at line 265 of file Weapon.h.

int idWeapon::muzzleFlashHandle
private

Definition at line 259 of file Weapon.h.

idVec3 idWeapon::muzzleOrigin
private

Definition at line 236 of file Weapon.h.

int idWeapon::nextStrikeFx
private

Definition at line 324 of file Weapon.h.

bool idWeapon::nozzleFx
private

Definition at line 327 of file Weapon.h.

int idWeapon::nozzleFxFade
private

Definition at line 329 of file Weapon.h.

renderLight_t idWeapon::nozzleGlow
private

Definition at line 331 of file Weapon.h.

idVec3 idWeapon::nozzleGlowColor
private

Definition at line 334 of file Weapon.h.

int idWeapon::nozzleGlowHandle
private

Definition at line 332 of file Weapon.h.

float idWeapon::nozzleGlowRadius
private

Definition at line 336 of file Weapon.h.

const idMaterial* idWeapon::nozzleGlowShader
private

Definition at line 335 of file Weapon.h.

idPlayer* idWeapon::owner
private

Definition at line 211 of file Weapon.h.

idMat3 idWeapon::playerViewAxis
private

Definition at line 229 of file Weapon.h.

idVec3 idWeapon::playerViewOrigin
private

Definition at line 228 of file Weapon.h.

bool idWeapon::powerAmmo
private

Definition at line 287 of file Weapon.h.

idDict idWeapon::projectileDict
private

Definition at line 246 of file Weapon.h.

idEntity* idWeapon::projectileEnt
private

Definition at line 209 of file Weapon.h.

idVec3 idWeapon::pushVelocity
private

Definition at line 239 of file Weapon.h.

bool idWeapon::silent_fire
private

Definition at line 268 of file Weapon.h.

const idSoundShader* idWeapon::sndHum
private

Definition at line 314 of file Weapon.h.

idStr idWeapon::state
private

Definition at line 202 of file Weapon.h.

weaponStatus_t idWeapon::status
private

Definition at line 200 of file Weapon.h.

idMat3 idWeapon::strikeAxis
private

Definition at line 323 of file Weapon.h.

idVec3 idWeapon::strikePos
private

Definition at line 322 of file Weapon.h.

const idDeclParticle* idWeapon::strikeSmoke
private

Definition at line 320 of file Weapon.h.

int idWeapon::strikeSmokeStartTime
private

Definition at line 321 of file Weapon.h.

idThread* idWeapon::thread
private

Definition at line 201 of file Weapon.h.

jointHandle_t idWeapon::ventLightJointView
private

Definition at line 300 of file Weapon.h.

idMat3 idWeapon::viewWeaponAxis
private

Definition at line 233 of file Weapon.h.

idVec3 idWeapon::viewWeaponOrigin
private

Definition at line 232 of file Weapon.h.

idScriptBool idWeapon::WEAPON_ATTACK
private

Definition at line 193 of file Weapon.h.

idScriptBool idWeapon::WEAPON_LOWERWEAPON
private

Definition at line 199 of file Weapon.h.

idScriptBool idWeapon::WEAPON_NETENDRELOAD
private

Definition at line 196 of file Weapon.h.

idScriptBool idWeapon::WEAPON_NETFIRING
private

Definition at line 197 of file Weapon.h.

idScriptBool idWeapon::WEAPON_NETRELOAD
private

Definition at line 195 of file Weapon.h.

idScriptBool idWeapon::WEAPON_RAISEWEAPON
private

Definition at line 198 of file Weapon.h.

idScriptBool idWeapon::WEAPON_RELOAD
private

Definition at line 194 of file Weapon.h.

int idWeapon::weaponAngleOffsetAverages
private

Definition at line 339 of file Weapon.h.

float idWeapon::weaponAngleOffsetMax
private

Definition at line 341 of file Weapon.h.

float idWeapon::weaponAngleOffsetScale
private

Definition at line 340 of file Weapon.h.

const idDeclEntityDef* idWeapon::weaponDef
private

Definition at line 244 of file Weapon.h.

float idWeapon::weaponOffsetScale
private

Definition at line 343 of file Weapon.h.

float idWeapon::weaponOffsetTime
private

Definition at line 342 of file Weapon.h.

const idDeclParticle* idWeapon::weaponSmoke
private

Definition at line 317 of file Weapon.h.

int idWeapon::weaponSmokeStartTime
private

Definition at line 318 of file Weapon.h.

idEntityPtr<idAnimatedEntity> idWeapon::worldModel
private

Definition at line 212 of file Weapon.h.

renderLight_t idWeapon::worldMuzzleFlash
private

Definition at line 261 of file Weapon.h.

int idWeapon::worldMuzzleFlashHandle
private

Definition at line 262 of file Weapon.h.

int idWeapon::zoomFov
private

Definition at line 293 of file Weapon.h.


The documentation for this class was generated from the following files: