Advertisement
Guest User

Untitled

a guest
Jun 17th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. main()
  2. {
  3. SetDvar("g_speed", 250);
  4. SetDvar("g_gravity", 100);
  5. SetDvar("jump_height", 350);
  6. SetDvar("cg_fovscale", 2);
  7.  
  8. thread onSpawn();
  9.  
  10. level.trailfx = loadFX( "smoke/wall_explosion_smoke" );
  11.  
  12. level waittill("round_started");
  13. players = GetEntArray("player","classname");
  14. for(i=0;i<players.size;i++)
  15. {
  16. players[i] Suicide();
  17. players[i] iPrintlnBold("^3WTF are you doing ^9" + players[i].name + "^3?!!!");
  18. players[i] sayAll("I must have been born on the highway because that is where most of the accidents happen...");
  19. }
  20. }
  21.  
  22. onSpawn()
  23. {
  24. while(1)
  25. {
  26. level waittill("player_spawn", player); // Not sure if it's the correct notify we're waiting for #iPod :dave:
  27. player thread giveLoadout();
  28. player thread trail();
  29. player thread welcomehud();
  30. }
  31. }
  32.  
  33. giveLoadout()
  34. {
  35. self TakeAllWeapons();
  36. self GiveWeapon("dildo_gun");
  37. self GiveMaxAmmo("dildo_gun");
  38. wait .01;
  39. self SwitchToWeapon("dildo_gun");
  40. }
  41.  
  42. trail()
  43. {
  44. while( isAlive( self ) )
  45. {
  46. playFX( level.trailfx, self.origin )
  47. wait 0.1;
  48. }
  49. }
  50.  
  51. welcomehud()
  52. {
  53. wait 7;
  54.  
  55. hud_welcome = NewHudElem();
  56. hud_welcome.AlignX = "center";
  57. hud_welcome.AlignY = "middle";
  58. hud_welcome.horzAlign = "center";
  59. hud_welcome.vertAlign = "middle";
  60. hud_welcome.alpha = 1;
  61. hud_welcome.x = 0;
  62. hud_welcome.y = -150;
  63. hud_welcome.font = "objective";
  64. hud_welcome.fontscale = 3;
  65. hud_welcome.glowalpha = 1;
  66. hud_welcome.glowcolor = (1,0,0);
  67. hud_welcome setText( "Welcome to this random ass mod!" ); //feel free to change text - Sentrex
  68. hud_welcome setPulseFX( 100, 4000, 500 );
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement