mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
New feature (by DepressivesBrot): Molle Items
- individual LBE gear can be created via MOLLE items. For each LBE item, there's a definition which pockets may be changed and how much space the new pockets may take up in total. - If there's a free pocket slot and enough space -> attach item and enable pocket. - for further description, see Doc/Design Document- MOLLE.txt git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5441 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -742,11 +742,13 @@ void InitDescStatCoords(OBJECTTYPE *pObject)
|
||||
//Loop throught the attachments and get their slot id's
|
||||
for (UINT8 x = 0; x < usAttachmentSlotIndexVector.size(); x++){
|
||||
//WarmSteel - Tell this slot where it's supposed to be.
|
||||
|
||||
if(AttachmentSlots[usAttachmentSlotIndexVector[x]].fBigSlot){
|
||||
SetupItemDescAttachmentsXY(x, AttachmentSlots[usAttachmentSlotIndexVector[x]].usDescPanelPosX, AttachmentSlots[usAttachmentSlotIndexVector[x]].usDescPanelPosY, SM_INV_SLOT_HEIGHT, ATTACH_SLOT_BIG_WIDTH, INV_BAR_DX-9, INV_BAR_DY);
|
||||
} else {
|
||||
SetupItemDescAttachmentsXY(x, AttachmentSlots[usAttachmentSlotIndexVector[x]].usDescPanelPosX, AttachmentSlots[usAttachmentSlotIndexVector[x]].usDescPanelPosY, SM_INV_SLOT_HEIGHT, ATTACH_SLOT_WIDTH, INV_BAR_DX-9, INV_BAR_DY);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
//Not a valid item for NAS, use default
|
||||
@@ -766,11 +768,13 @@ void InitDescStatCoords(OBJECTTYPE *pObject)
|
||||
{
|
||||
for (UINT8 x = 0; x < usAttachmentSlotIndexVector.size(); x++){
|
||||
//WarmSteel - Tell this slot where it's supposed to be.
|
||||
|
||||
if(AttachmentSlots[usAttachmentSlotIndexVector[x]].fBigSlot){
|
||||
SetupItemDescAttachmentsXY(x, AttachmentSlots[usAttachmentSlotIndexVector[x]].usDescPanelPosX, AttachmentSlots[usAttachmentSlotIndexVector[x]].usDescPanelPosY, SM_INV_SLOT_HEIGHT, ATTACH_SLOT_BIG_WIDTH, INV_BAR_DX-9, INV_BAR_DY);
|
||||
} else {
|
||||
SetupItemDescAttachmentsXY(x, AttachmentSlots[usAttachmentSlotIndexVector[x]].usDescPanelPosX, AttachmentSlots[usAttachmentSlotIndexVector[x]].usDescPanelPosY, SM_INV_SLOT_HEIGHT, ATTACH_SLOT_WIDTH, INV_BAR_DX-9, INV_BAR_DY);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
//Not a valid item for NAS, use default
|
||||
|
||||
Reference in New Issue
Block a user