UFO: Alien Invasion
|
Defines all attributes of objects used in the inventory. More...
#include <inv_shared.h>
Public Member Functions | |
uint32_t | getShapeRotated () const |
Rotates a shape definition 90 degree to the left (CCW) More... | |
bool | isCraftItem () const |
Checks whether a given item is an aircraftitem item. More... | |
bool | isBaseDefenceItem () const |
Checks whether the item is a basedefence item. More... | |
bool | isLoadableInWeapon (const objDef_s *weapon) const |
Checks if an item can be used to reload a weapon. More... | |
bool | isAmmo () const |
bool | isArmour () const |
int | getReloadTime () const |
bool | isReloadable () const |
Data Fields | |
int | idx |
const char * | name |
const char * | id |
const char * | model |
const char * | image |
const char * | type |
const char * | armourPath |
uint32_t | shape |
float | scale |
vec3_t | center |
bool | weapon |
bool | holdTwoHanded |
bool | fireTwoHanded |
bool | headgear |
bool | thrown |
bool | implant |
itemEffect_t * | strengthenEffect |
bool | isVirtual |
bool | isPrimary |
bool | isSecondary |
bool | isHeavy |
bool | isMisc |
bool | isUGVitem |
bool | isDummy |
int | ammo |
int | _reload |
const char * | reloadSound |
float | reloadAttenuation |
bool | oneshot |
bool | deplete |
int | useable |
const struct objDef_s * | ammos [MAX_AMMOS_PER_OBJDEF] |
int | numAmmos |
const struct objDef_s * | weapons [MAX_WEAPONS_PER_OBJDEF] |
fireDef_t | fd [MAX_WEAPONS_PER_OBJDEF][MAX_FIREDEFS_PER_WEAPON] |
fireDefIndex_t | numFiredefs [MAX_WEAPONS_PER_OBJDEF] |
int | numWeapons |
short | protection [MAX_DAMAGETYPES] |
short | ratings [MAX_DAMAGETYPES] |
byte | dmgtype |
byte | sx |
byte | sy |
char | animationIndex |
craftItem | craftitem |
int | price |
int | productionCost |
int | size |
int | weight |
bool | notOnMarket |
Defines all attributes of objects used in the inventory.
Definition at line 264 of file inv_shared.h.
|
inline |
Definition at line 349 of file inv_shared.h.
References _reload.
Referenced by HUD_CalcReloadTime(), isReloadable(), Item::isReloadable(), and InventoryInterface::moveInInventory().
uint32_t objDef_t::getShapeRotated | ( | ) | const |
Rotates a shape definition 90 degree to the left (CCW)
Definition at line 472 of file inv_shared.cpp.
References INVSH_CheckShapeSmall(), INVSH_ShapeSetBit(), shape, SHAPE_SMALL_MAX_HEIGHT, and SHAPE_SMALL_MAX_WIDTH.
Referenced by Inventory::canHoldItem(), INVSH_CheckToInventory_shape(), INVSH_ShapeCheckPosition(), and UI_ContainerNodeDrawFreeSpace().
|
inline |
Definition at line 343 of file inv_shared.h.
References Q_streq.
Referenced by Com_ParseItem(), CP_AddWeaponAmmo(), INV_ItemDescription(), uiContainerNode::onDndFinished(), UI_BaseInventoryNodeDrawItems(), UI_ContainerItemIteratorNext(), UI_ContainerNodeAutoPlaceItem(), and UP_ResearchedLinkClick_f().
|
inline |
Definition at line 346 of file inv_shared.h.
References Q_streq.
Referenced by Inventory::canHoldItem(), CHRSH_CharGetBody(), CHRSH_CharGetHead(), CHRSH_IsArmourUseableForTeam(), Com_ParseItem(), CP_AddWeaponAmmo(), InventoryInterface::EquipActorNormal(), GAME_ItemIsUseable(), INV_GetFilterFromItem(), INV_ItemDescription(), INV_ItemMatchesFilter(), Item::isArmour(), InventoryInterface::PackAmmoAndWeapon(), TEST_F(), and UI_ContainerItemIteratorNext().
bool objDef_t::isBaseDefenceItem | ( | ) | const |
Checks whether the item is a basedefence item.
Definition at line 239 of file inv_shared.cpp.
References craftitem, isDummy, MAX_ACITEMS, and craftitem_s::type.
bool objDef_t::isCraftItem | ( | ) | const |
Checks whether a given item is an aircraftitem item.
Definition at line 226 of file inv_shared.cpp.
References craftitem, isDummy, MAX_ACITEMS, and craftitem_s::type.
Referenced by INV_ItemMatchesFilter().
bool objDef_t::isLoadableInWeapon | ( | const objDef_s * | weapon | ) | const |
Checks if an item can be used to reload a weapon.
[in] | weapon | The weapon (in the inventory) to check the item with. Might not be nullptr . |
true
if the item can be used in the given weapon, otherwise false
. Definition at line 356 of file inv_shared.cpp.
References i, numWeapons, and weapons.
Referenced by CL_ActorGetContainerForReload(), CP_AddWeaponAmmo(), G_ActorReload(), G_ClientCanReload(), InventoryInterface::moveInInventory(), uiContainerNode::onDndMove(), InventoryInterface::PackAmmoAndWeapon(), UI_BaseInventoryNodeDrawItems(), UI_ContainerNodeDrawGrid(), and UI_ContainerNodeDrawSingle().
|
inline |
Definition at line 352 of file inv_shared.h.
References getReloadTime().
Referenced by AII_CarriedItems(), AIR_MoveEmployeeInventoryIntoStorage(), CL_ActorReload(), InventoryInterface::EquipActorNormal(), HUD_WeaponCanBeReloaded(), INV_EquipmentDefSanityCheck(), INV_LoadWeapon(), InventoryInterface::PackAmmoAndWeapon(), TR_Add_f(), and UP_ResearchedLinkClick_f().
int objDef_s::_reload |
Time units (TUs) for reloading the weapon.
Definition at line 296 of file inv_shared.h.
Referenced by getReloadTime().
int objDef_s::ammo |
This value is set for weapon and it says how many bullets currently loaded clip would have, if that clip would be full. In other words, max bullets for this type of weapon with currently loaded type of ammo.
Definition at line 293 of file inv_shared.h.
Referenced by ItemCargo::add(), equipDef_s::addClip(), AII_ReloadWeapon(), AII_RemoveItemFromSlot(), AIL_roundsleft(), CL_InvReload(), Com_ParseItem(), CP_AddWeaponAmmo(), InventoryInterface::EquipActorNormal(), InventoryInterface::EquipActorRobot(), G_EventInventoryReload(), HUD_WeaponCanBeReloaded(), INV_ItemDescription(), INV_LoadWeapon(), InventoryInterface::moveInInventory(), InventoryInterface::PackAmmoAndWeapon(), and UP_AircraftItemDescription().
const struct objDef_s* objDef_s::ammos[MAX_AMMOS_PER_OBJDEF] |
List of ammo-object pointers that can be used in this one.
Definition at line 307 of file inv_shared.h.
Referenced by AII_AddAmmoToSlot(), AII_AutoAddAmmo(), AIM_CheckTechnologyIntoSlot(), AIM_SelectableCraftItem(), Com_AddObjectLinks(), InventoryInterface::EquipActorRobot(), INV_DecreaseItem_f(), INV_IncreaseItem_f(), INV_ItemDescription(), INV_LoadWeapon(), TEST_F(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UP_AircraftItemDescription(), UP_DrawAssociatedAmmo(), and UP_ResearchedLinkClick_f().
char objDef_s::animationIndex |
The animation index for the character with the weapon.
Definition at line 327 of file inv_shared.h.
Referenced by LE_GetAnim().
const char* objDef_s::armourPath |
Definition at line 272 of file inv_shared.h.
Referenced by CHRSH_CharGetBody(), CHRSH_CharGetHead(), Com_ParseItem(), and TEST_F().
vec3_t objDef_s::center |
origin for models
Definition at line 276 of file inv_shared.h.
Referenced by LE_PlaceItem(), and UI_DrawItem().
craftItem objDef_s::craftitem |
Definition at line 331 of file inv_shared.h.
Referenced by AII_AddAmmoToSlot(), AII_AddItemToSlot(), AII_AutoAddAmmo(), AII_CheckUpdateAircraftStats(), AII_GetCraftitemTechsByType(), AII_ReloadWeapon(), AII_RemoveItemFromSlot(), AII_UpdateAircraftStats(), AIM_AircraftEquipAddItem_f(), AIM_AircraftEquipMenuUpdate(), AIM_AircraftEquipRemoveItem_f(), AIM_CheckTechnologyIntoSlot(), AIM_CrafttypeFilter(), AIM_SelectableCraftItem(), AIR_GetAircraftWeaponRanges(), AIR_GetMaxAircraftWeaponRange(), AIRFIGHT_AddProjectile(), AIRFIGHT_BaseShoot(), AIRFIGHT_CampaignRunProjectiles(), AIRFIGHT_CheckWeapon(), AIRFIGHT_ExecuteActions(), AIRFIGHT_GetDamage(), AIRFIGHT_InstallationShoot(), AIRFIGHT_ProbabilityToHit(), AIRFIGHT_ProjectileReachedTarget(), BDEF_AddItem_f(), BDEF_RemoveItem_f(), BS_ShowInfo_f(), Com_AddObjectLinks(), Com_ParseItem(), GEO_DrawMapOneBase(), GEO_DrawMapOneInstallation(), GEO_DrawMarkers(), isBaseDefenceItem(), isCraftItem(), and UP_AircraftItemDescription().
bool objDef_s::deplete |
This weapon is useless after all ("oneshot") ammo is used up. If true this item will not be collected on mission-end. (see INV_CollectinItems).
Definition at line 301 of file inv_shared.h.
Referenced by Com_ParseItem(), InventoryInterface::EquipActorNormal(), G_ClientShoot(), G_ShootSingle(), and INV_EquipmentDefSanityCheck().
byte objDef_s::dmgtype |
Definition at line 325 of file inv_shared.h.
Referenced by AI_FindBestFiredef(), InventoryInterface::EquipActorNormal(), G_ClientShoot(), G_Damage(), G_FireAffectedSurface(), G_ShotMorale(), G_SplashDamage(), LE_AddProjectile(), and LET_Projectile().
fireDef_t objDef_s::fd[MAX_WEAPONS_PER_OBJDEF][MAX_FIREDEFS_PER_WEAPON] |
List of firemodes per weapon (the ammo can be used in).
Definition at line 314 of file inv_shared.h.
Referenced by CL_GetSkillIndicator(), Com_ParseFireDefinition(), FIRESH_GetFiredef(), G_GetObjectForFiredef(), Item::getFiredefs(), HUD_CheckFiremodeReservation(), HUD_DisplayFiremodeEntry(), HUD_FireWeapon_f(), HUD_PopupFiremodeReservation(), INV_ItemDescription(), RunImplant(), S_PrecacheSamples(), and TEST_F().
bool objDef_s::fireTwoHanded |
The soldier needs both hands to fire using object.
Definition at line 279 of file inv_shared.h.
Referenced by Inventory::canHoldItem(), InventoryInterface::EquipActor(), InventoryInterface::EquipActorMelee(), InventoryInterface::EquipActorNormal(), G_ClientShoot(), HUD_CheckShooting(), INV_EquipmentDefSanityCheck(), INV_ItemDescription(), InventoryInterface::moveInInventory(), InventoryInterface::PackAmmoAndWeapon(), and UI_ContainerNodeDrawSingle().
bool objDef_s::headgear |
This is a headgear.
Definition at line 280 of file inv_shared.h.
Referenced by Inventory::canHoldItem(), InventoryInterface::moveInInventory(), and UI_ContainerNodeAutoPlaceItem().
bool objDef_s::holdTwoHanded |
The soldier needs both hands to hold this object.
Definition at line 278 of file inv_shared.h.
Referenced by Inventory::canHoldItem(), and Item::isHeldTwoHanded().
const char* objDef_s::id |
Identifier of the item being item definition in scriptfile.
Definition at line 268 of file inv_shared.h.
Referenced by AII_AddAmmoToSlot(), AII_AddItemToSlot(), AII_SaveOneSlotXML(), AIR_ScriptSanityCheck(), AIRFIGHT_SaveXML(), B_ItemIsStoredInBaseStorage(), B_SaveStorageXML(), BS_Buy_f(), BS_FillMarket_f(), BS_InitMarket(), BS_SaveXML(), BS_SetAutosell_f(), CHRSH_ApplyImplant(), CL_ActorGetMuzzle(), CL_InvAdd(), Com_AddObjectLinks(), Com_ParseEquipment(), Com_ParseItem(), CP_AddItemAsCollected_f(), CP_AddWeaponAmmo(), CP_ItemsSanityCheck(), InventoryInterface::EquipActor(), InventoryInterface::EquipActorMelee(), InventoryInterface::EquipActorNormal(), Inventory::findSpace(), FIRESH_GetFiredef(), G_ClientReadInventory(), G_ClientShoot(), G_GetWeaponNameForFiredef(), G_InventoryDropToFloorCheck(), G_InventoryRemoveItemByID(), G_InventoryToFloor(), G_MissionThink(), G_MissionTouch(), GAME_GetModelForItem(), GAME_LoadInventory(), GAME_NetSendItem(), GAME_SaveItem(), GAME_SaveTeam(), HUD_UpdateActorCvar(), INV_GetFilterFromItem(), INV_ItemDescription(), INVSH_GetImplantForObjDef(), INVSH_GetItemByIDSilent(), LE_PlaceItem(), InventoryInterface::PackAmmoAndWeapon(), PR_FinishDisassembly(), PR_ItemProductionInfo(), PR_RequirementsInfo(), PR_SaveXML(), RS_GetTechForItem(), RS_InitTree(), RunStrengthenImplant(), TEST_F(), TR_Add_f(), TR_CargoList(), TR_FillItems(), TR_List_f(), UI_DrawItem(), UP_AircraftItemDescription(), and UP_Article().
int objDef_s::idx |
Index of the objDef in the global item list (ods).
Definition at line 266 of file inv_shared.h.
Referenced by equipDef_s::addClip(), AII_AddAmmoToSlot(), AII_CarriedItems(), AIM_CheckTechnologyIntoSlot(), AIM_SelectableCraftItem(), AIR_MoveEmployeeInventoryIntoStorage(), B_AddAntimatter(), B_AddToStorage(), B_ItemInBase(), B_LoadStorageXML(), BS_AddItemToMarket(), BS_Buy_f(), BS_GetItemBuyingPrice(), BS_GetItemOnMarket(), BS_GetItemSellingPrice(), BS_LoadXML(), BS_RemoveItemFromMarket(), BS_SetAutosell_f(), CL_ActorGetMuzzle(), CL_InvAdd(), Com_ParseEquipment(), Com_ParseItem(), CP_AddItemAsCollected_f(), CP_AddWeaponAmmo(), CP_CleanupContainerWeapons(), InventoryInterface::EquipActorNormal(), G_EventActorAppear(), G_EventInventoryAmmo(), G_EventInventoryReload(), G_EventReactionFireChange(), G_EventShoot(), G_EventShootHidden(), G_EventThrow(), G_WriteItem(), GAME_LoadTeam(), GAME_NetSendItem(), GAME_SaveTeam(), HUD_PopupFiremodeReservation(), HUD_UpdateReactionFiremodes(), LE_PlaceItem(), uiBaseInventoryNode::onMouseDown(), uiContainerNode::onMouseDown(), InventoryInterface::PackAmmoAndWeapon(), RS_GetTechForItem(), RS_InitTree(), TEST_F(), UI_ContainerNodeAutoPlaceItem(), and UI_ContainerNodeUpdateEquipment().
const char* objDef_s::image |
Object image file - relative to game dir.
Definition at line 270 of file inv_shared.h.
Referenced by Com_ParseItem(), RS_InitTree(), TEST_F(), and UI_DrawItem().
bool objDef_s::implant |
This item can be implanted
Definition at line 282 of file inv_shared.h.
Referenced by Inventory::canHoldItem(), CHRSH_ApplyImplant(), Com_ParseItem(), INV_GetFilterFromItem(), INV_ItemDescription(), INV_ItemMatchesFilter(), InventoryInterface::moveInInventory(), UI_ContainerItemIteratorNext(), and UI_ContainerNodeAutoPlaceItem().
bool objDef_s::isDummy |
Definition at line 290 of file inv_shared.h.
Referenced by CL_ViewPrecacheModels(), INV_ItemMatchesFilter(), isBaseDefenceItem(), isCraftItem(), and TEST_F().
bool objDef_s::isHeavy |
Definition at line 287 of file inv_shared.h.
Referenced by INV_GetFilterFromItem(), and INV_ItemMatchesFilter().
bool objDef_s::isMisc |
Definition at line 288 of file inv_shared.h.
Referenced by InventoryInterface::EquipActorNormal(), INV_GetFilterFromItem(), INV_ItemMatchesFilter(), and UI_ContainerItemIteratorNext().
bool objDef_s::isPrimary |
Definition at line 285 of file inv_shared.h.
Referenced by InventoryInterface::EquipActorNormal(), INV_GetFilterFromItem(), and INV_ItemMatchesFilter().
bool objDef_s::isSecondary |
Definition at line 286 of file inv_shared.h.
Referenced by InventoryInterface::EquipActorNormal(), INV_GetFilterFromItem(), and INV_ItemMatchesFilter().
bool objDef_s::isUGVitem |
Definition at line 289 of file inv_shared.h.
Referenced by INV_ItemMatchesFilter().
bool objDef_s::isVirtual |
virtual equipment don't show up in menus, if it's an ammo no item needed for reload
Definition at line 284 of file inv_shared.h.
Referenced by AII_AutoAddAmmo(), AII_CarriedItems(), AII_RemoveItemFromSlot(), AII_RemoveNextItemFromSlot(), AIM_AircraftEquipMenuUpdate(), AIM_CrafttypeFilter(), B_BaseHasItem(), B_ItemInBase(), B_ItemIsStoredInBaseStorage(), BS_IsOnMarket(), BS_SetAutosell_f(), CL_AddActorWeapon(), Com_ParseItem(), G_InventoryDropToFloorCheck(), PR_UpdateProductionList(), TEST_F(), UP_AircraftItemDescription(), and UP_TechGetsDisplayed().
const char* objDef_s::model |
Model name - relative to game dir.
Definition at line 269 of file inv_shared.h.
Referenced by CL_ActorCvars(), CL_ViewPrecacheModels(), Com_ParseItem(), GAME_GetModelForItem(), GEO_DrawMarkers(), HUD_UpdateActorCvar(), RS_InitTree(), and TEST_F().
const char* objDef_s::name |
Item name taken from scriptfile.
Definition at line 267 of file inv_shared.h.
Referenced by InventoryInterface::addToInventory(), AII_UpdateOneInstallationDelay(), BS_FillMarket_f(), Com_ParseItem(), G_MissionTouch(), HUD_UpdateActorFireMode(), HUD_UpdateActorLoad_f(), HUD_UpdateActorStats(), INV_ItemDescription(), PR_DisassemblyInfo(), PR_GetName(), PR_ItemProductionInfo(), PR_RequirementsInfo(), PR_UpdateProductionList(), InventoryInterface::removeFromInventory(), RS_InitTree(), TEST_F(), TR_CargoList(), TR_FillItems(), TR_List_f(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UI_GetItemTooltip(), and UP_AircraftItemDescription().
bool objDef_s::notOnMarket |
True if this item should not be available on market.
Definition at line 336 of file inv_shared.h.
Referenced by BS_IsOnMarket(), and BS_SetAutosell_f().
int objDef_s::numAmmos |
Number of ammos this weapon can be used with, which is <= MAX_AMMOS_PER_OBJDEF.
Definition at line 308 of file inv_shared.h.
Referenced by AII_AddAmmoToSlot(), AII_AutoAddAmmo(), AIM_CheckTechnologyIntoSlot(), AIM_SelectableCraftItem(), Com_AddObjectLinks(), InventoryInterface::EquipActor(), InventoryInterface::EquipActorRobot(), INV_DecreaseItem_f(), INV_IncreaseItem_f(), INV_ItemDescription(), INV_LoadWeapon(), TEST_F(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UP_AircraftItemDescription(), and UP_DrawAssociatedAmmo().
fireDefIndex_t objDef_s::numFiredefs[MAX_WEAPONS_PER_OBJDEF] |
Number of firemodes per weapon. Maximum value for fireDef_t.fdIdx <= MAX_FIREDEFS_PER_WEAPON.
Definition at line 315 of file inv_shared.h.
Referenced by actorL_throwgrenade(), AI_FindBestFiredef(), AI_HasLineOfFire(), AIL_GetBestShot(), Com_ParseFireDefinition(), G_ActorHasWorkingFireModeSet(), G_GetObjectForFiredef(), Item::getNumFiredefs(), HUD_CheckFiremodeReservation(), HUD_DisplayFiremodeEntry(), HUD_PopupFiremodeReservation(), INV_ItemDescription(), RunImplant(), S_PrecacheSamples(), and TEST_F().
int objDef_s::numWeapons |
Number of weapons this ammo can be used in. Maximum value for fireDef_t.weapFdsIdx <= MAX_WEAPONS_PER_OBJDEF.
Definition at line 317 of file inv_shared.h.
Referenced by Com_AddObjectLinks(), Com_ParseFireDefinition(), Com_ParseItem(), G_GetObjectForFiredef(), Item::getFiredefs(), Item::getNumFiredefs(), HUD_UpdateActorFireMode(), INV_DecreaseItem_f(), INV_IncreaseItem_f(), INV_ItemDescription(), INV_ItemMatchesFilter(), isLoadableInWeapon(), S_PrecacheSamples(), TEST_F(), UI_ContainerItemIteratorNext(), and UI_GetItemTooltip().
bool objDef_s::oneshot |
This weapon contains its own ammo (it is loaded in the base). "int ammo" of objDef_s defines the amount of ammo used in oneshoot weapons.
Definition at line 299 of file inv_shared.h.
Referenced by Com_ParseItem(), InventoryInterface::EquipActorNormal(), G_ClientShoot(), and InventoryInterface::PackAmmoAndWeapon().
int objDef_s::price |
Price for this item.
Definition at line 332 of file inv_shared.h.
Referenced by BS_InitMarket(), Com_ParseItem(), CP_ItemsSanityCheck(), InventoryInterface::EquipActorNormal(), and INV_ItemDescription().
int objDef_s::productionCost |
Production costs for this item.
Definition at line 333 of file inv_shared.h.
Referenced by Com_ParseItem(), PR_CheckFrame(), PR_FinishProduction(), and PR_ItemProductionInfo().
short objDef_s::protection[MAX_DAMAGETYPES] |
Protection values for each armour and every damage type.
Definition at line 322 of file inv_shared.h.
Referenced by Com_ParseItem(), and G_ApplyProtection().
short objDef_s::ratings[MAX_DAMAGETYPES] |
Rating values for each armour and every damage type to display in the menus.
Definition at line 323 of file inv_shared.h.
Referenced by Com_ParseItem(), and INV_ItemDescription().
float objDef_s::reloadAttenuation |
Attenuation of reload sound - less louder over distance -
Definition at line 298 of file inv_shared.h.
Referenced by CL_InvReload(), and Com_ParseItem().
const char* objDef_s::reloadSound |
Sound played when weapon is reloaded
Definition at line 297 of file inv_shared.h.
Referenced by CL_InvReload(), Com_ParseItem(), and TEST_F().
float objDef_s::scale |
scale value for images? and models
Definition at line 275 of file inv_shared.h.
Referenced by UI_DrawItem().
uint32_t objDef_s::shape |
The shape in inventory.
Definition at line 273 of file inv_shared.h.
Referenced by Inventory::canHoldItem(), Com_ParseItem(), getShapeRotated(), INVSH_CheckToInventory_shape(), INVSH_ShapeCheckPosition(), LE_BiggestItem(), and UI_ContainerNodeDrawFreeSpace().
int objDef_s::size |
Size of an item, used in storage capacities.
Definition at line 334 of file inv_shared.h.
Referenced by AII_AddItemToSlot(), AII_GetItemWeightBySize(), AIR_GetStorageRoom(), B_AddToStorage(), BS_Buy_f(), BS_BuyItem(), BS_BuyUGV(), CAP_UpdateStorageCap(), CP_ItemsSanityCheck(), INV_ItemDescription(), and PR_ItemProductionInfo().
itemEffect_t* objDef_s::strengthenEffect |
Definition at line 283 of file inv_shared.h.
Referenced by CHRSH_ApplyImplant(), CHRSH_UpdateImplants(), Com_ParseObjDefEffect(), INV_ItemDescription(), and RunImplant().
byte objDef_s::sx |
Definition at line 326 of file inv_shared.h.
Referenced by Com_ParseItem(), uiContainerNode::onDndMove(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UI_ContainerNodeDrawDropPreview(), and UI_DrawItem().
byte objDef_s::sy |
Size in x and y direction.
Definition at line 326 of file inv_shared.h.
Referenced by Com_ParseItem(), uiContainerNode::onDndMove(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UI_ContainerNodeDrawDropPreview(), and UI_DrawItem().
bool objDef_s::thrown |
This item can be thrown.
Definition at line 281 of file inv_shared.h.
Referenced by Com_ParseItem(), G_ClientShoot(), G_ShootGrenade(), and G_ShootSingle().
const char* objDef_s::type |
melee, rifle, ammo, armour. e.g. used in the ufopedia
Definition at line 271 of file inv_shared.h.
Referenced by AIL_weapontype(), CL_ViewPrecacheModels(), Com_ParseItem(), Inventory::findSpace(), INV_ItemMatchesFilter(), and LE_GetAnim().
int objDef_s::useable |
Defines which team can use this item: TEAM_*. Used in checking the right team when filling the containers with available armour.
Definition at line 304 of file inv_shared.h.
Referenced by CHRSH_IsArmourUseableForTeam().
bool objDef_s::weapon |
This item is a weapon or ammo.
Definition at line 277 of file inv_shared.h.
Referenced by Com_AddObjectLinks(), Com_ParseItem(), InventoryInterface::EquipActorNormal(), INV_EquipmentDefSanityCheck(), INV_ItemDescription(), Item::isWeapon(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UI_ContainerItemIteratorNext(), UI_DrawItem(), and UP_ResearchedLinkClick_f().
const struct objDef_s* objDef_s::weapons[MAX_WEAPONS_PER_OBJDEF] |
List of weapon-object pointers where this item can be used in. Correct index for this array can be get from fireDef_t.weapFdsIdx. or getFiredefs().
Definition at line 311 of file inv_shared.h.
Referenced by AIM_CheckTechnologyIntoSlot(), AIM_SelectableCraftItem(), Com_AddObjectLinks(), CP_AddWeaponAmmo(), G_ActorHasWorkingFireModeSet(), Item::getFiredefs(), HUD_PopupFiremodeReservation(), HUD_UpdateActorFireMode(), HUD_UpdateReactionFiremodes(), INV_DecreaseItem_f(), INV_IncreaseItem_f(), INV_ItemDescription(), INV_ItemMatchesFilter(), INV_LoadWeapon(), isLoadableInWeapon(), uiContainerNode::onDndFinished(), UI_ContainerNodeAutoPlaceItem(), UI_GetItemTooltip(), and UP_ResearchedLinkClick_f().
int objDef_s::weight |
The weight of the item
Definition at line 335 of file inv_shared.h.
Referenced by Item::getWeight(), and INV_ItemDescription().