Thread: Raygun

Results 1 to 8 of 8
  1. #1
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored

    Raygun

    If any1 has the code for 4funplayin's raygun or something like it would u please post
    Thankz

  2. #2
    spiritwo's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rochester, NY
    Posts
    709
    Reputation
    17
    Thanks
    76
    My Mood
    Happy
    just use the search function to find 4funplayin's mod which contains the raygun
    --
    "Life is tough. It's tougher if you're stupid."

    Spiritwo |






  3. #3
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    I found but everything I try I get a unknown function

  4. #4
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,519
    Reputation
    13
    Thanks
    1,508
    My Mood
    Asleep
    Quote Originally Posted by jimmynguyen3030 View Post
    I found but everything I try I get a unknown function
    PM the modder who coded the raygun.
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  5. #5
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    Not to be mean but he never replyed

  6. #6
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    I'm just to lazy to answer same questions. Fine here it is.
    Code:
    giveRayGun(ammo)
    {
        self takeWeapon( self GetCurrentWeapon() );
    	self giveWeapon( "pp2000_silencer_mp", 1, false );
    	self switchToWeapon("pp2000_silencer_mp");
    	self thread doRaygunSync(ammo);
    }
    
    doRaygunSync(ammo)
    {
        self endon("disconnect");
    	self endon("death");
    	self endon("game_ended");
    	
    	//I don't know how to make a custom ammo clip so I will use the good old way.
    	
    	self.textRayGunVal = spawnstruct();
    	self.textRayGunVal = self createFontString( "default", 2.0 );
    	self.textRayGunVal setPoint( "TOPRIGHT", "TOPRIGHT", -20, 40);
        self thread zmod\mp\_OtherFunctions::DestroyOnDeath(self.textRayGunVal);
    	texta = spawnstruct();
    	texta.text = game["clientmsg"]["TO_FAR_POINT_RAYGUN"];
    	for(self.ammoclipray = ammo; self.ammoclipray > -1; self.ammoclipray--)
    	{
    		self waittill("weapon_fired");
    		iWeap = self GetCurrentWeapon();
    		if(iWeap == "pp2000_silencer_mp")
    		{
    		startB = GetCursorPos();
    		RadiusDamage( startB, 101, 520, 507, self );
    		startA = self getTagOrigin("tag_weapon_left");
    		xD = distance(startA, startB);
    		//We will have to do a limit of range, or else error 'no free dobjs'
    		if(xD < 855)
    		{
    	    pointe = roundUp(xD/13.5);
    		self.textRayGunVal setValue(self.ammoclipray);
    		self.textRayGunVal.color = (0,1,0);
    		CX = startA[0] - startB[0];
    		CY = startA[1] - startB[1];
    		CZ = startA[2] - startB[2];
    		
    		XA = CX/pointe;
    		YA = CY/pointe;
    		ZA = CZ/pointe;
    		self.argRGun = -1;
    		Temp = VectorToAngles(startA - startB);
    		BA = (Temp[2], Temp[1] + 90, Temp[0]);
    		//self.playingfxatm = playfx(level.spawnGlow["enemy"], startB);
    		for(b = pointe; b > -1; b--)
    		{
          	  	self.pointRGW[self.argRGun] = spawn( "script_model", (startB + ((XA, YA, ZA) * b)) );
    	   		self.pointRGW[self.argRGun] setModel("projectile_m67fraggrenade_bombsquad");
    			self.pointRGW[self.argRGun].angles = BA;
    			self thread removeRayGunShotEffect(self.pointRGW[self.argRGun]);
    		}
    		} else {
    		    self iPrintLnBold(texta.text);
    		}
    		}
    		if(self.ammoclipray == 0)
    		{
    		    self thread deathMachine();
    			self.textRayGunVal.color = (1,0,0);
    		}
    	}
    }
    
    removeRayGunShotEffect(DObj)
    {
        wait 0.3;
    	DObj delete();
    }
    You'll need to look at the code before you robot-copy-past something in the future.

    Code:
    self thread giveRayGun(ammo);

  7. The Following 2 Users Say Thank You to [WhA]4FunPlayin For This Useful Post:

    jimmynguyen3030 (12-15-2010),spiritwo (11-22-2010)

  8. #7
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    Thanks 4fun

  9. #8
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    No problems, also a hint, if you get unkown function and you can't find it, copy paste your code to FFViewer, then click on "syntax check", it should show the unkown function. Now I'm back to lose @ BO 5:11