Hey,

And no the title is not from a new book or such grin , it is a problem that I have with the c_scan function in one of my current projects (fps game).

I create a missile in the form of a disk. I want to give this disk explosion damage but only a circular zone (not in a sphere), so I do the following c_scan:

Code:
if (c_scan(my.x, my.pan, vector(360, 0, 150), SCAN_ENTS | IGNORE_ME | IGNORE_FLAG2 | IGNORE_PASSABLE | IGNORE_WORLD) > 0)
{
....
}



The missile's roll is 0.

The thing is that this checks in a sphere and not in a circular zone relative to the missile's angle for some reason. I tested it several times with large groups of enemies.

Maybe important the mention is that it is a big world in x,y,z coordinates (every is scaled a lot). Could something like that be it? That the large world coordinates messes with a maximum amount of a variable or something like that? Or, perhaps more likely, I am just making a stupid mistake here? Or something else?

Thanks.

Last edited by rayp; 09/02/14 17:23. Reason: changed title, wished by starter