two questions:
one, i want to c_trace to where the camera is facing, angles and everything, how would I code this?
c_trace((camera.x,camera.pan,camera.tilt),vector(forward?),IGNORE_ME | IGNORE_PASSABLE)??
two, I've been using a panel as crosshairs for a sniper whenever I zoom, it's been working fine but recently i added a model with the mtl_mirrorWater material attached and now the crosshair panel doesn't show up when i zoom. any ideas?
in order: water action, panel statement, panel action coding
action water()
{
my.material = mtl_mirrorWater;
}
BMAP* scope_jpg = "scopeshell.bmp";
PANEL* scope =
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = scope_jpg;
flags = SHOW | OVERLAY | LIGHT | TRANSLUCENT;
}
if(zoom == 40)
{
scope.alpha = 100;
}
else
{
scope.alpha = 0;
}