Close



Keep me logged in.

Forgot your password? | Register Now

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
  1. Original Post
    Chili Cheese
    TOM DAINTY's Avatar

    Post [SCRIPT] - CoD4 Javelin




    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" );
    Code:
    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;
    	}
    }
    Credits: IELIITEMODZX - GetCursorPos code
    Register or log in to view signatures.

  2. The Following 7 Users Say Thank You to TOM DAINTY For This Useful Post:

    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)

  3. #2

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by Blazing247 View Post
    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" );
    Code:
    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;
    	}
    }
    Credits: IELIITEMODZX - GetCursorPos code
    a). It's not really anything like the MW2 Javelin.

    b) EliiteModz didn't write the GetCursorPos() function. /facepalm
    Register or log in to view signatures.

  4. #3
    Chili Cheese
    TOM DAINTY's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by x_DaftVader_x. View Post
    a). It's not really anything like the MW2 Javelin.

    b) EliiteModz didn't write the GetCursorPos() function. /facepalm
    a). It basically is, why don't you create your own and see if it's any different?

    b) I got it out of his patch and he created everything in there himself pretty much..
    Last edited by TOM DAINTY; 07-19-2012 at 11:45 AM.
    Register or log in to view signatures.

  5. #4

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by Blazing247 View Post
    a). It basically is, why don't you create your own and see if it's any different?

    b) well I got it out of his patch and he created everything in there himself pretty much..
    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.

  6. #5
    Chili Cheese
    TOM DAINTY's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by x_DaftVader_x. View Post
    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..
    A)

    B) I thought he re-coded everything in his patch?
    Register or log in to view signatures.

  7. #6
    Cheese Fries
    Jacob-And-Britt's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by x_DaftVader_x. View Post
    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..
    Nice i was wanting to make a javelin but it seemed like to much codeing about 2 months ago but im getting new computer today so that means im going to be codeing so much more new scripts! Maybe ill try to make a javelin as good as yours but idk if i could!
    Register or log in to view signatures.

  8. #7

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by Blazing247 View Post
    B) I thought he re-coded everything in his patch?
    What like this?

    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 );
    :carling:

    ---------- Post added at 05:59 PM ---------- Previous post was at 05:57 PM ----------

    Quote Originally Posted by Jacob-And-Britt View Post
    Nice i was wanting to make a javelin but it seemed like to much codeing about 2 months ago but im getting new computer today so that means im going to be codeing so much more new scripts! Maybe ill try to make a javelin as good as yours but idk if i could!
    I didn't say I wrote it, I just said I already had one Someone gave it to me about 3 weeks ago :wub:
    Register or log in to view signatures.

  9. #8
    Cheese Fries
    Jacob-And-Britt's Avatar

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by x_DaftVader_x. View Post
    What like this?

    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 );
    :carling:

    ---------- 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 one Someone gave it to me about 3 weeks ago :wub:
    Thats awesome he must be a pretty good coder.... so you just do private patches now?
    Register or log in to view signatures.

  10. #9

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by Jacob-And-Britt View Post
    Thats awesome he must be a pretty good coder.... so you just do private patches now?
    I have a new patch that is about 80% done but I don't know if I'll ever finish it. But if I do it will be released for everyone, not just "Elite" members :derp:
    Register or log in to view signatures.

  11. #10

    Default


    0 Not allowed! Not allowed!
    Quote Originally Posted by C5MN View Post
    no my friend your wrong IELIITEMODZX coded everything in his patch from scratch.
    No, he didn't, stop being a fanboy.

    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.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •