KnightHawk75
Posts: 1450
Joined: 11/15/2018 Status: offline
|
quote:
What is "name_of_the_munition - (XX/YY) ROF:ZZ (same question as the original question of this thread in fact) XX == how many weapon units are included in this weapon record 2/4 means there is 4 capacity and 2 munitions included by default. YY == capacity for the weapon record 2/4 there are 2 munitions, but you could change it up to 4 (or it will re-fill up to 4). ZZ == rate of fire for the weapon record, this is the fastest rate at which this weapon record can fire. You know what to add based entirely on what it is you want added to whatever it is you are adding it too. Replenish to work needs the underlying weaponid's to match. In the sample scene: - Unit Inf has a 7.62 MG mount (#357) which has rof of 1, capacity 20, can hot-reload, and presently has 0 munitions of wpnid: #1415. No mag is present. to see: print(ScenEdit_GetUnit({name='Inf', guid='4YWDWP-0HMFJMGE9U7V3'}).mounts); - Unit Rof:1 has generic mag 1185 (10k cap) with a bunch of weapon records 7.62mm MG 300/300 BUT these contains wpnid: #626. to see: print(ScenEdit_GetUnit({name='ROF:1', guid='4YWDWP-0HMFJMGE9V9NU'}).magazines) - Unit Rof:2 has generic mag 1185 (10k cap) with a bunch of weapon records 7.62mm MG 145/150 containing wpnid: #1415. to see: print(ScenEdit_GetUnit({name='ROF:1', guid='4YWDWP-0HMFJMGE9V9NU'}).magazines) So in the scene it makes perfect sense that unit:rof1 can't replenish 'Inf' because it doesn't have the specific weapons to match unit Inf, not because the rof is different. Where as the weapon records put into the mag on unit Rof:2 can, because those records contain matching munitions of 1415. How do you know the weapon id's in each weapon record when going to select them from the dialog? You don't atm, you either know from experience, look it up in the raw database ahead of time, or trial and error with some lua print()s to make sure the wpn_dbid fields match up. It would be nice if " - Wpnid: #xxxxx" was included in the dialog in addition to " - ROF: XXX" for weapon record selection. It's generally only confusing when there are multiple wpn records and mounts named nearly the same making it hard to tell them apart since the comment field isn't displayed just the name, 7.62mm is a good example of that. Hope that helps clear this up.
< Message edited by KnightHawk75 -- 2/19/2022 11:47:54 PM >
|