Post: Shoot PowerUps and Force PowerUps script
07-25-2015, 10:02 PM #1
Xx-GIPPI-xX
Modding Passion
(adsbygoogle = window.adsbygoogle || []).push({}); Hi to all
What is the proper script for Shoot PowerUps and Force PowerUps ???:(

Thanks in advance to all answer.....
07-26-2015, 06:38 AM #2
Adrian
Adrian is back!
Originally posted by xX View Post
Hi to all
What is the proper script for Shoot PowerUps and Force PowerUps ???:(

Thanks in advance to all answer.....


What you mean by Shoot Powerups and Force Powerups, is this something to do with GSC?
07-26-2015, 09:07 AM #3
Xx-GIPPI-xX
Modding Passion
yes...
07-26-2015, 09:26 AM #4
Adrian
Adrian is back!
Originally posted by xX View Post
yes...


Ok man, its just that there is a section for GSC questions, i am sure the thread will be moved there soon.
07-26-2015, 09:50 AM #5
Xx-GIPPI-xX
Modding Passion
you help me????
07-26-2015, 05:58 PM #6
Here my Shoot Power Ups function from myYou must login or register to view this content.


    
// do this in init()
/*

#include maps/mp/zombies/_zm;
#include maps/mp/zombies/_zm_perks;

*/


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 NzV and CabCon ! What do you mean with force perks ? A dynamic perk funtion or what ? Happy Have a nice Day ! Your CabCon

The following 2 users say thank you to MCabCon for this useful post:

HiddenHour, Xx-GIPPI-xX

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo