Results 1 to 12 of 12
  1. #1
    GoDZeN's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    150
    Reputation
    10
    Thanks
    1

    Exclamation Let Pistols/shotguns shoot rockets and knockback shot;)

    How to do that i really want a shotgun shooting rockets

  2. #2
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Code:
    RPGShooter()
    {
        self endon("death");
    
        for(;;){
        self waittill ("weapon_fired");
        forward = self getTagOrigin("tag_eye");
        end = self thread vector_Scal(anglestoforward(self   getPlayerAngles()),1000000);
        location = BulletTrace( forward, end, 0, self )[ "position" ];
        MagicBullet( "rpg_mp", forward, location, self );}
    }
    vector_Scal(vec, scale)
    {
        vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
        return vec;
    }
    Replace rpg_mp with the thing you want,
    Code:
    ac130_105mm_mp
    ac130_40mm_mp
    ac130_25mm_mp
    stinger_mp
    javelin_mp
    rpg_mp
    And probably lots more

  3. The Following User Says Thank You to Arasonic For This Useful Post:

    panzerbjørn (11-20-2010)

  4. #3
    panzerbjørn's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Pizza Hut...
    Posts
    305
    Reputation
    7
    Thanks
    17
    My Mood
    Angelic
    Niceee. quick and easy
    but it doesnt look like its for a spefic weapon

  5. #4
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Busy shining up my AC130 chopper gunner atm, I'll see if i can help later

    Code:
    SpecialWeapon()
    {
          self endon ( "death" );
    
    	for(;;)
    	{	
    		weapon = self getCurrentWeapon();
    		
    		if ( weapon == "model1887_mp" )
    		{		
    			//thing here
    		}
    		else if ( weapon == "rpg_mp" )
    		{
    			//thing here
    		}
    
    		//if ( self getWeaponAmmoClip( weapon ) )
    		//	continue;
    			
    		//self thread weaponReload( weapon );
    	}
    }
    Code:
    SpecialWeapon()
    {
          self endon ( "death" );
    
    	for(;;)
    	{	
    		weapon = self getCurrentWeapon();
    		
    		if ( weapon == "model1887_mp" )
    		{		
    			//thing here
    		}
    		else if ( weapon == "rpg_mp" )
    		{
    			//thing here
    		}
    	}
    }
    Code:
    SpecialWeapon()
    {
          self endon ( "death" );
    
    	for(;;)
    	{	
    		weapon = self getCurrentWeapon();
    		
    		if ( weapon == "model1887_mp" )
    		{		
    			//thing here
    		}
    		else if ( weapon == "rpg_mp" )
    		{
    			//thing here
    		}	
    		//self thread weaponReload( weapon );
    	}
    }
    Atleast one of them should 100% work
    Last edited by Arasonic; 11-20-2010 at 12:18 PM.

  6. The Following User Says Thank You to Arasonic For This Useful Post:

    panzerbjørn (11-20-2010)

  7. #5
    panzerbjørn's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Pizza Hut...
    Posts
    305
    Reputation
    7
    Thanks
    17
    My Mood
    Angelic
    1337 thanks 4 posting

  8. #6
    Threadstarter
    Advanced Member
    GoDZeN's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    150
    Reputation
    10
    Thanks
    1
    Thanks people

  9. #7
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    is there a code for remotemissile_projectile_mp to work??
    If I Helped You, Plz Thanks.
    It Would Help Alot

    What Do You Do For A Living?
    I Mostly Own Noobs With The AK-47 With Silencer
    What's That?
    (Turns To Friend)
    HAHAHA Noob!!!!!!

  10. #8
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    nope that 1 isnt working

  11. #9
    Threadstarter
    Advanced Member
    GoDZeN's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    150
    Reputation
    10
    Thanks
    1
    I dont want all wapens to have a special bullet how do i do it? It gives my nothing or a script error...
    Last edited by GoDZeN; 11-21-2010 at 03:16 AM.

  12. #10
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Did you try what I wrote higher up?

  13. #11
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    wonder how the valkyrie works?
    If I Helped You, Plz Thanks.
    It Would Help Alot

    What Do You Do For A Living?
    I Mostly Own Noobs With The AK-47 With Silencer
    What's That?
    (Turns To Friend)
    HAHAHA Noob!!!!!!

  14. #12
    Threadstarter
    Advanced Member
    GoDZeN's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    150
    Reputation
    10
    Thanks
    1
    Yep but its not working explain it my again pleas.^^