Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // to be run in postthink??
- void () TheQuestion =
- {
- local float = num;
- sprint(self.owner, #PRINT_LOW, "Are you ready to play?\n");
- num = ResponseTest();
- if(!num) return;
- if (num == 1)
- sprint(self.owner, #PRINT_LOW, "Prepare for battle!\n");
- else
- if (num == 2)
- sprint(self.owner, #PRINT_LOW, "Get lost then, wimp.\n");
- };
- float () ResponseTest =
- {
- // get the difference between where we *were* looking and where we *are* looking.
- deriv = self.angles - self.old_angles;
- // if we have a deriv value (not sure why we wouldnt..?)
- // AND where we are looking is not where we *were* looking
- if (deriv && derive != self.old_deriv)
- {
- if ( we have looked up and down /moved the mouse up and down in the last second)
- return 1;
- else
- if ( we have looked left and right /moved the mouse left and right in the last second)
- return 2;
- else
- return 0;
- };
Add Comment
Please, Sign In to add comment