Game Development Community

how hard would it be to add more contrail emitters

by Anthony Rosenbaum · in General Discussion · 01/22/2002 (9:37 am) · 2 replies

the default hard code only has contrail0 and contrail1/2/3 but with my plane I have 6 wing tips I was wondering if I just go in the code and keep adding contrail04/5/6 and walla it would work, somehow I belive there is a little more to it. If anyone could please explain if I am right or wrong I would appreciate it
Anthony

#1
01/22/2002 (10:14 am)
Anthony, it would probably just require a quick tweak to the code that updates the contrail emitters to iterate over the slightly larger number of emitters. Just change the size of the emitter array and change the value that iterates over the emitter array to match the new size.

Its probably defined something like:


ContrailEmitters[4];

so change the 4 to a 6;

and it'll do something like

for (uint i = 0 to 4)
{
ContrailEmitters[i].Emitstuff();
}

change the 4 to a 6.

I cant see it being much harder than that.

Phil.
#2
01/22/2002 (10:59 am)
that was what I was presuming but I have no Idea where the counter area is located? do you know?

in fact I found the variable MaxTrail = 4; I presume I would just increace this and it should take care of it. Could a GG guy confirm this

also would I have to increace the trail nodes?

Anthony