Post: [Release] Just A Few Codes...
05-19-2011, 07:36 PM #1
coolbunny1234
the bunny who started it all
(adsbygoogle = window.adsbygoogle || []).push({}); I will update this periodically.

Pack-a-Punch w/ Animation and All
    
dopack()
{
level thread add_zombie_hint( "Jello", "Press & Hold &&1 To Buy Pack 'a' Punch Upgrade [Cost:25]" );
trig = spawn("trigger_radius", (-51.6247,-192.925,-2.875);
trig SetCursorHint( "HINT_NOICON" );
trig UseTriggerRequireLookAt();
trig set_hint_string( trig, "Jello" );
for(;Winky Winky
{
trig waittill("trigger", player);
if(player UseButtonPressed())
{
weap = player getCurrentWeapon();
if( player.upw[weap] != 1 )
{
cost = 25;
if( player.score >= cost )
{
player playsound( "cha_ching" );
player.zombie_cost = 25;
player.score -= 25;
player takeWeapon(player getCurrentWeapon());
player freezeControls(true);
player playsound( "packa_weap_upgrade" );

player DisableOffhandWeapons();
player DisableWeaponCycling();

player AllowLean( false );
player AllowAds( false );
player AllowSprint( false );
player AllowProne( false );
player AllowMelee( false );

if ( player GetStance() == "prone" )
{
player SetStance( "crouch" );
}

player giveWeapon( "zombie_knuckle_crack" );
player switchToWeapon( "zombie_knuckle_crack" );

wait 3;

player EnableOffhandWeapons();
player EnableWeaponCycling();

player AllowLean( true );
player AllowAds( true );
player AllowSprint( true );
player AllowProne( true );
player AllowMelee( true );

player playsound( "packa_weap_ready" );
player.upw[weap] = 1;
player freezeControls(false);
player takeWeapon( "zombie_knuckle_crack" );
player giveWeapon( weap, 0, false );
player switchToWeapon( weap, 0, false );
player thread updFTW( weap );
}
else
{
player playsound( "deny" );
player iPrintlnBold("^7Not enough points");
wait 1;
}
}
else
{
player playsound( "deny" );
player iPrintlnBold("^1This is already Upgraded!");
wait 1;
}
}
}
wait 0.05;
}


Purchase Perks
    
PurchasePerks()
{
weap = self GetCurrentWeapon();
self.give_perks_over = false;
self thread Give_Perks( "specialty_rof", "zombie_perk_bottle_doubletap" );
self waittill( "ready" );
self thread Give_Perks( "specialty_armorvest", "zombie_perk_bottle_jugg" );
self waittill( "ready" );
self thread Give_Perks( "specialty_quickrevive", "zombie_perk_bottle_revive" );
self waittill( "ready" );
self thread Give_Perks( "specialty_fastreload", "zombie_perk_bottle_sleight" );
self waittill( "ready" );
self SwitchToWeapon( weap );
}



Give_Perks( Perk, Perk_Bottles )
{
playsoundatposition( "bottle_dispense3d", self.origin );

self DisableOffhandWeapons();
self DisableWeaponCycling();

self AllowLean( false );
self AllowAds( false );
self AllowSprint( false );
self AllowProne( false );
self AllowMelee( false );

wait( 0.05 );

if ( self GetStance() == "prone" )
{
self SetStance( "crouch" );
}

weapon = Perk_Bottle;
self SetPerk( Perk );

self GiveWeapon( weapon );
self SwitchToWeapon( weapon );

self waittill( "weapon_change_complete" );

self EnableOffhandWeapons();
self EnableWeaponCycling();

self AllowLean( true );
self AllowAds( true );
self AllowSprint( true );
self AllowProne( true );
self AllowMelee( true );

self TakeWeapon( weapon );
self notify( "ready" );
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to coolbunny1234 for this useful post:

.Kane., Dreamcather, Karoolus, Mr__Shalemari, Mr.Azoz, xxshredgnarxx
05-19-2011, 08:05 PM #2
Dreamcather
Call me Eddie Winky Winky
Cool Modz CoolBunny Smile
05-19-2011, 09:41 PM #3
Karoolus
I'm the W@W Menu Guy !
had my own scripts for these but thx anyway Smile
05-20-2011, 09:08 PM #4
coolbunny1234
the bunny who started it all
Originally posted by Karoolus View Post
had my own scripts for these but thx anyway Smile


Anytime man.

The following 3 users say thank you to coolbunny1234 for this useful post:

.Kane., Karoolus, Mr.Azoz
05-23-2011, 01:23 PM #5
xxshredgnarxx
Treasure hunter
nice man thanks for this
05-31-2011, 02:08 AM #6
coolbunny1234
the bunny who started it all
Updating soon.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo