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 #365039 is a reply to message #365037]
|
Mon, 12 December 2022 09:09
|
|
MadMechanic |
|
Messages:20
Registered:November 2022 |
|
|
Here is my code for the Browning MG:
From Items.xml
<ITEM>
<uiIndex>7</uiIndex>
<szItemName>M1919 A6</szItemName>
<szLongItemName>Browning M1919 A6</szLongItemName>
<szItemDesc>Simple and reliable (if heavy) the A6's firepower was favored by American paratroopers during WW2.</szItemDesc>
<szBRName>Browning M1919 A6</szBRName>
<szBRDesc>An oldie but goodie with a high rate of fire, this classic belt-fed LMG will answer all your offensive and defensive needs.</szBRDesc>
<usItemClass>2</usItemClass>
<nasLayoutClass>1</nasLayoutClass>
<ubClassIndex>7</ubClassIndex>
<ItemFlag>128</ItemFlag>
<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>
This is a straight cut and relocate of the 1.13 Browning M1919A6 from it's standard position at 627 to it's new position at 7. The only other thing to change here is <ubClassIndex> being changed to 7 to correspond to Weapons.xml
Here is the Weapons.xml code
<WEAPON>
<uiIndex>7</uiIndex>
<szWeaponName>Browning M1919 A6</szWeaponName>
<ubWeaponClass>4</ubWeaponClass>
<ubWeaponType>7</ubWeaponType>
<ubCalibre>46</ubCalibre>
<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>
<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>
Index position 7 (same as in items.xml) <ubCalibre> set to 46 (.30-06), magsize is 100. Otherwise, no changes.
For the ammo belt 'magazine', starting with Items.xml
<ITEM>
<uiIndex>11</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>9</ubClassIndex> <!-- Points to index #9 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>
This is a cut/paste/modify of the 7.62x51mm AP ammo belt in standard 1.13 (found at items.xml index position 125). Changes made are to the flavor text as well as the <ubClassIndex> now being set to position 9.
And here is Magazines.xml
<MAGAZINE>
<uiIndex>9</uiIndex>
<ubCalibre>46</ubCalibre> <!-- Caliber -->
<ubMagSize>100</ubMagSize> <!-- Magazine Capacity -->
<ubAmmoType>1</ubAmmoType> <!-- Ammo Type, FMJ, AP, etc -->
<ubMagType>0</ubMagType> <!-- Magazine Type -->
</MAGAZINE>
In my AmmoTypes.xml I moved the AP ammo to position 1, eliminating the HP ammo type.
With all of this done, I can get the game to issue the ammo belt during IMP merc creation using IMPItemChoices.xml Default Items list. But the game will not issue the weapon.
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: Sat Jan 25 00:33:49 GMT+2 2025
Total time taken to generate the page: 0.01076 seconds
|