Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #using scripts\codescripts\struct;
- #using scripts\shared\array_shared;
- #using scripts\shared\callbacks_shared;
- #using scripts\shared\clientfield_shared;
- #using scripts\shared\compass;
- #using scripts\shared\exploder_shared;
- #using scripts\shared\flag_shared;
- #using scripts\shared\laststand_shared;
- #using scripts\shared\math_shared;
- #using scripts\shared\scene_shared;
- #using scripts\shared\util_shared;
- #insert scripts\shared\shared.gsh;
- #insert scripts\shared\version.gsh;
- #insert scripts\zm\_zm_utility.gsh;
- #using scripts\zm\_load;
- #using scripts\zm\_zm;
- #using scripts\zm\_zm_audio;
- #using scripts\zm\_zm_powerups;
- #using scripts\zm\_zm_utility;
- #using scripts\zm\_zm_weapons;
- #using scripts\zm\_zm_zonemgr;
- #using scripts\shared\ai\zombie_utility;
- //Perks
- #using scripts\zm\_zm_pack_a_punch;
- #using scripts\zm\_zm_pack_a_punch_util;
- #using scripts\zm\_zm_perk_additionalprimaryweapon;
- #using scripts\zm\_zm_perk_doubletap2;
- #using scripts\zm\_zm_perk_deadshot;
- #using scripts\zm\_zm_perk_juggernaut;
- #using scripts\zm\_zm_perk_quick_revive;
- #using scripts\zm\_zm_perk_sleight_of_hand;
- #using scripts\zm\_zm_perk_staminup;
- #using scripts\zm\zm_usermap;
- //*****************************************************************************
- // MAIN
- //*****************************************************************************
- function init()
- {
- level._zombie_custom_add_weapons =&custom_add_weapons;
- currentMap = tolower(GetDvarString("mapname"));
- if(currentMap!="zm_zod"&¤tMap!="zm_factory"&¤tMap!="zm_castle"&¤tMap!="zm_swamp"&¤tMap!="zm_stalingrad"&¤tMap!="zm_genesis"&¤tMap!="zm_tomb") {
- weapon = getWeapon("pistol_burst");
- level.start_weapon = (weapon);
- level.default_laststandpistol = GetWeapon("pistol_burst");
- level.default_solo_laststandpistol = GetWeapon("pistol_burst");
- level.laststandpistol = level.default_laststandpistol;
- }
- }
- function custom_add_weapons()
- {
- zm_weapons::load_weapon_spec_from_table("gamedata/weapons/zm/zm_ppsh_pizza.csv", 1);
- }
- //BO2 Deathhands Animation
- function bo2_deathhands()
- {
- self thread giveDeathHands();
- }
- function giveDeathHands()
- {
- level waittill( "intermission" );
- self thread player1_deathhands();
- self thread player2_deathhands();
- self thread player3_deathhands();
- self thread player4_deathhands();
- }
- function func_giveWeapon(weapon)
- {
- self TakeWeapon(self GetCurrentWeapon());
- weapon = getWeapon(weapon);
- self GiveWeapon(weapon);
- self GiveMaxAmmo(weapon);
- self SwitchToWeapon(weapon);
- }
- function player1_deathhands() //Dempsey
- {
- players = GetPlayers();
- player_1 = players[0];
- if ( self.playername == ""+player_1.playername+"" )
- {
- self func_giveWeapon("bo2_deathhands");
- }
- }
- function player2_deathhands() //Nikolai
- {
- players = GetPlayers();
- player_2 = players[1];
- if ( self.playername == ""+player_2.playername+"" )
- {
- self func_giveWeapon("bo2_deathhands");
- }
- }
- function player3_deathhands() //Richtofen
- {
- players = GetPlayers();
- player_3 = players[2];
- if ( self.playername == ""+player_3.playername+"" )
- {
- self func_giveWeapon("bo2_deathhands");
- }
- }
- function player4_deathhands() //Takeo
- {
- players = GetPlayers();
- player_4 = players[3];
- if ( self.playername == ""+player_4.playername+"" )
- {
- self func_giveWeapon("bo2_deathhands");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement