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!
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;
}
}
}


️ Important Limitation