Jump to content
Sign in to follow this  
weirdo10o4

How do you create tracers via scripting?

Recommended Posts

Hi,

I've been making a mission where you have a very large explosion of an ammo

depot. It utilizes the smallest ACE nuke, a 300 ton explosion, but its deadliness

really comes from the hundreds of bombs and grenades it throws up to 500

meters away randomly.

Now I've been trying, unsuccessfully, to discover how to create tracer rounds

via scripting, for their awe inspiring effect and warning. I went through large

parts of the weapons list(in any case just to check them out), googled and

searched. All I got were large blasts of dust puffs around me from normal rounds

with no visual warning.

Edited by Weirdo10o4
Renamed

Share this post


Link to post
Share on other sites

If you're using ACE, just use ACE tracer rounds. Here's the US ones for example:

100Rnd. M249 Belt Tracer ACE_100Rnd_556x45_T_M249

10Rnd. M107 Tracer ACE_10Rnd_127x99_T_m107

200Rnd. M249 Belt Tracer ACE_200Rnd_556x45_T_M249

20Rnd. HK417 Tracer ACE_20Rnd_762x51_T_HK417

20Rnd. M110 Tracer ACE_20Rnd_762x51_T_M110

20Rnd. M14 Tracer ACE_20Rnd_762x51_T_DMR

20Rnd. Mk17 Tracer ACE_20Rnd_762x51_T_SCAR

30Rnd. STANAG Tracer ACE_30Rnd_556x45_T_Stanag

5Rnd. M24 Tracer ACE_5Rnd_762x51_T_M24

5Rnd. TAC50 Tracer ACE_5Rnd_127x99_T_TAC50

Full list here.

Share this post


Link to post
Share on other sites

I'm trying to create tracer bullets via scripting.

for [{_i = 0},{_i < 1},{_i = _i + 1}] do
{
for [{_b = 0}, {_b < 200},{_b = _b + 1}] do
{
	sleep 0.001;
	_shrapnel = "ACE_B_127x99_T" createVehicle [posES select 0, posES select 1, 1];
	_shrapnel setVelocity [((random 300) - 150),((random 300) - 150),(random 300) + 150];
	_shrapnel setdir (random 360);
	_shrapnel setvectorup [((random 100) / 100),((random 100) / 100),((random 100) / 100)];
};
};

Normally the nuke would be in the first braces before the shrapnel blast, but I'm

just testing. That won't create tracer rounds, but it does make a large blast of

bullets.

Share this post


Link to post
Share on other sites

Nukes don't generally shoot tracers, do they? :) If you're looking for "sparks" flying from the explosion maybe just look into doing some kind of particle effect instead of actual tracer rounds? Blastcore's visual mod has a spark explosion effect in it, perhaps pull that apart and check how they did it? PP Effects are well beyond my skill though. :(

Share this post


Link to post
Share on other sites

I specifically said it was an ammo depo explosion. Only that it utilizes (no

fallout), the smallest ACE nuke with a yield of 300 tons of TNT, 0.3kt.

+ I don't think 300 tonnes is large in terms of an ammo depot.

+ But sparks would, in addition, be cool as well, come to think of it.

Edited by Weirdo10o4
Continuing

Share this post


Link to post
Share on other sites

Here's what the Blastcore mod looks like for reference:

0aRKYpyhnBs

Is that the kind of effect you're going for?

Share this post


Link to post
Share on other sites

Pretty much, not just an effect, I need shrapnel to rain down.

Something like this:

Simply, how do I create tracer rounds, since the bullet/ammo list doesn't make it possible.

I need to add them in the mission to give some visual warning to the player of the coming danger since A2 doesn't do shrapnel/random bullets normally. I plan

on creating random streaks of tracer bullets flying around randomly, and a focused jet of normal bullets raining down on the city, where you have to work

your way to accomplish some tasks, to secure the area, evacuate and stop looting of duds and so forth.

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  

×