Advertisement
Chronos_Ouroboros

Untitled

Sep 4th, 2013
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. #library "start"
  2. #include "zcommon.acs"
  3. #include "stralloc.acs"
  4. #include "strcmp.acs"
  5.  
  6. script "Start" ENTER CLIENTSIDE
  7. {
  8. SetFont("SmallFont");
  9. Log(s:"Welcome to Final Duel");
  10. SetFont("BIGFONT");
  11. HudMessage(s:"This mod has custom keys,make sure they're
  12. \n\nbound.
  13. \n\nWarning:This mod needs the game to be at a resolution
  14. \n\nto be 800x600 or higher.";
  15. HUDMSG_TYPEON | HUDMSG_LOG, 80000, CR_RED, 1.5, 0.8, 10.0,
  16. 0.05, 2.0);
  17. }
  18. script "Init" Enter
  19. {
  20.  
  21. }
  22. script "startfd" Enter CLIENTSIDE // Starts everything
  23. {
  24. if(GetCVar("hud_scale") == 1)
  25. {
  26. setfont("BIGFONT");
  27. hudmessage(s:"You must set hud_scale to false,
  28. \n\n or this message will stay here forever.
  29. \n\n Open the console(", k:"toggleconsole", s:" button) and type:";
  30. HUDMSG_FADEINOUT, 0, CR_RED, 0.5, 0.44, 0.1, 0.1, 0.1);
  31.  
  32. hudmessage(s:"HUD_SCALE 0";
  33. HUDMSG_FADEINOUT, 0, CR_GREEN, 0.5, 0.53, 0.1, 0.1, 0.1);
  34. }
  35. delay(1);
  36. restart;
  37. }
  38. // Changes player TID
  39. #define PLAYER_TID_START 1000
  40. script "PTID1" ENTER
  41. {
  42. Thing_ChangeTID(0,PLAYER_TID_START+PlayerNumber());
  43. }
  44. script "PTID2" RESPAWN
  45. {
  46. // Make sure our old dead body doesn't still have our tid
  47. Thing_ChangeTID(PLAYER_TID_START+PlayerNumber(),0);
  48. Thing_ChangeTID(0,PLAYER_TID_START+PlayerNumber());
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement