hello, was testing my graphic card with a big particle system (about 8300 particles), and it's running on very good fps :), but when I save a file as "main.c", c_trace function won't work at all ... when I save it as "main.wdl", it's working great, and every particle is scanned ... how can I repair this in c extension ??
here is my code (it's same in .c and .wdl):
if (my.skill1==0) {
if (c_trace(
vector(my.x,my.y,my.z),
vector(my.x,my.y,my.z-0.3),
IGNORE_ME | IGNORE_YOU | IGNORE_PASSABLE |
IGNORE_PASSENTS | IGNORE_MODELS | IGNORE_SPRITES |
IGNORE_CONTENT) !=0 )
{
reset(pr,MOVE);
pr.gravity=0;
x=my.x;
y=my.y;
z=my.z+100;
my.skill1=2;
pr.lifespan=1;
}
}
as you can see, c_trace is ignoring everything except terrain, because of speed ...
any help is appreciated.