Feature #17045

IFAK API: add item(s) to IFAK

Added by Sandiford about 4 years ago. Updated almost 4 years ago.

Status:Closed Start date:01/28/2011
Priority:Normal Due date:
Assignee:tcp % Done:

100%

Category:Script
Target version:1.11
Component:sys_ruck Affected Version:
Close Reason:

Description

IFAK give you 6 extra slots for secondary ammo, however if you add more than 8 items during init the excess will be deleted. This prevents using all IFAK slots + secondary slots without extra scripting


Related issues

related to A.C.E. for OA - Feature #17044: Can't remove items from IFAK slots Closed 01/28/2011

Associated revisions

Revision ad81d09f
Added by Ted almost 4 years ago

API: ACE_fnc_PackIFAK

fixes #17045

History

Updated by Sickboy about 4 years ago

  • Category set to Complex
  • Status changed from New to Assigned
  • Assignee set to tcp
  • Target version set to 1.9

The idea would be to have a function like 'addIfakkContents'.
Before briefing this will add it directly to the ifakk variable on the units.
After briefing this will add the magazines directly to the unit's magazines, unless perhaps the gear dialog is open at that time.

Updated by tcp about 4 years ago

This IFAK API add function will supercede the addMagazine method in order to avoid the excess magazines removed after briefing behavior.

The adding of IFAK items in ACE by default will be moved up from mission start to init/briefing, so that counts can be displayed at that time.

The function will add IFAK items in addition to the ones added by default unless you specify an optional parameter to clear previous counts.

If you add more than is allowed in the IFAK holder, they will be added to the regular magazine slots. It is recommended you add all other magazines before using the IFAK add function, so that it can try to avoid excess magazines.

I will try to write a checking function (in the event that addMagazine was used) that prefers regular magazines over IFAK items when excess magazines are encountered (and IFAK slots are already full), but I am not sure if I can schedule it to run at the proper time (after mission init and gear has time to populate but before BIS removes excess).

Updated by rocko about 4 years ago

  • Target version changed from 1.9 to 395

Updated by rocko almost 4 years ago

  • Target version changed from 395 to Planned (Needs Contributors)

Updated by tcp almost 4 years ago

  • Category changed from Complex to Script
  • Target version changed from Planned (Needs Contributors) to 1.11
  • Component set to sys_ruck

Updated by Ted almost 4 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Updated by AnimalMother92 almost 4 years ago

Nice, thanks tcp! :)

Updated by Sickboy almost 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF