Advertisement
Guest User

For Wakka

a guest
Oct 27th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. #using scripts\codescripts\struct;
  2.  
  3. #using scripts\shared\array_shared;
  4. #using scripts\shared\callbacks_shared;
  5. #using scripts\shared\clientfield_shared;
  6. #using scripts\shared\compass;
  7. #using scripts\shared\exploder_shared;
  8. #using scripts\shared\flag_shared;
  9. #using scripts\shared\laststand_shared;
  10. #using scripts\shared\math_shared;
  11. #using scripts\shared\scene_shared;
  12. #using scripts\shared\util_shared;
  13.  
  14. #insert scripts\shared\shared.gsh;
  15. #insert scripts\shared\version.gsh;
  16.  
  17. #insert scripts\zm\_zm_utility.gsh;
  18.  
  19. #using scripts\zm\_load;
  20. #using scripts\zm\_zm;
  21. #using scripts\zm\_zm_audio;
  22. #using scripts\zm\_zm_powerups;
  23. #using scripts\zm\_zm_utility;
  24. #using scripts\zm\_zm_weapons;
  25. #using scripts\zm\_zm_zonemgr;
  26.  
  27. #using scripts\shared\ai\zombie_utility;
  28.  
  29. //Perks
  30. #using scripts\zm\_zm_pack_a_punch;
  31. #using scripts\zm\_zm_pack_a_punch_util;
  32. #using scripts\zm\_zm_perk_additionalprimaryweapon;
  33. #using scripts\zm\_zm_perk_doubletap2;
  34. #using scripts\zm\_zm_perk_deadshot;
  35. #using scripts\zm\_zm_perk_juggernaut;
  36. #using scripts\zm\_zm_perk_quick_revive;
  37. #using scripts\zm\_zm_perk_sleight_of_hand;
  38. #using scripts\zm\_zm_perk_staminup;
  39.  
  40. //Powerups
  41. #using scripts\zm\_zm_powerup_double_points;
  42. #using scripts\zm\_zm_powerup_carpenter;
  43. #using scripts\zm\_zm_powerup_fire_sale;
  44. #using scripts\zm\_zm_powerup_free_perk;
  45. #using scripts\zm\_zm_powerup_full_ammo;
  46. #using scripts\zm\_zm_powerup_insta_kill;
  47. #using scripts\zm\_zm_powerup_nuke;
  48. //#using scripts\zm\_zm_powerup_weapon_minigun;
  49.  
  50. //Traps
  51. #using scripts\zm\_zm_trap_electric;
  52.  
  53. #using scripts\zm\zm_usermap;
  54.  
  55. //*****************************************************************************
  56. // MAIN
  57. //*****************************************************************************
  58.  
  59. function main()
  60. {
  61. zm_usermap::main();
  62.  
  63. level._zombie_custom_add_weapons =&custom_add_weapons;
  64.  
  65. //Setup the levels Zombie Zone Volumes
  66. level.zones = [];
  67. level.zone_manager_init_func =&usermap_test_zone_init;
  68. init_zones[0] = "start_zone";
  69. level thread zm_zonemgr::manage_zones( init_zones );
  70.  
  71. level.pathdist_type = PATHDIST_ORIGINAL;
  72. }
  73.  
  74. function usermap_test_zone_init()
  75. {
  76.  
  77. level flag::init( "always_on" );
  78. level flag::set( "always_on" );
  79.  
  80. // To Zone2 from start_zone
  81. zm_zonemgr::add_adjacent_zone( "start_zone", "zone2", "enter_zone2" );
  82.  
  83.  
  84. // To SZ_side from start zone
  85. zm_zonemgr::add_adjacent_zone( "start_zone", "start_zone_side", "enter_start_zone_side" );
  86.  
  87. // From SZ_side to zone 2
  88. zm_zonemgr::add_adjacent_zone( "start_zone_side", "zone2", "enter_zone_2" );
  89.  
  90. // To SZ_side from Zone 2
  91. zm_zonemgr::add_adjacent_zone( "zone2", "start_zone_side", "enter_sz_side_from2" );
  92.  
  93. // To Zone3 from start_zone
  94. zm_zonemgr::add_adjacent_zone( "start_zone", "zone3", "enter_zone3" );
  95.  
  96. // To SZ_side from start zone
  97. zm_zonemgr::add_adjacent_zone( "start_zone", "start_zone_side", "enter_start_zone_side" );
  98.  
  99. // From SZ_side to zone3
  100. zm_zonemgr::add_adjacent_zone( "start_zone_side", "zone3", "enter_zone_3" );
  101.  
  102. // To SZ_side from zone3
  103. zm_zonemgr::add_adjacent_zone( "zone3", "start_zone_side", "enter_sz_side_from3" );
  104.  
  105. // To Zone4 from start_zone
  106. zm_zonemgr::add_adjacent_zone( "start_zone", "zone4", "enter_zone4" );
  107.  
  108. // To SZ_side from start zone
  109. zm_zonemgr::add_adjacent_zone( "start_zone", "start_zone_side", "enter_start_zone_side" );
  110.  
  111. // From SZ_side to zone4
  112. zm_zonemgr::add_adjacent_zone( "start_zone_side", "zone4", "enter_zone_4" );
  113.  
  114. // To SZ_side from zone4
  115. zm_zonemgr::add_adjacent_zone( "zone3", "start_zone_side", "enter_sz_side_from4" );
  116.  
  117. }
  118.  
  119. function custom_add_weapons()
  120. {
  121. zm_weapons::load_weapon_spec_from_table("gamedata/weapons/zm/zm_levelcommon_weapons.csv", 1);
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement