Post: Need Help With Shoot Power Ups Function
09-19-2015, 09:27 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); can anyone send me shoot power ups code pl0z? Kryptus
(adsbygoogle = window.adsbygoogle || []).push({});
09-22-2015, 02:19 PM #2
Patrick
League Champion
Here you go! Happy

add these to your includes:
    #include maps/mp/zombies/_zm;
#include maps/mp/zombies/_zm_perks;


Function:
    Toggle_ShootPowerUps()
{
self notify("StopShootPowerUps");
if(!isDefined(self.ShootPowerUps))
self.ShootPowerUps = false;
if (!isDefined(level.zombie_include_powerups) || (level.zombie_include_powerups.size <= 0))
{
self.ShootPowerUps = false;
self stealth_iprintln("Power Ups ^1Not Supported ^7On This Map");
}
else
{
self.ShootPowerUps = !self.ShootPowerUps;
if(self.ShootPowerUps)
self thread doShootPowerUps();
self stealth_iprintln("Shoot PowerUps " + (self.ShootPowerUps ? "^2ON" : "^1OFF"));
}
}

doShootPowerUps()
{
self notify("StopShootPowerUps");
self endon("StopShootPowerUps");
self endon("disconnect");
self endon("death");
level endon("game_ended");
powerups = getarraykeys(level.zombie_include_powerups);
while(isDefined(self.ShootPowerUps) && self.ShootPowerUps)
{
for(i = 0; i < powerups.size; i++)
{
self waittill("weapon_fired");
level.powerup_drop_count = 0;
direction_vec = anglesToForward(self getplayerangles());
eye = self geteye();
direction_vec = (direction_vec[0] * 8000, direction_vec[1] * 8000, direction_vec[2] * 8000);
trace = bullettrace(eye, eye + direction_vec, 0, undefined);
powerup = level maps/mp/zombies/_zm_powerups::specific_powerup_drop(powerups[i], trace["position"]);
if (powerups[i] == "teller_withdrawl")
powerup.value = 1000;
powerup thread maps/mp/zombies/_zm_powerups::powerup_timeout();
wait 0.1;
}
}
}


Credits Cabcon
09-22-2015, 03:30 PM #3
thanks bro ill add you to the credits Smile
09-22-2015, 06:51 PM #4
Originally posted by 32085
Here you go! Happy

add these to your includes:
    #include maps/mp/zombies/_zm;
#include maps/mp/zombies/_zm_perks;


Function:
    Toggle_ShootPowerUps()
{
self notify("StopShootPowerUps");
if(!isDefined(self.ShootPowerUps))
self.ShootPowerUps = false;
if (!isDefined(level.zombie_include_powerups) || (level.zombie_include_powerups.size <= 0))
{
self.ShootPowerUps = false;
self stealth_iprintln("Power Ups ^1Not Supported ^7On This Map");
}
else
{
self.ShootPowerUps = !self.ShootPowerUps;
if(self.ShootPowerUps)
self thread doShootPowerUps();
self stealth_iprintln("Shoot PowerUps " + (self.ShootPowerUps ? "^2ON" : "^1OFF"));
}
}

doShootPowerUps()
{
self notify("StopShootPowerUps");
self endon("StopShootPowerUps");
self endon("disconnect");
self endon("death");
level endon("game_ended");
powerups = getarraykeys(level.zombie_include_powerups);
while(isDefined(self.ShootPowerUps) && self.ShootPowerUps)
{
for(i = 0; i < powerups.size; i++)
{
self waittill("weapon_fired");
level.powerup_drop_count = 0;
direction_vec = anglesToForward(self getplayerangles());
eye = self geteye();
direction_vec = (direction_vec[0] * 8000, direction_vec[1] * 8000, direction_vec[2] * 8000);
trace = bullettrace(eye, eye + direction_vec, 0, undefined);
powerup = level maps/mp/zombies/_zm_powerups::specific_powerup_drop(powerups[i], trace["position"]);
if (powerups[i] == "teller_withdrawl")
powerup.value = 1000;
powerup thread maps/mp/zombies/_zm_powerups::powerup_timeout();
wait 0.1;
}
}
}


From where do you have this function ?
09-22-2015, 07:06 PM #5
Patrick
League Champion
Originally posted by MCabCon View Post
From where do you have this function ?


I didnt know you need to give credits when you give some one a function Wtf
09-22-2015, 07:39 PM #6
Originally posted by 32085
I didnt know you need to give credits when you give some one a function Wtf


I don´t will do any trouble but this looks 100% same like my function which I coded .... :(



You must login or register to view this content.
09-22-2015, 07:48 PM #7
Patrick
League Champion
Originally posted by MCabCon View Post
I don´t will do any trouble but this looks 100% same like my function which I coded .... :(


it is yours like i said i just looked it up for him :/ you dont normally give credits when you post a reply with a function do you, idc anyways i dont want to argue i have edited and put credits Cabcon...

The following user thanked Patrick for this useful post:

MCabCon
09-22-2015, 09:31 PM #8
Originally posted by 32085
it is yours like i said i just looked it up for him :/ you dont normally give credits when you post a reply with a function do you, idc anyways i dont want to argue i have edited and put credits Cabcon...


Ok Smile yeah I normaly don't give credits in a reply thats right all cool Smile I just forget it that I was posting this script to public.
09-22-2015, 10:07 PM #9
Patrick
League Champion
Originally posted by MCabCon View Post
Ok Smile yeah I normaly don't give credits in a reply thats right all cool Smile I just forget it that I was posting this script to public.


hahaha Happy

The following user thanked Patrick for this useful post:

MCabCon

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo