Page MenuHomeFeedback Tracker

Expand weapon holder container manipulation commands to be able to add and get weapons with accessories
Reviewed, NormalPublic

Description

As of now the only way to add weapon with attachments to weapon holder container is to add a weapon class that already has the attachments, this method does not give full control over weapon attachments and current weapon definitions lack all possible combinations of attachments. Current method in general is very uncomfortable to use since it requires an addon just to be able to have weapon with wanted attachments available in weapon holder container.

I propose to expand weapon holder manipulations scripting commands with following commands:

vehicle addWeaponWithAccessoriesCargo [weaponName, muzzleItem, flashlightItem, opticsItem, count];
vehicle addWeaponWithAccessoriesCargoGlobal [weaponName, muzzleItem, flashlightItem, opticsItem, count];

These two commands should add weapons with specified muzzle, flashlight and optics attachments into weapon holder container, local and global variants. If incompatible attachment is specified, command should do nothing.

weaponWithAccessoriesCargo vehicle

This command should return list of weapons with all their attachments in array format of
[[weaponName1, muzzleItem1, flashlightItem1, opticsItem1], [weaponName2, muzzleItem2, flashlightItem2, opticsItem2], ...]

Details

Legacy ID
2693683462
Severity
Feature
Resolution
Open
Reproducibility
N/A
Category
Scripting
Steps To Reproduce

N/A

Additional Information

Few thoughts about weapons with accessories: I think that weapon classes that inherit base weapon and have attachments on them should serve only as virtual weapon classes and actually add base weapon class with attachments attached to it instead. Probably this should be defined by special config value which also will point to base weapon class name.

For example, when you execute: player addWeapon "srifle_EBR_Hamr_point_grip_F"; it should actually add you srifle_EBR_F with attachments listed in LinkedItems of srifle_EBR_Hamr_point_grip_F class. This way we can get rid of confusion of having weapon class that lists attachments in its name while actually attachments might have changed.

Event Timeline

SaMatra edited Steps To Reproduce. (Show Details)Mar 15 2013, 1:32 PM
SaMatra edited Additional Information. (Show Details)
SaMatra set Category to Scripting.
SaMatra set Reproducibility to N/A.
SaMatra set Severity to Feature.
SaMatra set Resolution to Open.
SaMatra set Legacy ID to 2693683462.May 7 2016, 12:39 PM
Hanz added a subscriber: Hanz.May 7 2016, 12:39 PM
Hanz added a comment.May 29 2013, 3:53 PM

This suggestion was processed by our team and will be looked into. We thank you for your feedback.

Thanks. Actually thinking about it would be great if weaponWithAccessoriesCargo will also return magazines with ammo count in them since for example it will be very important to know if container's RPG has rocket loaded into it or not.

vbawol added a subscriber: vbawol.Dec 10 2016, 4:14 PM