codemp/game/bg_weapons.c File Reference

#include "q_shared.h"
#include "bg_public.h"
#include "bg_local.h"

Go to the source code of this file.

Variables

vec3_t WP_MuzzlePoint [WP_NUM_WEAPONS]
weaponData_t weaponData [WP_NUM_WEAPONS]
ammoData_t ammoData [AMMO_MAX]


Variable Documentation

ammoData_t ammoData[AMMO_MAX]
 

Definition at line 358 of file bg_weapons.c.

Referenced by Add_Ammo(), ammo_generic_power_converter_use(), ammo_power_converter_use(), BG_CanItemBeGrabbed(), CG_DrawSiegeInfo(), CG_ParseSiegeExtendedDataEntry(), ClientSpawn(), G_CanUseDispOn(), G_DriveATST(), and G_UseDispenserOn().

weaponData_t weaponData[WP_NUM_WEAPONS]
 

Definition at line 31 of file bg_weapons.c.

Referenced by BG_CanItemBeGrabbed(), BotSelectChoiceWeapon(), BotSelectIdealWeapon(), BotTryAnotherWeapon(), BotWeaponSelectable(), CG_CheckAmmo(), CG_DrawHUD(), CG_DrawSiegeInfo(), CG_EntityEvent(), CG_GetValue(), CG_ParseSiegeExtendedDataEntry(), CG_WeaponCheck(), ChangeWeapon(), ClientSpawn(), G_CanUseDispOn(), G_DriveATST(), G_SiegeClientExData(), G_UseDispenserOn(), NPC_Begin(), NPC_ParseParms(), NPC_PrecacheWeapons(), NPC_SetWeapons(), Pickup_Weapon(), PM_AdjustAttackStates(), PM_WeaponLightsaber(), ShootThink(), ShouldSecondaryFire(), StandardBotAI(), TossClientItems(), TossClientWeapon(), Touch_Item(), and WeaponThink().

vec3_t WP_MuzzlePoint[WP_NUM_WEAPONS]
 

Initial value:

 
{
        {0,             0,              0       },      
        {0      ,       8,              0       },      
        {0      ,       8,              0       },      
        {8      ,       16,             0       },      
        {12,    6,              -6      },      
        {12,    6,              -6      },      
        {12,    6,              -6      },      
        {12,    2,              -6      },      
        {12,    4.5,    -6      },      
        {12,    6,              -6      },      
        {12,    6,              -6      },      
        {12,    8,              -4      },      
        {12,    0,              -4      },      
        {12,    0,              -10     },      
        {12,    0,              -4      },      
        {12,    6,              -6      },      
        {12,    6,              -6      },      
}

Definition at line 10 of file bg_weapons.c.

Referenced by CalcMuzzlePoint(), CG_CalcMuzzlePoint(), and PM_RocketLock().