Instead of shooting it with a flamethrower (like the one from the Black Hand squad), it shoots with an orange line. Why?
and
Here's the coding:
Gameobject xml
WeaponCode:<ScriptedModelDraw id="ModuleTag_Draw_Gun" OkToChangeModelColor="true" ExtraPublicBone="MuzzleFx01 MuzzleFx02 MuzzleFlash_01 MuzzleFlash_02"> <ModelConditionState ParseCondStateType="PARSE_DEFAULT"> <Model Name="NSL_STRUCTUREF_SKN" /> <WeaponLaunchBone WeaponSlotID="1" WeaponSlotType="PRIMARY_WEAPON" BoneName="05d72604" /> <WeaponLaunchBone WeaponSlotID="2" WeaponSlotType="PRIMARY_WEAPON" BoneName="8620ffc5" /> <ParticleSysBone BoneName="8620ffc5" FXParticleSystemTemplate="NUBlkHndPilotDistortion" FollowBone="true" /> </ModelConditionState>
Weapon templateCode:<WeaponSetUpdate> <WeaponSlotHardpoint ID="1" WeaponChoiceCriteria="PREFER_MOST_DAMAGE"> <Weapon Ordering="PRIMARY_WEAPON" Template="NODBlackHandFlamethrowerFT" /> </WeaponSlotHardpoint> <WeaponSlotHardpoint ID="2" WeaponChoiceCriteria="PREFER_MOST_DAMAGE"> <Weapon Ordering="PRIMARY_WEAPON" Template="NODBlackHandFlamethrowerFT" /> </WeaponSlotHardpoint> </WeaponSetUpdate>
The other part I am not sure of is the animation to fire from the structure which isn't coded with this structure. Most defensive structures do not mention animation attack codings.Code:<WeaponTemplate id="NODBlackHandFlamethrowerFT" Name="NODBlackHandFlamethrowerFT" AttackRange="300.0" WeaponSpeed="180.0" RadiusDamageAffects="ALLIES ENEMIES NEUTRALS" ClipSize="20" FireSound="NOD_BlackHand_FlameWeaponStart" AcceptableAimDelta="10d" ReAcquireDetailType="PER_CLIP" CanFireWhileMoving="true"> <PreAttackDelay MinSeconds="0s" MaxSeconds="1s" /> <FiringDuration MinSeconds="0.1s" MaxSeconds="0.1s" /> <ClipReloadTime MinSeconds="1.0s" MaxSeconds="1.0s" /> <Nuggets> <ActivateStreamNugget Lifetime="0.75s" StreamId="0"/> <DamageNugget Damage="100" Radius="25.0" DelayTimeSeconds="0.5s" DamageType="GRENADE" DamageFXType="NOD_FLAMETHROWER" DeathType="BURNED" /> <ProjectileNugget WarheadTemplate="NODBlackHandFlamethrowerWarheadFT" ProjectileTemplate="NODBlackHandFlamerProjectile"/> <SuppressionNugget Radius="25.0" Suppression="200" DurationSeconds="5s" /> </Nuggets> </WeaponTemplate> <WeaponTemplate id="NODBlackHandFlamethrowerWarheadFT" Name="NODBlackHandFlamethrowerWarheadFT" HitStoredTarget="true" RadiusDamageAffects="ALLIES ENEMIES NEUTRALS"> <Nuggets> <DamageContainedNugget MaxUnitsToDamage="100" WindowBlastFX="FX_ClearGarrison" Damage="=$CLEAR_GARRISON_WEAPON_DAMAGE" DamageType="GRENADE" DeathType="BURNED"> <DamageObjectFilter Rule="NONE" Include="INFANTRY" /> </DamageContainedNugget> </Nuggets> </WeaponTemplate>



Reply With Quote


