OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: augieranger on 06 Nov 2003, 16:04:36
-
Anyone know the configs for the ammo used by the COC? I have tried various methods and cannot get it right. It would be great to have a ammo truck resupplying the various units. Any ideas or help? :'(
-
Okay maybe I was'nt clear on what I am asking. I am trying to either have a ammo truck or air resupply take place but I can'nt find the ammo for the unified artillery, any help? You gurus should be able to come up with something, I know it in my heart, your all great at what you do. ;D
-
I am trying to either have a ammo truck or air resupply take place
Why do you need that? Just addmagazine ammo to it, and for the classnames, ask CoC.... And you didnt even specify what ammo your looking for... M109, MRLS, etc....?
-
Or, if you prefer an actual answer:
Unit Weapons Magazine names and standard loadout
===================================================================================
CoC_M270MLRS CoC_MLRSLauncher CoC_MLRSLauncher
CoC_M109PALADIN CoC_Howi155,CoC_MG50 CoC_Howi155,CoC_MG50,CoC_MG50,CoC_MG50
CoC_M252MORTAR CoC_M252Mortar CoC_Mortar81HE
CoC_M101Howitzer CoC_Howi105 CoC_Howi105
Although rearming using an nearby ammo truck works fine, too.
-
looks right.
Damn, didn't specify HE at the end of the 155 and 105 round mag. names.
ammo truck should work.
GIve us a shout on the CoC forums if you've got any other questions.
-
Im not sure if AI will use the ammo truck though.... so your better off using addmagazine
-
Kylesark ??? I did mention various units, :-X Any way I unpbo, big let down. Thanks killswitch, found the mags, still cannot get ai to rearm,any sugs?
-
Yup, that's a bug (or rather a feature I never inistalled). The unit gets rearmed, but the posture is not updated. Some workarounds:
A) if the asset is mobile(m109 or M270), order it to move to its current location. If it's the M101, the move command will send it into the non-working "limber" mode for 10 seconds, and have the same effect:
[unit, unit] call CoCfIFMove
This will force the asset to recalculate its ammo and posture.
B) If the asset is a mortar (M252), force a bias error reset:
CoCM252BET = CoCM252BET + .0001
This will cause all M252s on the map to calculate a new bias error (the direction in which all shells fired by that unit drift), and recalculate their ammo.
I'll fix this in the next patch.
Dinger
-
thanx dinger ill try it out , let you know the results shortly.
-
okay now im getting " no entry 'config.bin/cfgweapons.COC_Howi155,20". wut the hell does that mean? >:( okay guru dinger, know you can help. ;D
-
My guess, you're probably doing a
unit addMagazineCargo ["CoC_Howi155,20"]
instead of
unit addMagazineCargo ["CoC_Howi155", 20]
See the difference? The quotation mark is misplaced in the first one.
NB: "unit" here would be a ammo crate or something else carrying ammo, not the M109 itself. For that, check the addMagazine command.
-
okay, that worked killswitch,thanx.now the problem is that the 109s will refuel, but simply willnot rearm. dinger any ideas? im stumped ???
-
unit addmagazine "CoC_Howi155"
not addmagazinecargo
-
thanx dinger, still cannot do it, tried ammo truck, ammo boxes, storage building(editor). Anyone feel like toying around with it?
-
unit addmagazine "CoC_Howi155"
unit is the artilery unit being resupplied, you don't need an ammo truck...
-
::)k.s I do need a ammo truck, i have a resupply column that is traveling with the 155s.they are triggered to allow movement with the arty unit as it moves.any help or ideas?
-
Aww.w... hell, I'll just throw a "reload" command on the next build.
-
FAKE IT. Thats what I am trying to tell you! Sorry for loosing my tempure. Ok listen, you can have a resupply column, and make a script or something, so that when the truck is close enough to (or the other way around) the artilery unit, you addmagazine some ammo to it, and thats it. If you can't figure out how to script it, ill help you with it.
-
k.s yes i would love some help scripting it. sorry didnt catch what you was saying previously about scripting.