Posts
143
Respect
46Add +1
Forum Rank
Pack-a-Puncher
Primary Group
Member
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!#include maps\_anim;
#include maps\_utility;
#include common_scripts\utility;
#include maps\_music;
#include maps\_zombiemode_utility;
main()
{
level._effect["cherry_burst"] = loadfx("misc/zombie_elec_trail_oneshot");
flag_wait("all_players_connected");
wait(1);
players = get_players();
for(i = 0; i < players.size; i++)
{
players[i] thread cherry_effect();
players[i] thread cherry_down();
}
}
cherry_effect()
{
while(1)
{
self waittill( "reload_start" );
if( self HasPerk("specialty_boost"))
{
cherry_weapon = self GetCurrentWeapon();
ammo_left = self GetWeaponAmmoClip( cherry_weapon );
clip_size = WeaponClipSize( cherry_weapon );
ratio = ammo_left / clip_size;
damage = 1200 - (ratio * 1200);
iprintln( damage );
PlayFxOnTag(level._effect[ "cherry_burst" ], cherry_weapon, "tag_clip");
touching_check = spawn("trigger_radius",self.origin,1,200,200);
zombies = getaispeciesarray("axis","all");
for(j = 0; j < zombies.size; j++)
{
if(zombies[j] IsTouching( touching_check ))
{
zombies[j] maps\_zombiemode_tesla::tesla_play_death_fx( 1 );
zombies[j] SetFlashBanged( true, 1 );
}
else
{
continue;
}
}
touching_check delete();
SetPlayerIgnoreRadiusDamage( true );
RadiusDamage( self.origin, 200, damage, 50, self );
wait(5);
}
else
{
}
}
}
cherry_down()
{
while(1)
{
if(self HasPerk("specialty_boost"))
{
self waittill_any( "fake_death", "death", "player_downed" );
touching_check = spawn("trigger_radius",self.origin,1,200,200);
zombies = getaispeciesarray("axis","all");
for(j = 0; j < zombies.size; j++)
{
if(zombies[j] IsTouching( touching_check ))
{
zombies[j] maps\_zombiemode_tesla::tesla_play_death_fx( 1 );
zombies[j] SetFlashBanged( true, 1 );
}
else
{
continue;
}
}
touching_check delete();
SetPlayerIgnoreRadiusDamage( true );
RadiusDamage( self.origin, 150, 1200, 50, self );
self UnSetPerk("specialty_boost");
}
else
{
wait(0.05);
continue;
}
}
}

PlayFxOnTag(level._effect[ "cherry_burst" ], cherry_weapon, "tag_clip"); PlayFxOnTag(level._effect[ "cherry_burst" ], self, "tag_weapon_right");PlayFx(level._effect["cherry_burst"], self.origin);#include maps\_anim;
#include maps\_utility;
#include common_scripts\utility;
#include maps\_music;
#include maps\_zombiemode_utility;
main()
{
level._effect["cherry_burst"] = loadfx("env/electrical/fx_player_md");
flag_wait("all_players_connected");
wait(1);
players = get_players();
for(i = 0; i < players.size; i++)
{
players[i] thread cherry_effect();
players[i] thread cherry_down();
}
}
cherry_effect()
{
while(1)
{
self waittill( "reload_start" );
if( self HasPerk("specialty_boost"))
{
cherry_weapon = self GetCurrentWeapon();
ammo_left = self GetWeaponAmmoClip( cherry_weapon );
clip_size = WeaponClipSize( cherry_weapon );
ratio = ammo_left / clip_size;
damage = 1200 - (ratio * 1200);
iprintln( damage );
PlayFx(level._effect["cherry_burst"], self.origin);
touching_check = spawn("trigger_radius",self.origin,1,200,200);
zombies = getaispeciesarray("axis","all");
for(j = 0; j < zombies.size; j++)
{
if(zombies[j] IsTouching( touching_check ))
{
zombies[j] maps\_zombiemode_tesla::tesla_play_death_fx( 1 );
zombies[j] SetFlashBanged( true, 1 );
}
else
{
continue;
}
}
touching_check delete();
SetPlayerIgnoreRadiusDamage( true );
RadiusDamage( self.origin, 200, damage, 50, self );
wait(5);
}
else
{
}
}
}
cherry_down()
{
while(1)
{
if(self HasPerk("specialty_boost"))
{
self waittill_any( "fake_death", "death", "player_downed" );
touching_check = spawn("trigger_radius",self.origin,1,200,200);
zombies = getaispeciesarray("axis","all");
for(j = 0; j < zombies.size; j++)
{
if(zombies[j] IsTouching( touching_check ))
{
zombies[j] maps\_zombiemode_tesla::tesla_play_death_fx( 1 );
zombies[j] SetFlashBanged( true, 1 );
}
else
{
continue;
}
}
touching_check delete();
SetPlayerIgnoreRadiusDamage( true );
RadiusDamage( self.origin, 150, 1200, 50, self );
self UnSetPerk("specialty_boost");
}
else
{
wait(0.05);
continue;
}
}
}

PlayViewmodelFx( <localclientnum>, <FX>, <tag> )