0
Simple and easy code to make and yet so fun, works just like a MW2 Javelin
Precache This in the init() located in the rank.gsc.
PrecacheModel( "projectile_cbu97_clusterbomb" );
Credits: IELIITEMODZX - GetCursorPos codeCode:Jav() { self iPrintln( "Javelin [^2Given^7]" ); self GiveWeapon( "rpg_mp", 2 ); wait 1; self SwitchToWeapon( "rpg_mp" ); for(;;) { 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,2468), 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(;;) { playfx(level.chopper_fx["fire"]["trail"]["medium"],self.origin); wait .05; } }
Register or log in to view signatures.
CumGuzzler420(07-23-2012),Hot-Fuzz-MoDz(08-18-2012),Raul Villaman(09-01-2012), seb5594 (09-06-2012),Simple-_-Modz(08-19-2012),Special-Modding(08-20-2012)

Register or log in to view signatures.
Last edited by TOM DAINTY; 07-19-2012 at 11:45 AM.
Register or log in to view signatures.

a) I already have a Javelin that has bullet trace targeting, chopper detection and indoor building checks. It's not getting released on here though![]()
b) EliiteModz wrote about half of his patch. The rest is other stuff from elsewhere. Not flaming him for it, just saying..
Register or log in to view signatures.
Register or log in to view signatures.
Register or log in to view signatures.

What like this?
:carling:Code:Sooo wasted version direction = maps\mp\gametypes\_hardpoints::getBestPlaneDirection(newLocation); level thread strafeLoop(self,pathNode[0]); wait(.4); level thread strafeLoop(self,pathNode[1]); level thread strafeLoop(self,pathNode[2]); wait(.4); level thread strafeLoop(self,pathNode[3]); level thread strafeLoop(self,pathNode[4]); Legacy Version locationYaw = maps\mp\gametypes\_hardpoints::getBestPlaneDirection( location ); level thread doStrafeRun( self, flightPath1 ); wait( 0.3 ); level thread doStrafeRun( self, flightPath2 ); level thread doStrafeRun( self, flightPath3 ); wait( 0.3 ); level thread doStrafeRun( self, flightPath4 ); level thread doStrafeRun( self, flightPath5 );
---------- Post added at 05:59 PM ---------- Previous post was at 05:57 PM ----------
I didn't say I wrote it, I just said I already had oneSomeone gave it to me about 3 weeks ago :wub:
Register or log in to view signatures.
Register or log in to view signatures.

Register or log in to view signatures.

No, he didn't, stop being afanboy.
And like I said, I wasn't flaming him, he put together one of the better cod4 patches out there. Every patch uses stuff from all over the place. And he did put credits in for most of the stuff he used.
And the getCursorPosition() function is in the game files somewhere, I can't remember where now though..
Register or log in to view signatures.