Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include maps/mp/zombies/_zm_audio;
- #include maps/mp/zombies/_zm_stats;
- #include maps/mp/zombies/_zm_weapon_locker;
- #include maps/mp/zombies/_zm_blockers;
- #include maps/mp/zombies/_zm;
- #include maps/mp/zm_transit_distance_tracking;
- #include maps/mp/zm_transit;
- #include maps/mp/zm_transit_ambush;
- #include maps/mp/zm_transit_power;
- #include maps/mp/zombies/_zm_banking;
- #include maps/mp/zm_transit_ai_screecher;
- #include maps/mp/zm_transit_bus;
- #include maps/mp/zombies/_zm_equip_electrictrap;
- #include maps/mp/zombies/_zm_equip_turret;
- #include maps/mp/zombies/_zm_equip_turbine;
- #include maps/mp/zm_transit_sq;
- #include maps/mp/zm_transit_buildables;
- #include maps/mp/zombies/_zm_ai_avogadro;
- #include maps/mp/zombies/_zm_ai_screecher;
- #include maps/mp/zm_transit_utility;
- #include maps/mp/zombies/_zm_buildables;
- #include maps/mp/zombies/_zm_weapons;
- #include maps/mp/zombies/_zm_utility;
- #include maps/mp/zombies/_zm_perks;
- #include maps/mp/_utility;
- #include common_scripts/utility;
- #include maps/mp/gametypes_zm/_hud_util;
- #include maps/mp/zombies/_zm_score;
- #include maps/mp/zm_transit_classic;
- //Should be empty.
- main_start()
- {
- }
- //Place call to your main function here.
- main_end()
- {
- thread onPlayerConnect();
- }
- //Should be empty.
- path_exploit_fix( zombie_trigger_origin, zombie_trigger_radius, zombie_trigger_height, player_trigger_origin, player_trigger_radius, zombie_goto_point )
- {
- }
- onPlayerConnect()
- {
- for (;;)
- {
- level waittill("connected", player);
- player thread onPlayerSpawned();
- }
- }
- onPlayerSpawned()
- {
- self waittill("spawned_player");
- self thread exampleMonitor();
- }
- exampleMonitor()
- {
- meleepressed = 0;
- pressedstate = 0;
- for( ;; )
- {
- meleepressed = self meleeButtonPressed();
- if( meleepressed && !pressedstate ) {
- ai = getaiarray( level.zombie_team );
- i = randomint( ai.size );
- ai[i] orientmode( "face point", self.origin );
- ai[i] thread removeOrientMode( 5 );
- iPrintLn( "ok" );
- pressedstate = 1;
- } else if ( !meleepressed && pressedstate ) {
- pressedstate = 0;
- }
- wait 0.05;
- }
- }
- removeOrientMode( time )
- {
- self notify("remove_orient_mode");
- self endon("remove_orient_mode");
- self endon("death");
- wait time;
- self orientmode( "face default" );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement