vec_set(vTargetPos.x,vector(vTraceLength,0,0)); //set up a position in front of the projector vec_rotate(vTargetPos.x,my.pan); vec_add(vTargetPos.x,my.x);
if(HIT_TARGET) // found an obstacle { PARTICLE* p = ent_decal(you, bmpDecal, my._SIZE, my._ANGEL); // place a decal at the hit position p.material = mat_model; // set default model material to decal if(my._ALPHA != 0) // set transparency { set(p, TRANSLUCENT); p.alpha = my._ALPHA; } } wait(1); }