Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] [ZM] “Stim Shot” Movement Script

[Release] [ZM] “Stim Shot” Movement Script

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
3 Posts 3 Posters 619 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.
  • Coronavirus-19undefined Offline
    Coronavirus-19undefined Offline
    Coronavirus-19
    wrote on last edited by Coronavirus-19
    #1

    This script adds a stim-shot–style movement boost to Black Ops 2 Zombies using pure GSC, no hooks or engine mods required.

    By double-tapping the sprint button, the player temporarily equips a hidden consumable (syrette_zm) that:
    • Plays the injection animation
    • Grants a temporary walk/run speed boost
    • Automatically removes itself after the animation finishes
    • Restores the player’s original weapon afterward

    🎮 Controls
    • Double-tap Sprint → Activate stim boost
    • Speed boost automatically ends when the animation finishes!

    Download | Video

    Raw Code:

    #include maps\mp\_utility;
    
    init()
    {
        level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
        for (;;)
        {
            level waittill("connected", player);
            player thread heroinListener();
        }
    }
    
    heroinListener()
    {
        self endon("disconnect");
        self endon("death");
    
        lastPressTime = 0;
        sprintHeld = false;
    
        normalSpeed = 1.0;
        boostSpeed  = 1.5; // Adjust as needed
    
        for (;;)
        {
            wait 0.05;
    
            // Detect NEW sprint press (edge detection)
            if ( self sprintbuttonpressed() )
            {
                if ( !sprintHeld )
                {
                    sprintHeld = true;
                    currentTime = getTime();
    
                    // Double-tap window (300 ms)
                    if ( currentTime - lastPressTime <= 300 )
                    {
                        currentWeapon = self getCurrentWeapon();
    
                        // Give consumable
                        self giveWeapon("syrette_zm");
                        self switchToWeapon("syrette_zm");
    
                        // Apply speed boost
                        self setMoveSpeedScale(boostSpeed);
    
                        // Let animation play
                        wait 2;
    
                        // Remove consumable
                        self takeWeapon("syrette_zm");
    
                        // Remove speed boost
                        self setMoveSpeedScale(normalSpeed);
    
                        // Restore previous weapon
                        if ( isDefined(currentWeapon) )
                        {
                            self switchToWeapon(currentWeapon);
                        }
    
                        lastPressTime = 0;
                        wait 0.3;
                    }
                    else
                    {
                        lastPressTime = currentTime;
                    }
                }
            }
            else
            {
                // Button released → allow next tap
                sprintHeld = false;
            }
        }
    }
    
    
    1 Reply Last reply
    2
    • G0LD3N 4RMundefined Offline
      G0LD3N 4RMundefined Offline
      G0LD3N 4RM
      wrote on last edited by
      #2

      Pretty cool, I can see it being used alongside Who's Who in the clone phase.

      1 Reply Last reply
      1
      • Decundefined Offline
        Decundefined Offline
        Dec
        Contributor
        wrote on last edited by
        #3

        goated asf i needed something like this!

        1 Reply Last reply
        2
        • Astrooleanundefined Astroolean referenced this topic
        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
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Donate