Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #using scripts\codescripts\struct;
- #using scripts\shared\callbacks_shared;
- #using scripts\shared\system_shared;
- #insert scripts\shared\shared.gsh;
- #using scripts\zm\_zm;
- #using scripts\zm\_zm_weapons;
- //*****************************************************************************
- // MAIN
- //*****************************************************************************
- function init()
- {
- level.zcmap = "No";
- level.loopworked = "No";
- currentMap = tolower(GetDvarString("mapname"));
- callback::on_spawned( &debug );
- if(currentMap!="zm_zod"&¤tMap!="zm_tomb") {
- weapon = getWeapon("pistol_m1911");
- level.start_weapon = (weapon);
- level.default_laststandpistol = GetWeapon("pistol_m1911");
- level.default_solo_laststandpistol = GetWeapon("pistol_m1911");
- level.laststandpistol = level.default_laststandpistol;
- }
- zcmaps = [];
- zcmaps[zcmaps.size] = "zm_prototype";
- zcmaps[zcmaps.size] = "zm_asylum";
- zcmaps[zcmaps.size] = "zm_sumpf";
- zcmaps[zcmaps.size] = "zm_theater";
- zcmaps[zcmaps.size] = "zm_cosmodrome";
- zcmaps[zcmaps.size] = "zm_temple";
- zcmaps[zcmaps.size] = "zm_moon";
- zcmaps[zcmaps.size] = "zm_tomb";
- isazcmap = false;
- for(m = 0; m < zcmaps.size; m++) {
- if(currentMap==zcmaps[m]) {
- isazcmap = true;
- level.zcmap = "Yes";
- break;
- }
- }
- if(isazcmap===false) {
- weapon_spawns = struct::get_array( "weapon_upgrade", "targetname" );
- for( i = 0; i < weapon_spawns.size; i ++ )
- {
- if( weapon_spawns[i].zombie_weapon_upgrade == "smg_fastfire" )
- {
- level.loopworked = "Yes";
- weapon_spawns[i].zombie_weapon_upgrade = "pistol_standard";
- }
- }
- }
- }
- function debug() {
- wait(5);
- iprintln("ZC: "+level.zcmap+" LOOP: "+level.loopworked);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement