Guest User

Untitled

a guest
Feb 21st, 2018
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.91 KB | None | 0 0
  1. void () funcdowncall =
  2.    
  3.     {
  4.  
  5.  
  6.  
  7. traceline (self.origin, self.origin + v_forward * 1000, FALSE, self); // Targetting
  8.    
  9. if (trace_ent.flags & FL_MONSTER) // Checks if target is a monster
  10.    
  11.     {
  12.  
  13.     traceline (trace_ent.origin, trace_ent.origin + '0 0 9001', TRUE, trace_ent);
  14.    
  15.     if(pointcontents(trace_endpos) == CONTENT_SKY)
  16.        
  17.         {
  18.  
  19.         centerprint (self, "Target locked! Time to call down the thunder...");
  20.        
  21.         // Kill the dumbass monster sitting out in the middle of nowhere code here
  22.        
  23.         }
  24.     else
  25.         {
  26.         centerprint (self, "Fresh out of visuals today are we?");
  27.         // We have a strict NO NUCLEAR MISSLE AIRSTRIKE policy in this army
  28.         }
  29.  
  30.     }
  31.  
  32.     else if (!(trace_ent.flags & FL_MONSTER))// If there is no monster there in the first place
  33.        
  34.         {
  35.        
  36.         centerprint (self, "As menacing as a wall may be I think you should find a VALID target...");
  37.        
  38.         // There is no monster being targetted
  39.  
  40.         }
  41.  
  42.  
  43.  
  44.     };
Add Comment
Please, Sign In to add comment