


Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!I want to have powerups in my map that gives the player a free perk and one that pack-a-punches the currently held weapon. I'm gonna try to make a script for myself if no response is given but i'm not very experienced and i'll probably end up basing it off a pack-a-punch script. any help is appreciated
There are a couple of tuts on UGX and Zombiemodding for perk drop and for the pap drop you could do what others do you go to a map with it and open up the IWD file
Shame on you
pap_powerup()
{
//ensure the player is valid
if(!is_player_valid(self))
{
return;
}
currentWeapon = self GetCurrentWeapon();
//ensure current weapon exists, its not a grenade and that its not already upgraded
if(!isDefined(currentWeapon) || getWeaponType(currentWeapon) == "grenade" || isSubStr(currentWeapon, "upgraded"))
{
return;
}
//make the weapon upgraded
upgradeWeapon += "_upgraded";
//take the current weapon and give the upgraded one
self takeWeapon(currentWeapon);
self giveWeapon(upgradeWeapon);
self switchTo(upgradeWeapon);
}