Advertisement
Guest User

Shootable Easter Egg - Black Ops 3 Zombies

a guest
Nov 13th, 2016
1,976
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.47 KB | None | 0 0
  1. //Section 0-----Start
  2. //Section Title: Directions of Use
  3. //Locate your mapname.gsc and add this code accordingly.
  4. //Please follow this video for instruction: https://youtu.be/qKFMmCTjv-k
  5. //Section 0-----End
  6.  
  7. //Section A-----Start
  8. //Section Title: Thread Name
  9. //Put this Section in Main() (at the bottom prefably)
  10. thread eeDoor();
  11. //Section A-----End
  12.  
  13. //Section B-----Start
  14. //Section Title: Function Code
  15. //PUT this section at the very end of your script
  16. function eeDoor()
  17. {
  18.     level.itemsRequired = 3; //change to number of shootable objects
  19.     level.itemsCollected = 0;
  20.     level thread item1();
  21.     level thread item2();
  22.     level thread item3();
  23.     //Add additional items here
  24. }
  25.  
  26. function item1()
  27. {
  28.     trig1 = GetEnt("ee_trig1", "targetname");
  29.     obj1 = GetEnt("ee_obj1", "targetname");
  30.     trig1 SetHintString("");
  31.     trig1 SetCursorHint("HINT_NOICON");
  32.     while(1)
  33.     {
  34.         trig1 waittill("trigger", player);
  35.         level.itemsCollected++;
  36.         thread eeCheckDone(player);
  37.         break;
  38.     }
  39.     trig1 Delete();
  40.     obj1 Delete();
  41. }
  42.  
  43. function item2()
  44. {
  45.     trig2 = GetEnt("ee_trig2", "targetname");
  46.     obj2 = GetEnt("ee_obj2", "targetname");
  47.     trig2 SetHintString("");
  48.     trig2 SetCursorHint("HINT_NOICON");
  49.     while(1)
  50.     {
  51.         trig2 waittill("trigger", player);
  52.         level.itemsCollected++;
  53.         thread eeCheckDone(player);
  54.         break;
  55.     }
  56.     trig2 Delete();
  57.     obj2 Delete();
  58. }
  59.  
  60. function item3()
  61. {
  62.     trig3 = GetEnt("ee_trig3", "targetname");
  63.     obj3 = GetEnt("ee_obj3", "targetname");
  64.     trig3 SetHintString("");
  65.     trig3 SetCursorHint("HINT_NOICON");
  66.     while(1)
  67.     {
  68.         trig3 waittill("trigger", player);
  69.         level.itemsCollected++;
  70.         thread eeCheckDone(player);
  71.         break;
  72.     }
  73.     trig3 Delete();
  74.     obj3 Delete();
  75. }
  76.  
  77. function eeCheckDone(player)
  78. {
  79.     while(1)
  80.     {
  81.         self waittill(level.shootablesCollected >= level.itemsRequired);
  82.         if(level.itemsCollected == level.itemsRequired)
  83.         {
  84.             //self playlocalsound( level.zmb_laugh_alias ); Not working atm
  85.             objDoor = GetEnt("ee_door", "targetname");
  86.             objDoor Delete();
  87.             objDoor = GetEnt("ee_door2", "targetname");
  88.             objDoor Delete();
  89.             objClip = GetEnt("ee_clip", "targetname");
  90.             objClip Delete();
  91.         }
  92.         break;
  93.     }
  94. }
  95. //Section B-----End
  96.  
  97. //Modified by Ice_Grenade
  98. //Original Source: http://pastebin.com/AEW7U3R4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement