Guest User

Untitled

a guest
Oct 20th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 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.perk_purchase_limit = 10;
  64.  
  65. level._zombie_custom_add_weapons =&custom_add_weapons;
  66. level.pack_a_punch_camo_index = 121;
  67. level.pack_a_punch_camo_index_number_variants = 4;
  68.  
  69. //Setup the levels Zombie Zone Volumes
  70. level.zones = [];
  71. level.zone_manager_init_func =&usermap_test_zone_init;
  72. init_zones[0] = "start_zone";
  73. level thread zm_zonemgr::manage_zones( init_zones );
  74.  
  75. level.pathdist_type = PATHDIST_ORIGINAL;
  76. // changing starting points
  77. level.player_starting_points = 5000000000;
  78. }
  79.  
  80. }
  81.  
  82. function usermap_test_zone_init()
  83. {
  84. zm_zonemgr::add_adjacent_zone( "start_zone", "start_zone", "enter_start_zone");
  85. zm_zonemgr::add_adjacent_zone( "start_zone", "zone_1", "enter_zone_1");
  86. zm_zonemgr::add_adjacent_zone( "start_zone", "zone_2", "enter_zone_2");
  87. zm_zonemgr::add_adjacent_zone( "zone_2", "zone_3", "enter_zone_3");
  88. zm_zonemgr::add_adjacent_zone( "zone_3", "zone_4", "enter_zone_4");
  89. zm_zonemgr::add_adjacent_zone( "zone_4", "zone_5", "enter_zone_5");
  90. zm_zonemgr::add_adjacent_zone( "zone_5", "zone_6", "enter_zone_6");
  91. zm_zonemgr::add_adjacent_zone( "zone_5", "zone_4", "enter_zone_4");
  92. zm_zonemgr::add_adjacent_zone( "zone_6", "zone_5", "enter_zone_5");
  93. zm_zonemgr::add_adjacent_zone( "zone_6", "zone_1", "enter_zone_1");
  94. zm_zonemgr::add_adjacent_zone( "zone_1", "zone_6", "enter_zone_6");
  95. zm_zonemgr::add_adjacent_zone( "zone_3", "zone_7", "enter_zone_7");
  96. zm_zonemgr::add_adjacent_zone( "zone_1", "zone_7", "enter_zone_7");
  97. level flag::init( "always_on" );
  98. level flag::set( "always_on" );
  99. }
  100.  
  101. function custom_add_weapons()
  102. {
  103. zm_weapons::load_weapon_spec_from_table("gamedata/weapons/zm/zm_levelcommon_weapons.csv", 1);
  104. }
Advertisement
Add Comment
Please, Sign In to add comment