This new weapon is based off the Flamer. I changed damage and some other stats, but most importantly, I added another mode. This new mode requires Energy Weapon skill, is Plasma damage, bursts 5 rounds at a time, and uses 77 as the burst soundID, which is what Gatling Laser uses.
Here's the info in weapon.fopro:
[Proto]
ProtoId=11500
Type=3
PicMap=art\items\flamethr.frm
PicInv=art\inven\iflameth.frm
Flags=134250910
DisableEgg=1
Deteriorable=1
Weight=8164
Volume=6
SoundId=48
Cost=666
Material=1
LightFlags=42
LightDistance=5
LightIntensity=100
LightColor=1615377
Weapon_Anim1=11
Weapon_MaxAmmoCount=40
Weapon_Caliber=2
Weapon_DefaultAmmoPid=382
Weapon_MinStrength=5
Weapon_ActiveUses=2
Weapon_CriticalFailture=2
Weapon_Skill_0=201
Weapon_Skill_1=202
Weapon_Skill_2=200
Weapon_DmgType_0=3
Weapon_DmgType_1=4
Weapon_Anim2_0=Anim2Flame
Weapon_Anim2_1=Anim2Flame
Weapon_PicUse_0=art\intrface\single.frm
Weapon_PicUse_1=art\intrface\burst.frm
Weapon_PicUse_2=art\intrface\blank.frm
Weapon_DmgMin_0=100
Weapon_DmgMin_1=100
Weapon_DmgMax_0=300
Weapon_DmgMax_1=300
Weapon_MaxDist_0=12
Weapon_MaxDist_1=8
Weapon_Round_0=1
Weapon_Round_1=5
Weapon_ApCost_0=2
Weapon_ApCost_1=3
Weapon_SoundId_0=73
Weapon_SoundId_1=77
CraftLevel=1
When I spawn this weapon in-game, this is what it looks like equipped:
Note it doesn't have a "Single" or "Burst" option. Compare with default Flamer:
It can't do anything on this blank default mode, but I can still switch the mode to "Burst" and Reload.
When I attack with Burst mode, it fires a Plasma-based EW burst that hits, but there is no gatling laser sound!
So, questions:
- Why does it show a blank, unusable weapon interface instead of my Single mode? Engine limitation?
- Why doesn't it play the correct firing sound on burst mode?
I guess this might be confusing, but if anyone knows why it doesn't work correctly, let me know, thanks. Easiest way to test it yourself would be copy the info from the weapon.fopro above, I assume.