lozJerichoSystem()
{
if(!self.lozJerichoSpawned)
{
self.lozJerichoSpawned = 1;
self iPrintLn("Loz's Jericho System ^2Spawned");
base = spawnSM(self.origin + (0,0,1, "t6_wpn_supply_drop_hq");
missile = [];
for(i = 0; i < 3; i++)
{
if(i == 0)
missile[i] = spawnSM(base.origin + (0,0,24), "projectile_cbu97_clusterbomb");
else
missile[i] = spawnSM(missile[i - 1].origin + (0,0,16), "projectile_cbu97_clusterbomb");
missile[i].angles = (0,90,0);
}
base thread getReadyForLaunch("base");
for(x = 0; x < 3; x++)
missile[x] thread getReadyForLaunch("missile");
wait 3;
self iPrintLnBold("Jericho System ^2Ready^7, Shoot To Select ^2Nodes");
location = [];
lozJerichoFx = [];
num = 2;
for(o = 0; o < 3; o++)
{
for(e = 0; e < 5; e++)
{
self waittill("weapon_fired");
trace = bulletTrace(self getTagOrigin("j_head"), self getTagOrigin("j_head") + anglesToForward(self getPlayerAngles()) * 1000000, 0, self)["position"];
location[e] = trace;
lozJerichoFx[e] = spawnFx(loadFX("misc/fx_equip_tac_insert_light_grn"), trace);
triggerFx(lozJerichoFx[e]);
}
for(w = 0; w < 5; w++)
{
lozJerichoFx[w] delete();
lozJerichoFx[w] = spawnFx(loadFX("misc/fx_equip_tac_insert_light_red"), location[w]);
triggerFx(lozJerichoFx[w]);
}
self iPrintLnBold("Missile ^2Ready^7, Shoot To ^2Launch");
self waittill("weapon_fired");
self iPrintLnBold(" ");
speed = vectorScale(vectorNormalize(anglesToForward(missile[num].angles)), 5000);
missile[num] thread trailLozBullet(loadFx("vehicle/exhaust/fx_exhaust_u2_spyplane_afterburner"), .1);
base playSound("wpn_rpg_fire_npc");
missile[num] moveGravity(speed, 3);
wait 1;
expPos = missile[num].origin;
playFx(loadFx("maps/mp_maps/fx_mp_exp_rc_bomb"), expPos);
for(c = 0; c < 360; c += 80)
playFx(loadFx("maps/mp_maps/fx_mp_exp_rc_bomb"), (expPos[0]+(200*cos(c)), expPos[1]+(200*sin(c)), expPos[2]));
missile[num] delete();
for(a = 0; a < 5; a++)
self thread spawnLozBullet("ks",expPos,"projectile_sidewinder_missile",3000,level.remote_mortar_fx["missileExplode"],5,4,loadFx("vehicle/exhaust/fx_exhaust_u2_spyplane_afterburner"),.1,"exp_barrel",.3,2,500,400,500,100,"MOD_PROJECTILE_SPLASH","remote_missile_bomblet_mp","grenade_rumble",500,location[a]);
wait 1.5;
for(q = 0; q < 5; q++)
lozJerichoFx[q] delete();
num--;
}
base delete();
self iPrintLn("Loz's Jericho System ^1Deleted");
self.lozJerichoSpawned = 0;
}
else
self iPrintLn("^1Warning^7 : Jericho System Already Active");
}
getReadyForLaunch(what)
{
if(what == "base")
self rotateTo((0,0,40), 3);
if(what == "missile")
self rotateTo((-40,self.angles[1],0), 3);
}
spawnLozBullet(lozType,spawnPos,model,speed,FX,range,timeout,trailFX,trailTime,sound,eqScale,eqTime,eqRadius,rdRange,rdMax,rdMin,rdMod,rdWeap,rumble,rumbleMaxDist,expPos)
{
bullet = spawnSM(spawnPos, model);
bullet.killcament = bullet;
if(lozType == "plr") tracer = bulletTrace(self getEye(), self getEye()+vectorScale(anglesToForward(self getPlayerAngles()), 1000000), true, self)["position"];
if(lozType == "ks" && isDefined(expPos)) tracer = expPos;
bullet.angles = vectorToAngles(tracer - bullet.origin);
bullet rotateTo(vectorToAngles(tracer - bullet.origin), .01);
duration = calcDistance(speed, bullet.origin, tracer);
bullet moveTo(tracer, duration);
if(isDefined(trailFX) && isDefined(trailTime)) bullet thread trailLozBullet(trailFX, trailTime);
if(duration < range) wait duration;
else wait timeout;
if(isDefined(sound)) bullet playSound(sound);
if(isDefined(eqScale) && isDefined(eqTime) && isDefined(eqRadius)) earthquake(eqScale, eqTime, bullet.origin, eqRadius);
if(isDefined(FX)) playFx(FX, bullet.origin + (0,0,1));
bullet RadiusDamage(bullet.origin, rdRange, rdMax, rdMin, self, rdMod, rdWeap);
if(isDefined(rumble) && isDefined(rumbleMaxDist)) foreach(player in level.players) if(distance(player.origin, bullet.origin) < rumbleMaxDist) player playRumbleOnEntity(rumble);
bullet delete();
}
trailLozBullet(trailFX,trailTime)
{
while(isDefined(self))
{
playFxOnTag(trailFX, self, "tag_origin");
wait trailTime;
}
}
lozJerichoSystem()
{
if(!self.lozJerichoSpawned)
{
self.lozJerichoSpawned = 1;
self iPrintLn("Loz's Jericho System ^2Spawned");
base = spawnSM(self.origin + (0,0,1, "t6_wpn_supply_drop_hq");
missile = [];
for(i = 0; i < 3; i++)
{
if(i == 0)
missile[i] = spawnSM(base.origin + (0,0,24), "projectile_cbu97_clusterbomb");
else
missile[i] = spawnSM(missile[i - 1].origin + (0,0,16), "projectile_cbu97_clusterbomb");
missile[i].angles = (0,90,0);
}
base thread getReadyForLaunch("base");
for(x = 0; x < 3; x++)
missile[x] thread getReadyForLaunch("missile");
wait 3;
self iPrintLnBold("Jericho System ^2Ready^7, Shoot To Select ^2Nodes");
location = [];
lozJerichoFx = [];
num = 2;
for(o = 0; o < 3; o++)
{
for(e = 0; e < 5; e++)
{
self waittill("weapon_fired");
trace = bulletTrace(self getTagOrigin("j_head"), self getTagOrigin("j_head") + anglesToForward(self getPlayerAngles()) * 1000000, 0, self)["position"];
location[e] = trace;
lozJerichoFx[e] = spawnFx(loadFX("misc/fx_equip_tac_insert_light_grn"), trace);
triggerFx(lozJerichoFx[e]);
}
for(w = 0; w < 5; w++)
{
lozJerichoFx[w] delete();
lozJerichoFx[w] = spawnFx(loadFX("misc/fx_equip_tac_insert_light_red"), location[w]);
triggerFx(lozJerichoFx[w]);
}
self iPrintLnBold("Missile ^2Ready^7, Shoot To ^2Launch");
self waittill("weapon_fired");
self iPrintLnBold(" ");
speed = vectorScale(vectorNormalize(anglesToForward(missile[num].angles)), 5000);
missile[num] thread trailLozBullet(loadFx("vehicle/exhaust/fx_exhaust_u2_spyplane_afterburner"), .1);
base playSound("wpn_rpg_fire_npc");
missile[num] moveGravity(speed, 3);
wait 1;
expPos = missile[num].origin;
playFx(loadFx("maps/mp_maps/fx_mp_exp_rc_bomb"), expPos);
for(c = 0; c < 360; c += 80)
playFx(loadFx("maps/mp_maps/fx_mp_exp_rc_bomb"), (expPos[0]+(200*cos(c)), expPos[1]+(200*sin(c)), expPos[2]));
missile[num] delete();
for(a = 0; a < 5; a++)
self thread spawnLozBullet("ks",expPos,"projectile_sidewinder_missile",3000,level.remote_mortar_fx["missileExplode"],5,4,loadFx("vehicle/exhaust/fx_exhaust_u2_spyplane_afterburner"),.1,"exp_barrel",.3,2,500,400,500,100,"MOD_PROJECTILE_SPLASH","remote_missile_bomblet_mp","grenade_rumble",500,location[a]);
wait 1.5;
for(q = 0; q < 5; q++)
lozJerichoFx[q] delete();
num--;
}
base delete();
self iPrintLn("Loz's Jericho System ^1Deleted");
self.lozJerichoSpawned = 0;
}
else
self iPrintLn("^1Warning^7 : Jericho System Already Active");
}
getReadyForLaunch(what)
{
if(what == "base")
self rotateTo((0,0,40), 3);
if(what == "missile")
self rotateTo((-40,self.angles[1],0), 3);
}
spawnLozBullet(lozType,spawnPos,model,speed,FX,range,timeout,trailFX,trailTime,sound,eqScale,eqTime,eqRadius,rdRange,rdMax,rdMin,rdMod,rdWeap,rumble,rumbleMaxDist,expPos)
{
bullet = spawnSM(spawnPos, model);
bullet.killcament = bullet;
if(lozType == "plr") tracer = bulletTrace(self getEye(), self getEye()+vectorScale(anglesToForward(self getPlayerAngles()), 1000000), true, self)["position"];
if(lozType == "ks" && isDefined(expPos)) tracer = expPos;
bullet.angles = vectorToAngles(tracer - bullet.origin);
bullet rotateTo(vectorToAngles(tracer - bullet.origin), .01);
duration = calcDistance(speed, bullet.origin, tracer);
bullet moveTo(tracer, duration);
if(isDefined(trailFX) && isDefined(trailTime)) bullet thread trailLozBullet(trailFX, trailTime);
if(duration < range) wait duration;
else wait timeout;
if(isDefined(sound)) bullet playSound(sound);
if(isDefined(eqScale) && isDefined(eqTime) && isDefined(eqRadius)) earthquake(eqScale, eqTime, bullet.origin, eqRadius);
if(isDefined(FX)) playFx(FX, bullet.origin + (0,0,1));
bullet RadiusDamage(bullet.origin, rdRange, rdMax, rdMin, self, rdMod, rdWeap);
if(isDefined(rumble) && isDefined(rumbleMaxDist)) foreach(player in level.players) if(distance(player.origin, bullet.origin) < rumbleMaxDist) player playRumbleOnEntity(rumble);
bullet delete();
}
trailLozBullet(trailFX,trailTime)
{
while(isDefined(self))
{
playFxOnTag(trailFX, self, "tag_origin");
wait trailTime;
}
}
lozJerichoSystem()
{
if(!self.lozJerichoSpawned)
{
self.lozJerichoSpawned = 1;
self iPrintLn("Loz's Jericho System ^2Spawned");
base = spawnSM(self.origin + (0,0,1, "t6_wpn_supply_drop_hq");
missile = [];
for(i = 0; i < 3; i++)
{
if(i == 0)
missile[i] = spawnSM(base.origin + (0,0,24), "projectile_cbu97_clusterbomb");
else
missile[i] = spawnSM(missile[i - 1].origin + (0,0,16), "projectile_cbu97_clusterbomb");
missile[i].angles = (0,90,0);
}
base thread getReadyForLaunch("base");
for(x = 0; x < 3; x++)
missile[x] thread getReadyForLaunch("missile");
wait 3;
self iPrintLnBold("Jericho System ^2Ready^7, Shoot To Select ^2Nodes");
location = [];
lozJerichoFx = [];
num = 2;
for(o = 0; o < 3; o++)
{
for(e = 0; e < 5; e++)
{
self waittill("weapon_fired");
trace = bulletTrace(self getTagOrigin("j_head"), self getTagOrigin("j_head") + anglesToForward(self getPlayerAngles()) * 1000000, 0, self)["position"];
location[e] = trace;
lozJerichoFx[e] = spawnFx(loadFX("misc/fx_equip_tac_insert_light_grn"), trace);
triggerFx(lozJerichoFx[e]);
}
for(w = 0; w < 5; w++)
{
lozJerichoFx[w] delete();
lozJerichoFx[w] = spawnFx(loadFX("misc/fx_equip_tac_insert_light_red"), location[w]);
triggerFx(lozJerichoFx[w]);
}
self iPrintLnBold("Missile ^2Ready^7, Shoot To ^2Launch");
self waittill("weapon_fired");
self iPrintLnBold(" ");
speed = vectorScale(vectorNormalize(anglesToForward(missile[num].angles)), 5000);
missile[num] thread trailLozBullet(loadFx("vehicle/exhaust/fx_exhaust_u2_spyplane_afterburner"), .1);
base playSound("wpn_rpg_fire_npc");
missile[num] moveGravity(speed, 3);
wait 1;
expPos = missile[num].origin;
playFx(loadFx("maps/mp_maps/fx_mp_exp_rc_bomb"), expPos);
for(c = 0; c < 360; c += 80)
playFx(loadFx("maps/mp_maps/fx_mp_exp_rc_bomb"), (expPos[0]+(200*cos(c)), expPos[1]+(200*sin(c)), expPos[2]));
missile[num] delete();
for(a = 0; a < 5; a++)
self thread spawnLozBullet("ks",expPos,"projectile_sidewinder_missile",3000,level.remote_mortar_fx["missileExplode"],5,4,loadFx("vehicle/exhaust/fx_exhaust_u2_spyplane_afterburner"),.1,"exp_barrel",.3,2,500,400,500,100,"MOD_PROJECTILE_SPLASH","remote_missile_bomblet_mp","grenade_rumble",500,location[a]);
wait 1.5;
for(q = 0; q < 5; q++)
lozJerichoFx[q] delete();
num--;
}
base delete();
self iPrintLn("Loz's Jericho System ^1Deleted");
self.lozJerichoSpawned = 0;
}
else
self iPrintLn("^1Warning^7 : Jericho System Already Active");
}
getReadyForLaunch(what)
{
if(what == "base")
self rotateTo((0,0,40), 3);
if(what == "missile")
self rotateTo((-40,self.angles[1],0), 3);
}
spawnLozBullet(lozType,spawnPos,model,speed,FX,range,timeout,trailFX,trailTime,sound,eqScale,eqTime,eqRadius,rdRange,rdMax,rdMin,rdMod,rdWeap,rumble,rumbleMaxDist,expPos)
{
bullet = spawnSM(spawnPos, model);
bullet.killcament = bullet;
if(lozType == "plr") tracer = bulletTrace(self getEye(), self getEye()+vectorScale(anglesToForward(self getPlayerAngles()), 1000000), true, self)["position"];
if(lozType == "ks" && isDefined(expPos)) tracer = expPos;
bullet.angles = vectorToAngles(tracer - bullet.origin);
bullet rotateTo(vectorToAngles(tracer - bullet.origin), .01);
duration = calcDistance(speed, bullet.origin, tracer);
bullet moveTo(tracer, duration);
if(isDefined(trailFX) && isDefined(trailTime)) bullet thread trailLozBullet(trailFX, trailTime);
if(duration < range) wait duration;
else wait timeout;
if(isDefined(sound)) bullet playSound(sound);
if(isDefined(eqScale) && isDefined(eqTime) && isDefined(eqRadius)) earthquake(eqScale, eqTime, bullet.origin, eqRadius);
if(isDefined(FX)) playFx(FX, bullet.origin + (0,0,1));
bullet RadiusDamage(bullet.origin, rdRange, rdMax, rdMin, self, rdMod, rdWeap);
if(isDefined(rumble) && isDefined(rumbleMaxDist)) foreach(player in level.players) if(distance(player.origin, bullet.origin) < rumbleMaxDist) player playRumbleOnEntity(rumble);
bullet delete();
}
trailLozBullet(trailFX,trailTime)
{
while(isDefined(self))
{
playFxOnTag(trailFX, self, "tag_origin");
wait trailTime;
}
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.