6 registered members (rki, Martin_HH, AndrewAMD, squik, Ayumi, alibaba),
1,150
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
c_trace angle and panel problem
#321090
04/27/10 02:55
04/27/10 02:55
|
Joined: Mar 2008
Posts: 45
nigel
OP
Newbie
|
OP
Newbie
Joined: Mar 2008
Posts: 45
|
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; }
|
|
|
Re: c_trace angle and panel problem
[Re: Pappenheimer]
#321535
04/30/10 00:29
04/30/10 00:29
|
Joined: Mar 2008
Posts: 45
nigel
OP
Newbie
|
OP
Newbie
Joined: Mar 2008
Posts: 45
|
|
|
|
|