484 {
485 vector ref_pos;
486 vector ref_dir;
487 vector cam_dir =
g_Game.GetCurrentCameraDirection();
488
489 if ( MemoryPointExists( selection ) )
490 {
491 ref_pos = ModelToWorld( GetMemoryPointPos( selection ) );
493
495 ref_dir[1] = 0;
496
497 cam_dir[1] = 0;
498
499 if ( ref_dir.
Length() > 0.5 )
500 {
501 float dot = vector.Dot( cam_dir, ref_dir );
502
503 if ( dot < 0 )
504 {
505 return true;
506 }
507 }
508 }
509
510 return false;
511 }
proto native float Length()
Returns length of vector (magnitude)
proto float Normalize()
Normalizes vector. Returns length.
vector GetPosition()
Get the world position of the Effect.