Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void () funcdowncall =
- {
- traceline (self.origin, self.origin + v_forward * 1000, FALSE, self); // Targetting
- if (trace_ent.flags & FL_MONSTER) // Checks if target is a monster
- {
- traceline (trace_ent.origin, trace_ent.origin + '0 0 9001', TRUE, trace_ent);
- if(pointcontents(trace_endpos) == CONTENT_SKY)
- {
- centerprint (self, "Target locked! Time to call down the thunder...");
- // Kill the dumbass monster sitting out in the middle of nowhere code here
- }
- else
- {
- centerprint (self, "Fresh out of visuals today are we?");
- // We have a strict NO NUCLEAR MISSLE AIRSTRIKE policy in this army
- }
- }
- else if (!(trace_ent.flags & FL_MONSTER))// If there is no monster there in the first place
- {
- centerprint (self, "As menacing as a wall may be I think you should find a VALID target...");
- // There is no monster being targetted
- }
- };
Add Comment
Please, Sign In to add comment