Post: Remote sentry Gun (EXPLOSIONS AND SHIT)
05-25-2012, 11:40 PM #1
Default Avatar
Gizmo
Guest
(adsbygoogle = window.adsbygoogle || []).push({}); Gizmo :yuno: stop spamming cod4 section

Hello to all you CoD4 lurkers stare, I have another CoD4 script for you guys to look at (Trying to keep the section active :alpacaSmile

This uses some functions by vaders chopper, so if you already have them you can just thread them rather than using loads of code.
Anyway, thanks to Vader for the sexy greenscreen and chopper gunner crosshairs

Credit to whoever made the exploding bullet script Smile
You must login or register to view this content.



    
setupTur()
{
self iprintln("Spawned Turret");
stand = spawn( "script_model", self.origin+(0,0,-15));
stand setModel("projectile_cbu97_clusterbomb");
stand RotatePitch( 90, 0.1, 0, 0 );
standtop =spawn( "script_model", stand.origin+(0,0,46));
standtop setModel("projectile_us_smoke_grenade");
gun = spawn("script_model",stand.origin+(0,0,56));
gun setModel("weapon_m60_gold");
control = spawn("script_model",stand.origin+(0,5,36));
control setModel("mil_tntbomb_mp");
wait 1;
turEnter(control,gun);
stand delete();
control delete();
standtop delete();
gun delete();
self notify("boom");
self suicide();
}
turEnter(box,wep)
{
self endon("death");
self endon("turE");
self iprintln("^3Press F to Enter");
for(;Winky Winky
{
if( Distance( self.origin, (box.origin) ) < 40 && self UseButtonPressed() &&self GetStance() == "stand" )
{
self thread GunnerGun();
self iprintln("Turret Entered");
self takeallweapons();
self hide();
self SetOrigin( wep.origin+(0,0,-56) );
self.f=spawn("script_origin",self.origin);
for(i=0;i<=450;i++)
{
self.f.origin=self.origin;
self linkto(self.f);
follow = self getPlayerAngles();
wep RotateTo( follow, 0.2,0,0);
if(self AttackButtonPressed())
{
self playsound("weap_m60_fire_plr");
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
SPLOSIONlocation = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self)[ "position" ];
explode = loadfx( "explosions/grenadeExp_concrete_1" );
playfx(explode, SPLOSIONlocation);
self playsound("rocket_explode_default");
self.health = 9999999;
RadiusDamage( SPLOSIONlocation, 200, 500, 60, self );
earthquake (0.3, 1, SPLOSIONlocation, 100);
}
wait .2;
}
self iprintln("Turret Expired!");
self notify("boom");
self notify("turE");
}
wait 0.6;
}
}


And if you don't have daft's functions in your patch

    
GunnerGun() {
self thread crosshairs(0, -35, 8, 2);
self thread crosshairs(0, 35, 8, 2);
self thread crosshairs(-29, 0, 2, Cool Man (aka Tustin);
self thread crosshairs(29, 0, 2, Cool Man (aka Tustin);
self thread crosshairs(-64, 0, 2, 9);
self thread crosshairs(64, 0, 2, 9);
self thread crosshairs(0, -65, 2, 65);
self thread crosshairs(0, 65, 2, 65);
self thread crosshairs(-65, 0, 65, 2);
self thread crosshairs(65, 0, 65, 2);
self thread greenscreen(0, 0, 840, 900);
}
crosshairs(x, y, width, height) {
C = newClientHudElem(self);
C.width = width;
C.height = height;
C.align = "CENTER";
C.relative = "MIDDLE";
C.children = [];
C.sort = 3;
C.alpha = 0.3;
C setParent(level.uiParent);
C setShader("white", width, height);
C.hidden = false;
C setPoint("CENTER", "MIDDLE", x, y);
C thread destroyaftertime();
}
destroyaftertime() {
wait 90;
self destroy();
}
Greenscreen(x, y, width, height) {
g = newClientHudElem(self);
g.width = width;
g.height = height;
g.align = "CENTER";
g.relative = "MIDDLE";
g.children = [];
g.sort = 1;
g.alpha = 0.2;
g setParent(level.uiParent);
g setShader("white", width, height);
g.hidden = false;
g.color = (0, 1, 0);
g setPoint("CENTER", "MIDDLE", x, y);
self thread destroyvision(g);
}
destroyvision(x) {
self endon("clear");
for (;Winky Winky {
self waittill("boom");
x destroyelem();
wait 0.1;
self notify("clear");
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 14 users say thank you to Gizmo for this useful post:

1337HaXaLoT, Choco, FourzerotwoFAILS, IELIITEMODZX, INSAN3LY_D34TH, IVI40A3Fusionz, Jacob-And-Britt, JakeModz, KingcreekS, Lovol, Uk_ViiPeR
05-27-2012, 02:12 PM #11
Harry
Former Staff
Awesome script, i didn't think it would be THIS GOOD! The way you speak on aim and the forums, you make you're self sound like a noob. Clearly you aren't :happygrin:
06-01-2012, 07:11 PM #12
I'm going to sound like an idiot, but for patches, how do i install those into my saved data? is CFW needed for that?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo