Jump to content

Recommended Posts

Hi all,

 

Please bear with me :don9:

 

I was wondering if there:

 

1. was a scripted way of force lets say a "arifle_MX_F" to fire yellow or green traces...  (depending on the side of the unit firing it.)

2. or indeed, my real desire to dynamically change the tracer colour to whatever I want....

 

I know there are 'replaceAmmoWithTracers' scripts out there in this forum...and I've used @7erra's and DasAttorney's code snippets.

 

- the issue I have found and what has prompted my question here is that the magazines[] array for a "arifle_MX_F" only contains

 

magazines[] = {"30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag_Tracer"};

 

and when you look at the "30Rnd_65x39_caseless_mag_Tracer" it says it's red - (and nowhere can I find where the tracer colour is defined....)

 

However, there are 4 different "30Rnd_65x39_caseless_XXXX" types defined. in CfgAmmo

 

"30Rnd_65x39_caseless_green"

"30Rnd_65x39_caseless_green_mag_Tracer"

"30Rnd_65x39_caseless_mag"

"30Rnd_65x39_caseless_mag_Tracer" (colour: red)

 

now the 

 

"30Rnd_65x39_caseless_mag"

"30Rnd_65x39_caseless_mag_Tracer" (colour: red)

 

both say their ammo is 

 

ammo = "B_65x39_Caseless";

 

but for the 

 

"30Rnd_65x39_caseless_green"

"30Rnd_65x39_caseless_green_mag_Tracer"

 

their ammo is 

 

ammo = "B_65x39_Caseless_green";

 

Now looking in CfgAmmo the ammo "B_65x39_Caseless";

 

model = "\A3\Weapons_f\Data\bullettracer\tracer_red";

tracerColor[] = {0.7,0.7,0.5,0.04};

tracerColorR[] = {0.7,0.7,0.5,0.04};

 

that's for both magazines 

"30Rnd_65x39_caseless_mag"

"30Rnd_65x39_caseless_mag_Tracer" (colour: red)

 

so it seems to depend on the 

lastRoundsTracer = 4; (or 30 for the tracer mag)

tracersEvery = 0; (30 in the tracer mag)

 

in the CfgMagazines…..

 

You see I'm confused now...

 

Without having to resource to defining my own class of magazine *for every gun out there* (can I do that? - I think I've seen that in PistolFied's mod and others...)

 

Can I either

1. Force a gun to use another magazine? - ie add another magazine to the array for "arifle_MX_F" eg  "30Rnd_65x39_caseless_green_mag_Tracer"

 

or 

 

2. repack a magazine with ammo I want?

 

or 

 

3. somehow manipulate the colour of the tracer?

 

I realise there are mods out there to do this and I may be asking a damn fool question but I am a bit confused....

 

Atmo :dummy:

Share this post


Link to post
Share on other sites
14 hours ago, atmo said:

was a scripted way of force lets say a "arifle_MX_F" to fire yellow or green traces...  (depending on the side of the unit firing it.)

You could use a "Fired" Eventhandler, and when the weapon fires, delete the projectile, spawn a tracer variant of the same projectile (CfgAmmo config entry) and give that the same velocity as the old projectile.

But you still can only choose from the ammo types that already exist. You cannot dynamically choose whatever color.

 

14 hours ago, atmo said:

or indeed, my real desire to dynamically change the tracer colour to whatever I want....

Read above or can be done by switching magazines.

 

 

14 hours ago, atmo said:

and nowhere can I find where the tracer colour is defined....

But you already found it

14 hours ago, atmo said:

model = "\A3\Weapons_f\Data\bullettracer\tracer_red";

tracerColor[] = {0.7,0.7,0.5,0.04};

tracerColorR[] = {0.7,0.7,0.5,0.04};

 

 

 

14 hours ago, atmo said:

1. Force a gun to use another magazine? - ie add another magazine to the array for "arifle_MX_F" eg  "30Rnd_65x39_caseless_green_mag_Tracer"

Yes you can add magazines to the magazines[] array with a config mod.

 

14 hours ago, atmo said:

repack a magazine with ammo I want?

no

14 hours ago, atmo said:

3. somehow manipulate the colour of the tracer?

no

  • Like 1

Share this post


Link to post
Share on other sites

Ok, thank you. You have answered what I suspected, otherwise it would already been done. It stops me wasting hours trying to do something which can't be done.

 

Atmo

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

×