Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
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 753 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 Online
      G0LD3N 4RMundefined Online
      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 on

        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