Jump to content
Sign in to follow this  
hcpookie

SMAW Mk217 Spotting Round

Recommended Posts

I wanted this to be a surprise but I'm having a bit of a problem with the config. The in-game SMAW config doesn't have the Mk217 spotter rifle. So what the heck I figured I'd see if I can fix this.

I have added a new muzzle type that inherits from the Rifle class. This works fine - you can switch from spotter round to SMAW rocket. Just like switching between rifle and grenade launchers. The ammo inherits from the SMAW-HEAA ammo with slight changes - it uses the tracer bullet model and no explosive or missile effects so it doesn't have a rocket exhaust or sound. I inherited from the rocket so that the attributes would be identical. It makes sense to me to inherit this because the "hard way" would seem be creating a new bullet that has the same bullet drop as an already existing round.

I wonder if a Rifle weapon class cannot shoot a rocket ammo class? If so then I'll obviously have to make a new rifle and add the SMAW rocketlauncher as a muzzle.

The PROBLEM is that the spotter round doesn't appear to inherit the flight characteristics of the parent "R_SMAW_HEDP" ammo. Therefore there is no bullet drop. What to do? The config is a copy/paste of the parent with those edits I have made marked with " - ":

NEW Spotter Round:

class pook_SMAW_Spot: R_SMAW_HEDP {

- model = "\ca\Weapons\Data\bullettracer\tracer_red";

- hit = 10;

- indirectHit = 0;

- indirectHitRange = 0;

- cost = 2;

initTime = 0.02;

thrust = 610;

thrustTime = 1;

maxSpeed = 750;

sideAirFriction = 0.22;

timeToLive = 6;

fuseDistance = 15;

visibleFire = 28;

audibleFire = 16;

- CraterEffects = "";

- explosionEffects = "";

- effectsMissile = "";

whistleDist = 24;

tracerScale = 1.2;

tracerStartTime = 0.075;

tracerEndTime = 6;

};

ORIGINAL BIS config for comparison:

class R_SMAW_HEDP: RocketBase

{

model = "\ca\weapons2\SMAW\SMAW_rocket_inflight.p3d";

hit = 150;

indirectHit = 40;

indirectHitRange = 12;

cost = 200;

initTime = 0.02;

thrust = 610;

thrustTime = 1;

maxSpeed = 750;

sideAirFriction = 0.22;

timeToLive = 6;

fuseDistance = 15;

visibleFire = 28;

audibleFire = 16;

CraterEffects = "ATRocketCrater";

explosionEffects = "ATRocketExplosion";

effectsMissile = "missile2";

whistleDist = 24;

};

Share this post


Link to post
Share on other sites

I would suggest making the spotting round the main weapon for My_SMAW just to troubleshoot. I can't see anything obvious to say where you went wrong.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×