Post: [SCRIPT] - CoD4 Javelin
07-19-2012, 01:28 PM #1
TOM DAINTY
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({});
Simple and easy code to make and yet so fun, works just like a MW2 Javelin Smile

Precache This in the init() located in the rank.gsc.
PrecacheModel( "projectile_cbu97_clusterbomb" );
    
Jav()
{
self iPrintln( "Javelin [^2Given^7]" );
self GiveWeapon( "rpg_mp", 2 );
wait 1;
self SwitchToWeapon( "rpg_mp" );
for(;Winky Winky
{
if(self AttackButtonPressed() && self getcurrentweapon() == "rpg_mp")
{
pos = getCursorPos();
Jav = spawn( "script_model", self.origin + (10,10,10));
Jav setModel( "projectile_cbu97_clusterbomb" );
Jav.angles = (90,90,90);
Jav playSound("weap_hind_missile_fire");
Jav moveto( self.origin + (10,10,246Cool Man (aka Tustin), 8 );
Jav thread FXME();
wait 8;
Jav moveto( pos, 2 );
wait 2;
playFx(level.chopper_fx["explode"]["large"],Jav.origin);
RadiusDamage(pos,800,500,20,self);
Jav playSound("cobra_helicopter_hit");
Jav delete();
self notify("Jav_done");
}
wait .05;
}
}

getCursorPos()
{
return bulletTrace(self getTagOrigin("tag_weapon_right"),vector_scale(anglesToForward(self getPlayerAngles()),1000000),false,self)["position"];
}

FXME()
{
self endon("Jav_done");
for(;Winky Winky
{
playfx(level.chopper_fx["fire"]["trail"]["medium"],self.origin);
wait .05;
}
}

Credits: IELIITEMODZX - GetCursorPos code
(adsbygoogle = window.adsbygoogle || []).push({});

The following 7 users say thank you to TOM DAINTY for this useful post:

Hot-Fuzz-MoDz, Raul Villaman, Simple-_-Modz, Special-Modding
07-19-2012, 05:27 PM #11
Blackstorm
Veni. Vidi. Vici.
Smh at people thinking he coded EVERY SINGLE THING in his patch. How could people be so ignorant?

The following 3 users say thank you to Blackstorm for this useful post:

247Yamato, iiReFuZee, x_DaftVader_x
07-19-2012, 11:37 PM #12
Yeah daft is right getCursorPos() function is in the cod4 files somewhere but its not hard to remake and some scripts where from other people and i added them in the credits, about 90% of the patch was made by me. i will not be replying to any quotes as i dont mod anymore. :bye:

The following 3 users say thank you to IELIITEMODZX for this useful post:

Raul Villaman, Simple-_-Modz, Special-Modding
07-23-2012, 05:10 AM #13
Source Code
Bounty hunter
Originally posted by C5MN
no my friend your wrong :p IELIITEMODZX coded everything in his patch from scratch. He doesnt use other peoples scripts cos he knew he would get people bitching about credit if he forgets to give them credit Smile

---------- Post added at 05:14 PM ---------- Previous post was at 05:12 PM ----------



Maybe he did maybe he didnt. Hes still a beast coder :carling:


I love getting on here everyday laughing my ass off because people post off instinct like this guy, if you actually do some research and look around the sight youll find that half the things you believe are completely stupid

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo