Advertisement
Guest User

GSC

a guest
Jun 17th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. #using scripts\codescripts\struct;
  2.  
  3. #using scripts\shared\callbacks_shared;
  4. #using scripts\shared\system_shared;
  5.  
  6. #insert scripts\shared\shared.gsh;
  7.  
  8.  
  9. #using scripts\zm\_zm;
  10.  
  11. #using scripts\zm\_zm_weapons;
  12.  
  13.  
  14. //*****************************************************************************
  15. // MAIN
  16. //*****************************************************************************
  17.  
  18. function init()
  19. {
  20. level.zcmap = "No";
  21. level.loopworked = "No";
  22. currentMap = tolower(GetDvarString("mapname"));
  23. callback::on_spawned( &debug );
  24. if(currentMap!="zm_zod"&&currentMap!="zm_tomb") {
  25. weapon = getWeapon("pistol_m1911");
  26. level.start_weapon = (weapon);
  27. level.default_laststandpistol = GetWeapon("pistol_m1911");
  28. level.default_solo_laststandpistol = GetWeapon("pistol_m1911");
  29. level.laststandpistol = level.default_laststandpistol;
  30. }
  31.  
  32. zcmaps = [];
  33. zcmaps[zcmaps.size] = "zm_prototype";
  34. zcmaps[zcmaps.size] = "zm_asylum";
  35. zcmaps[zcmaps.size] = "zm_sumpf";
  36. zcmaps[zcmaps.size] = "zm_theater";
  37. zcmaps[zcmaps.size] = "zm_cosmodrome";
  38. zcmaps[zcmaps.size] = "zm_temple";
  39. zcmaps[zcmaps.size] = "zm_moon";
  40. zcmaps[zcmaps.size] = "zm_tomb";
  41. isazcmap = false;
  42. for(m = 0; m < zcmaps.size; m++) {
  43. if(currentMap==zcmaps[m]) {
  44. isazcmap = true;
  45. level.zcmap = "Yes";
  46. break;
  47. }
  48. }
  49.  
  50. if(isazcmap===false) {
  51. weapon_spawns = struct::get_array( "weapon_upgrade", "targetname" );
  52. for( i = 0; i < weapon_spawns.size; i ++ )
  53. {
  54. if( weapon_spawns[i].zombie_weapon_upgrade == "smg_fastfire" )
  55. {
  56. level.loopworked = "Yes";
  57. weapon_spawns[i].zombie_weapon_upgrade = "pistol_standard";
  58. }
  59. }
  60. }
  61. }
  62.  
  63. function debug() {
  64. wait(5);
  65. iprintln("ZC: "+level.zcmap+" LOOP: "+level.loopworked);
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement