Page MenuHomeFeedback Tracker

MI-48 Kajman has incomplete weapons and magazines arrays in cfgVehicles
Closed, ResolvedPublic

Description

The Mi-48 Kajman (both O_Heli_Attack_02_F and O_Heli_Attack_02_black_F) helicopter only lists the "CMFlareLauncher" as a weapon in its cfgVehicle weapons[] array, where gatling_30mm, missiles_SCALPEL and rockets_Skyfire should also show up.

This is also true for the magazines[] array, where just the ammo for the flares is listed (192Rnd_CMFlare_Chaff_Magazine, where 250Rnd_30mm_APDS_shells, 250Rnd_30mm_HE_shells, 8Rnd_LG_scalpel and 38Rnd_80mm_rockets should also be listed)

This creates a problem in scripts using the weapons array.

Example:
A script fetches helicopters from cfgVehicles and sorts them into two arrays (as you would before randomly spawning a vehicle from an array) by checking for weapons other than flares, named armedHelicopters and unarmedHelicopters.

Result: the Kajman ends up listed under unarmedHelicopters, but is clearly very heavily armed {F25275}

Details

Legacy ID
3696285526
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. open editor
  2. open splendid cfgViewer
  3. open cfgVehlices and look for O_Heli_Attack_02_F and O_Heli_Attack_02_black_F
  4. select one of the two and scroll down
  5. weapons[] only lists CMFlareLauncher and magazines[] only lists 192Rnd_CMFlare_Chaff_Magazine
Additional Information

I'm running a script very similar to the example I described and so far it's the only vehicle I've encountered with an incomplete cfgVehicles weapons[] or magazines[] entry.

Event Timeline

Jellesdejong edited Additional Information. (Show Details)
Jellesdejong set Category to Scripting.
Jellesdejong set Reproducibility to Always.
Jellesdejong set Severity to None.
Jellesdejong set Resolution to No Bug.
Jellesdejong set Legacy ID to 3696285526.May 7 2016, 7:58 PM
Jellesdejong edited a custom field.
pettka added a subscriber: pettka.May 7 2016, 7:58 PM

Weapons described as not being shown are actually gunner weapons which are defined in O_Heli_Attack_02 >> Turrets >> MainTurret >> Weapons[]
It is perfectly correct that they are not defined as pilot weapons the same way as for AH-99 Blackfoot. Does it help You?

Yes it does, and I feel like a fool. Thanks for being the coolest developers out there!

pettka added a comment.Jan 5 2015, 8:54 AM

I'll share that with the rest of the team, thanks a lot ;) And no need to feel bad, it happens to everyone, including myself :)