


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!//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//|||| Name : bomb_run.gsc
//|||| Info : script for bombing runs
//|||| Site : [url=http://www.ugx-mods.com]www.ugx-mods.com[/url]
//|||| Author : [UGX] treminaor
//|||| Notes : goes with Airstrike tutorial on UGX-Wiki
//|||| To-Do : n/a
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
bomb_run_trig()
{
trigger = getEnt("bomb_run_trig","targetname");
cost = 3500;
player = undefined;
trigger setCursorHint("HINT_NOICON");
trigger setHintString("Press &&1 to call an airstrike [Cost: "+cost+"]");
while(1)
{
trigger waittill("trigger",player);
if(player.score >= cost)
{
player maps\_zombiemode_score::minus_to_player_score( self.zombie_cost );
trigger setHintString("Bombing Run in Progress. Wait 1 minute");
bomb_run();
wait 60;
}
else
player playsound("no_cha_ching");
}
}
bomb_run()
{
plane = getEnt("plane","targetname");
plane_path = GetVehicleNode("plane_path_start","targetname");
plane AttachPath( plane_path );
plane thread maps\_vehicle::vehicle_paths(plane_path);
maps\_vehicle::vehicle_init(plane);
plane thread corsair_spin_prop();
plane StartPath( plane_path );
wait 2;
for(i = 0; i < players.size; i++)
players[i] playsound("ambient_corsair");
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
}
corsair_spin_prop()
{
self endon("hide_prop");
self endon("death");
while(1)
{
PlayFXOnTag(level._effect["corsair_prop_full"], self, "tag_prop");
wait(0.1);
}
}
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
for(i = 0; i < players.size; i++)
players[i] playsound("ambient_corsair");

![]() | |
![]() | |
![]() | Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
//|||| Name : bomb_run.gsc
//|||| Info : script for bombing runs
//|||| Site : [url=http://www.ugx-mods.com]www.ugx-mods.com[/url]
//|||| Author : [UGX] treminaor
//|||| Notes : goes with Airstrike tutorial on UGX-Wiki
//|||| To-Do : n/a
//||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
bomb_run_trig()
{
trigger = getEnt("bomb_run_trig","targetname");
cost = 3500;
player = undefined;
trigger setCursorHint("HINT_NOICON");
trigger setHintString("Press &&1 to call an airstrike [Cost: "+cost+"]");
while(1)
{
trigger waittill("trigger",player);
if(player.score >= cost)
{
player maps\_zombiemode_score::minus_to_player_score( self.zombie_cost );
trigger setHintString("Bombing Run in Progress. Wait 1 minute");
bomb_run();
wait 60;
}
else
player playsound("no_cha_ching");
}
}
bomb_run()
{
plane = getEnt("plane","targetname");
plane_path = GetVehicleNode("plane_path_start","targetname");
plane AttachPath( plane_path );
plane thread maps\_vehicle::vehicle_paths(plane_path);
maps\_vehicle::vehicle_init(plane);
plane thread corsair_spin_prop();
plane StartPath( plane_path );
wait 2;
players = getplayers();
for(i=0;i<players.size;i++)
players[i] playsound("ambient_corsair");
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
wait 0.5;
plane notify("drop_bombs");
}
corsair_spin_prop()
{
self endon("hide_prop");
self endon("death");
while(1)
{
PlayFXOnTag(level._effect["corsair_prop_full"], self, "tag_prop");
wait(0.1);
}
}