Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Super sprinters wont go threw barricades

Super sprinters wont go threw barricades

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
1 Posts 1 Posters 167 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ytjusteliundefined Offline
    ytjusteliundefined Offline
    ytjusteli
    wrote on last edited by
    #1

    I looked everywhere for a fix for this but I couldn't find any fix. could someone please help

    #include maps\mp\gametypes\_hud_util;
    #include maps\mp\_utility;
    #include common_scripts\utility;
    #include maps\mp\zombies\_zm_utility; 
    #include maps\mp\gametypes\_hud_message;
    #include maps\mp\zombies\_zm_weapons;
    #include maps\mp\zombies\_zm_perks;
    
    
    init() {
    	level thread onPlayerConnect();
    }
    
    onPlayerConnect() {
    	for (;;) {
    		level waittill("connected", player);
    
    		level thread levelMain();
    		player thread onPlayerSpawned();
    		player thread playerHud();
    	}
    }
    
    onPlayerSpawned() {
    	for (;;) {
    		self waittill("spawned_player");
    		self thread clientMain();
    	}
    }
    
    playerHud() {
    	self endon("disconnect");
        level endon("game_ended");	
        flag_wait( "initial_blackscreen_passed" );
        rampage_text = create_simple_hud(self); //rampage text
       	rampage_text.horzAlign = "left";
       	rampage_text.vertAlign = "top";
       	rampage_text.alignX = "left";
       	rampage_text.alignY = "top";
       	rampage_text.y = 5;
       	rampage_text.x = -1;
       	rampage_text.foreground = 1;
       	rampage_text.fontscale = 1;
       	rampage_text.alpha = 1;
       	for(;;) {
       		if (level.on) {
        		rampage_text SetText("Rampage Inducer: On");
       		} else {
        		rampage_text SetText("Rampage Inducer: Off");
        	}
        	wait 0.025;	
       	}
    }
    
    levelMain() {
    	level.on = false;
    	recent = false;
    	change = false;
    
    	for(;;) {
    		zombies = getAiArray(level.zombie_team);
    		if (level.on != recent) {
    			recent = level.on;
    			change = true;
    			if (level.on != true) {
    				IPrintLnBold("false");
    			} else {
    				IPrintLnBold("true");
    			}
    		}
    		foreach (zombie in zombies) {
    			if (level.on) {
    				zombie.zombie_move_speed = "super_sprint";	
    			} else {
    				zombie.zombie_move_speed = "sprint";
    			}
    		}
    		wait 0.25;
    	}
    }
    
    clientMain() {
    	level endon("end_game");
    	self endon("disconnect");
    	on = false;
    	for (;;) {
    		while (self AdsButtonPressed()) {
    			if (self MeleeButtonPressed()) {
    				duration = 0;
    				while (self MeleeButtonPressed()) {
    					duration += 1;
    					if (duration == 5) {
    						if (level.on == true) {
    							level.on = false;
    						} else {
    							level.on = true;
    						}
    					}
    					wait 0.5;
    				}
    			}
    			wait 0.5;
    		}
    		wait 0.5;
    	}
    }
    
    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Unread 0
    • Recent
    • Tags
    • Popular
    • Users
    • Groups