Advertisement
Guest User

Field of View changer

a guest
Feb 1st, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. /*
  2. * Black Ops 2 - GSC Studio by iMCSx
  3. *
  4. * Creator : BlackOpsNinjaa
  5. * Project : Field of View Changer
  6. * Mode : Multiplayer
  7. * Date : 2015.02.01 - 17:30:33
  8. *
  9. */
  10.  
  11. /* Made by Adrian (BlackOpsNinjaa)
  12. * https://www.youtube.com/channel/UC1_-u0cTDAH6kw6ZGHVP3aA
  13. */
  14. #include maps\mp\_utility;
  15. #include common_scripts\utility;
  16. #include maps\mp\gametypes\_hud_util;
  17. #include maps\mp\gametypes\_hud_message;
  18.  
  19. init()
  20. {
  21. level thread onPlayerConnect();
  22. }
  23.  
  24. onPlayerConnect()
  25. {
  26. for(;;)
  27. {
  28. level waittill("connected", player);
  29. player thread onPlayerSpawned();
  30. }
  31. }
  32.  
  33. onPlayerSpawned()
  34. {
  35. self endon("disconnect");
  36. level endon("game_ended");
  37. for(;;)
  38. {
  39. self waittill("spawned_player");
  40.  
  41. // Will appear each time when the player spawn, that's just an exemple.
  42.  
  43. //Setting the actual FOV:
  44.  
  45. setDvar("cg_fov", 120);
  46.  
  47. //Display a message showing that the fov was changed to 120
  48.  
  49. self iprintln("Field of View changed to 120");
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement