As in, its code seems to be screwing up the file: weapons.xml refuses to load with it in. I used the shotgun_pump code as a template, with some help from the various auto-weapons. I'm sure the problem is something trivial, but can't for the life of me figure it out right now. Would appreciate outside checking & input.
Here's the code:
<weapontype idname="WEAPON_SHOTGUN_AS12">
<name>AS12 Assault SG</name>
<name_future>HvyPlasmaBurstgun</name_future>
<shortname>AS12</shortname>
<shortname_future>HvyBrst</shortname_future>
<can_take_hostages>true</can_take_hostages>
<threatening>true</threatening>
<legality>-1</legality>
<fencevalue>600</fencevalue>
<bashstrengthmod>125</bashstrengthmod>
<size>15</size>
<attack>
<priority>1</priority>
<ranged>true</ranged>
<attack_description>shoots at</attack_description>
<skill>SHOTGUN</skill>
<ammotype>CLIP_AS12</ammotype>
<random_damage>201</random_damage>
<fixed_damage>10</fixed_damage>
<shoots>true</shoots>
<bleeding>true</bleeding>
<damages_armor>true</damages_armor>
<armorpiercing>0</armorpiercing>
<number_attacks>2<number_attacks>
<accuracy_bonus>1</accuracy_bonus>
<successive_attacks_difficulty>2</successive_attacks_difficulty>
<critical>
<chance>50</chance>
<hits_required>2</hits_required>
<random_damage>301</random_damage>
<fixed_damage>10</fixed_damage>
<severtype>NASTY</severtype>
</critical>
</attack>
<attack>
<priority>2</priority>
<attack_description>swings at</attack_description>
<skill>CLUB</skill>
<strength_min>6</strength_min>
<strength_max>12</strength_max>
<random_damage>21</random_damage>
<fixed_damage>5</fixed_damage>
<bruises>true</bruises>
</attack>
</weapontype>
If anyone's interested in the theory: I felt that Shotgun skill needed something to make it competitive at C & C+ Gun Control. The AS12 fires two-shot bursts, can be fired ten times before reloading, has a 50% crit rate once both shells connect, and isn't concealable. Hopefully the double-shots and increased crit rate help offset shotguns' negligible penetration. Gun is purchasable for $1200 (between MP5 & AK47); ammo is $60/drum. (12g tubefeed for the pump gun costs $25/6 shells in the XML, so I think that $60 is fairly in line for 20 shells & drum mag.) Wouldn't know how to issue it to CCS/military/corp raid-mercs, the potential non-LCS markets.
(I've written corresponding code in clips & armsdealer. clips loads--I neglected to close a tag there, fixed--and no idea re armsdealer.)
Thank you for your time, consideration, and hopefully assistance.