Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Weapon & Item Refinement » MG3 to MG42 Conversion
Re: MG3 to MG42 Conversion[message #365021 is a reply to message #364992]
|
Tue, 06 December 2022 02:17
|
|
MadMechanic |
|
Messages:20
Registered:November 2022 |
|
|
Hello Rattus.
What you are doing is is pretty well exactly what I'm trying to do in my game but I'm having issues. I'm trying to change the Browning M1919 A6 from it's current in-game caliber (7.62x51mm NATO) to the correct .30-06. Here is what I've done so far and I cannot figure out why this isn't working.
The first thing I did was to copy the index entry for the M1919A6 within items.xml from it's existing index position of 627 to an unused index position, in my case I used position 942. Item Index 942 from 1.13 is set as a 'Nada' item. From there I started making my changes as follows:
<ITEM>
<uiIndex>942</uiIndex>
<szItemName>M1919</szItemName>
<szLongItemName>Browning M1919</szLongItemName>
<szItemDesc>US Military general purpose machine gun, chambered for .30-06.</szItemDesc>
<szBRName>Browning M1919</szBRName>
<szBRDesc>US Military general purpose machine gun, chambered for .30-06.</szBRDesc>
<usItemClass>2</usItemClass> <!-- weapon -->
<nasLayoutClass>1</nasLayoutClass>
<ubClassIndex>942</ubClassIndex> <!-- points to index #942 in weapons xml -->
<ItemFlag>128</ItemFlag> <!-- Belt Fed -->
<ubCursor>3</ubCursor>
<ubGraphicNum>205</ubGraphicNum>
<ubWeight>147</ubWeight>
<ItemSize>9</ItemSize>
<usPrice>7182</usPrice>
<ubCoolness>6</ubCoolness>
<bRepairEase>1</bRepairEase>
<Damageable>1</Damageable>
<Repairable>1</Repairable>
<WaterDamages>1</WaterDamages>
<Metal>1</Metal>
<Sinks>1</Sinks>
<ShowStatus>1</ShowStatus>
<TwoHanded>1</TwoHanded>
<BigGunList>1</BigGunList>
<Unaerodynamic>1</Unaerodynamic>
<BR_NewInventory>3</BR_NewInventory>
<BR_UsedInventory>1</BR_UsedInventory>
<BR_ROF>500</BR_ROF>
<DefaultAttachment>209</DefaultAttachment>
<usOverheatingCooldownFactor>100.0</usOverheatingCooldownFactor>
<DamageChance>10</DamageChance>
<DirtIncreaseFactor>20.0</DirtIncreaseFactor>
<STAND_MODIFIERS />
<CROUCH_MODIFIERS />
<PRONE_MODIFIERS />
</ITEM>
Next I went into the Weapons.xml file and created a new entry at Index position 942 as follows. I accomplished this by copying the information for the existing M1919A6 and editing:
<WEAPON>
<uiIndex>942</uiIndex>
<szWeaponName>Browning M1919</szWeaponName>
<ubWeaponClass>4</ubWeaponClass>
<ubWeaponType>7</ubWeaponType>
<ubCalibre>46</ubCalibre> <!-- .30-06 caliber -->
<ubReadyTime>26</ubReadyTime>
<ubShotsPer4Turns>13.18</ubShotsPer4Turns>
<ubBurstPenalty>6</ubBurstPenalty>
<ubBulletSpeed>22</ubBulletSpeed>
<ubImpact>38</ubImpact>
<ubDeadliness>56</ubDeadliness>
<bAccuracy>5</bAccuracy>
<ubMagSize>100</ubMagSize> <!-- Corresponds to accepted magazine/belt size -->
<usRange>670</usRange>
<usReloadDelay>200</usReloadDelay>
<BurstAniDelay>60</BurstAniDelay>
<ubAttackVolume>77</ubAttackVolume>
<ubHitVolume>7</ubHitVolume>
<sSound>351</sSound>
<sBurstSound>43</sBurstSound>
<sSilencedBurstSound>127</sSilencedBurstSound>
<sReloadSound>104</sReloadSound>
<sLocknLoadSound>110</sLocknLoadSound>
<SilencedSound>157</SilencedSound>
<bBurstAP>14</bBurstAP>
<bAutofireShotsPerFiveAP>2</bAutofireShotsPerFiveAP>
<APsToReload>32</APsToReload>
<SwapClips>1</SwapClips>
<MaxDistForMessyDeath>13</MaxDistForMessyDeath>
<AutoPenalty>7</AutoPenalty>
<NoSemiAuto>1</NoSemiAuto>
<ManualReloadSound>476</ManualReloadSound>
<nAccuracy>82</nAccuracy>
<bRecoilX>2</bRecoilX>
<bRecoilY>10</bRecoilY>
<ubAimLevels>7</ubAimLevels>
<Handling>26</Handling>
<usOverheatingJamThreshold>40000</usOverheatingJamThreshold>
<usOverheatingDamageThreshold>21000</usOverheatingDamageThreshold>
<usOverheatingSingleShotTemperature>140</usOverheatingSingleShotTemperature>
</WEAPON>
Next I need the actual ammo belt 'magazine' item, so back over on Items.xml I used index position 944 (also an unused 'Nada' position by default) and copied the information for the 7.62x51mm AP Belt from position 125 to speed things up. Here is the Items.xml entry:
<ITEM>
<uiIndex>944</uiIndex>
<szItemName>.30-06 Belt AP</szItemName>
<szLongItemName>.30-06 Belt, AP</szLongItemName>
<szItemDesc>This belt contains 100 rounds of standard .30-06 AP ammo.</szItemDesc>
<szBRName>.30-06 Belt AP</szBRName>
<szBRDesc>This belt contains 100 rounds of standard .30-06 AP ammo.</szBRDesc>
<usItemClass>1024</usItemClass> <!-- Item Class, Ammo -->
<nasLayoutClass>1</nasLayoutClass>
<ubClassIndex>604</ubClassIndex> <!-- Points to index #604 in magazines xml -->
<ItemFlag>256</ItemFlag> <!-- Item Flag, Ammo Belt -->
<ubGraphicType>1</ubGraphicType>
<ubGraphicNum>164</ubGraphicNum> <!-- icon graphic -->
<ubWeight>33</ubWeight>
<ItemSize>27</ItemSize>
<usPrice>750</usPrice>
<ubCoolness>6</ubCoolness>
<Metal>1</Metal>
<Sinks>1</Sinks>
<usOverheatingCooldownFactor>100.0</usOverheatingCooldownFactor>
<STAND_MODIFIERS />
<CROUCH_MODIFIERS />
<PRONE_MODIFIERS />
</ITEM>
Next I went into Magazines.xml and created magazine index position 604 as follows:
<MAGAZINE>
<uiIndex>604</uiIndex> <!-- .30-06 AP, 100 round belt -->
<ubCalibre>46</ubCalibre> <!-- Caliber .30-06 -->
<ubMagSize>100</ubMagSize> <!-- 100 rounds -->
<ubAmmoType>2</ubAmmoType> <!-- AP/FMJ -->
<ubMagType>0</ubMagType> <!-- Magazine -->
</MAGAZINE>
Now, as far as I can tell, this is all I should need to do to get this to work. At this point I have the weapon entry in both Items.xml and Weapons.xml starting with the 1.13 version of the M1919A6 as a base so that all I'm really doing is changing things like the name, the description and the caliber. Magazine size is staying the same at 100 round with the fed type set as belt. The magazine item entry in items.xml is also correspondingly set as an ammo belt and the magazines.xml entry is set at the corresponding 100 rounds size.
Based on my understanding of how all these xml files interact with each other, this should all work. However, when I then go to the IMPItemChoices.xml file and set the default items to include the new weapon item 942 and then launch the game to test by creating an IMP merc, the weapon fails to show up in their inventory. Here is my code for the IMPItemChoices.xml:
<IMPITEMCHOICES>
<uiIndex>0</uiIndex>
<name>Default Items</name>
<ubChoices>5</ubChoices>
<ubNumItems>5</ubNumItems>
<bItemNo1>176</bItemNo1> <!-- Steel Helmet -->
<bItemNo2>1090</bItemNo2> <!-- LBE Gear -->
<bItemNo3>1097</bItemNo3> <!-- TIMS Pack -->
<bItemNo4>1091</bItemNo4> <!-- Holster, lbeIndex 16 -->
<bItemNo5>942</bItemNo5> <!-- M1919 machine gun -->
<bItemNo6>0</bItemNo6>
<bItemNo7>0</bItemNo7>
<bItemNo8>0</bItemNo8>
<bItemNo9>0</bItemNo9>
I have the number of possible choices set to 5 as well as the number of items set to 5 with 5 items in the list.
So I feel like there is something I don't know that I'm supposed to do in addition to the changes I've already made. Any ideas?
Thank you for any help you can provide.
-MadMechanic
Report message to a moderator
|
Private 1st Class
|
|
|
|
|
MG3 to MG42 Conversion
By: rattus on Tue, 01 September 2020 16:34
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Sun, 06 September 2020 13:20
|
|
|
Re: MG3 to MG42 Conversion
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Thu, 10 September 2020 16:08
|
|
|
Re: MG3 to MG42 Conversion
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Sun, 20 September 2020 15:27
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Mon, 21 September 2020 15:42
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Wed, 23 September 2020 14:04
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Sat, 26 September 2020 14:19
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Fri, 25 November 2022 13:19
|
|
|
Re: MG3 to MG42 Conversion
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Fri, 09 December 2022 08:04
|
|
|
Re: MG3 to MG42 Conversion
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Sun, 11 December 2022 10:48
|
|
|
Re: MG3 to MG42 Conversion
|
|
|
Re: MG3 to MG42 Conversion
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Mon, 12 December 2022 11:19
|
|
|
Re: MG3 to MG42 Conversion
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Tue, 13 December 2022 11:46
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Tue, 13 December 2022 12:11
|
|
|
Re: MG3 to MG42 Conversion
|
|
|
Re: MG3 to MG42 Conversion
By: Asdow on Wed, 14 December 2022 00:44
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Fri, 16 December 2022 04:47
|
|
|
Re: MG3 to MG42 Conversion
By: Asdow on Sat, 17 December 2022 12:09
|
|
|
Re: MG3 to MG42 Conversion
|
|
|
Re: MG3 to MG42 Conversion
|
|
|
Re: MG3 to MG42 Conversion
By: rattus on Sun, 18 December 2022 06:35
|
Goto Forum:
Current Time: Sun Jan 26 07:43:32 GMT+2 2025
Total time taken to generate the page: 0.01198 seconds
|