rübe 127 Posted August 6, 2010 What happend to transportSoldier? The task, in theory, is easy: read the config from a vehicle, know how much people fit in. Unfortunately it isn't that easy. It looks like at one point the config entry "transportSoldier" was used exactly for this. Thus a simple: getNumber ((configFile >> "CfgVehicles" >> _class) >> "transportSoldier") would have been the answer to our question. Example with correct tranportSoldier: " - RU: UAZ_RU" " --> 6 emptyPositions" (command emptyPositions, sum of all positions) " - 6 transport" (config entry: transportSoldier) " - 1 driver" (config entry: hasDriver) " - 0 gunner" (config entry: hasGunner) " - 0 turrets" (count BIS_fnc_returnVehicleTurrets) Here transportSoldier is the correct answer which also equals the sum of all positions returned by the command emptyPositions. Here's another one: " - GUE: Pickup_PK_GUE" or " - USMC: HMMWV_M2" " --> 3 emptyPositions" " - 3 transport" " - 1 driver" " - 0 gunner" " - 2 turrets" This one even suggests, that "driver (+ gunner) + turrets == transport". Also note that there is no gunner (hasGunner). Now hold tight: " - CDF: UAZ_MG_CDF" " --> 1 emptyPositions" " - 1 transport" " - 1 driver" " - 0 gunner" " - 2 turrets" While emptyPositions still equals transport, we all know that 1 is not the correct answer. Also even the number of turrets alone is higher than emptyPositions or transport. Looks like we're screwed now. What happend to transportSoldier? Next example: " - CZ: LandRover_Special_CZ_EP1" " --> 2 emptyPositions" " - 2 transport" " - 1 driver" " - 0 gunner" " - 4 turrets" Aha. Look like a pattern there, no? "turrets (+ gunner) + driver = answer", for LandRover_Special_CZ_EP1 really has 5 positions to offer, while the prior two examples (Pickup_PK_GUE or HMMWV_M2) both have 3 positions. It get's even better: " - USMC: LAV25_HQ" (or any other of the hq vehicles) " --> 0 emptyPositions" " - 0 transport" " - 1 driver" " - 0 gunner" " - 2 turrets" What? Zero transport, zero emptyPositions? Are you kidding me? What the ... happend to transportSoldier? And then: "driver (+ gunner) + turrets == NOT the correct answer". Up to here, I hoped I could simply check if the number of hasDriver+hasGunner+turrets is higher than the given transport. If so, that number would get returned, otherwise simply transportSoldier. But as you see, this woudn't work: the hq vehicles only have 2 positions. So the driver could already be included in turrets. Sooo.... What happend to transportSoldier? And how do you guys retrieve the available vehicle positions from the config - reliably? Is it even possible with this mess? Share this post Link to post Share on other sites