| Author | 
            Message | 
        
        
			| 
				
				 Jimmy Crack Jack 
				
				
					 Joined: Wed May 20, 2009 12:46 pm Posts: 40 Location: At a secret laboratory dividing by zero
				 
				 
			 | 
			
				
				  Friendly Fire  
					
						Alright i have an idea for a mod but i need a push in the right direction. Is it possible to somehow make the bullets, rockets (not the splash damage) that your friendlies fire go through you. I'm sick of the bots that stand behind me, cause they always end up shooting me
  PS: not sure if its been done before 
					
  
			 | 
		
		
			| Thu May 21, 2009 7:02 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Metal Meltdown 
				Banned 
				
					 Joined: Thu May 14, 2009 9:22 pm Posts: 826 Location: Lookin' forward to mocking people on Jan 1st 2013.
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						From what I know, that's not possible without Lua, but the thing is, that even if you manage to make fire ignore friendlies, you'll have to make two sets of weapons, one for each team (unless Lua can detect which team's actors the weapon's held by, and adjust accordingly), and make sure that you don't buy the weapons that ignore the other team. So... the best thing to do is just stop using bots for anything other than target practice and base defense. Their accuracy is horrendous, anyway. 
					
  
			 | 
		
		
			| Thu May 21, 2009 9:29 am | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Jimmy Crack Jack 
				
				
					 Joined: Wed May 20, 2009 12:46 pm Posts: 40 Location: At a secret laboratory dividing by zero
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						Alright then that's just to much work screw it
  You can lock this or get rid of it or whatever you admins do 
					
  
			 | 
		
		
			| Fri May 22, 2009 6:31 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 CrazyMLC 
				
				
					 Joined: Fri Dec 22, 2006 4:20 am Posts: 4772 Location: Good news everyone!
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						In the .ini for the weapon, there is a ignorethis = 1 variable, meaning bullets  do not hurt/go through the user. So it might be possible to do what you're talking about. I mean, look at this. viewtopic.php?f=61&t=14819&start=0Bombs that only hurt the enemy team. Study the lua files...  
					
  
			 | 
		
		
			| Fri May 22, 2009 7:47 am | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Jimmy Crack Jack 
				
				
					 Joined: Wed May 20, 2009 12:46 pm Posts: 40 Location: At a secret laboratory dividing by zero
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						Dont lock it 
  One problem i cant exactly read lua scripting im bairly able to read the normal script for cortex 
					
  
			 | 
		
		
			| Fri May 22, 2009 7:56 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Exalion 
				
				
					 Joined: Fri Mar 02, 2007 6:59 am Posts: 1726 Location: NSW, Australia
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						Then there is little to do except just learn. basic cortex command script is easy as anything (as long as english is your native language). Lua, I'm not sure: I've never mucked around in it. But if those morons over at facepunch can do it SO CAN WE! 
					
  
			 | 
		
		
			| Fri May 22, 2009 1:49 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Dauss 
				A HUMAN BRAIN, SAFELY INSULATED FROM THE TERRORS OF HYPERSPACE 
				
					 Joined: Sun Jan 28, 2007 8:54 pm Posts: 1070 Location: Somewhere beyond the endless sea of hyperspace, fighting for your right to call a planet home.
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						A variable for 'IgnoresSameTeam' or something would have to be implemented. If it could be done otherwise, I get the idea it would be very hacky and unreliable. 
					
  
			 | 
		
		
			| Fri May 22, 2009 1:53 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Grif 
				REAL AMERICAN HERO 
				
					 Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						You'd have to get whatever you're shooting at, what team it is, then set hitsmos = true/false accordingly.
  This would be yeah, pretty hacky and unreliable. 
					
  
			 | 
		
		
			| Fri May 22, 2009 2:30 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Jimmy Crack Jack 
				
				
					 Joined: Wed May 20, 2009 12:46 pm Posts: 40 Location: At a secret laboratory dividing by zero
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						So far this is sounden way out of my league i dont even know if i can try this 
					
  
			 | 
		
		
			| Fri May 22, 2009 11:44 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Ragdollmaster 
				
				
					 Joined: Sun Dec 16, 2007 12:09 am Posts: 1115 Location: Being The Great Juju
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						You could, oh, I don't know, not stand in front of guns      It would be a little fruity if all your teammates' bullets went through you. A big problem is the 2-D factor; games like this have no Z plane, only an X & Y. Therefore, for the game to make sense, you have to assume that every single thing in the game is on the same spot in the Z plane, just with different coordinates on the X/Y planes. How weird would it look if a bullet zoomed across the screen, went through you without hitting you, but then impacted a member of the opposite team standing a few feet in front of you, apparently on the exact same surface?  
					
  
			 | 
		
		
			| Sun May 24, 2009 3:01 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Grif 
				REAL AMERICAN HERO 
				
					 Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						Ragdollmaster wrote: You could, oh, I don't know, not stand in front of guns  :roll:  
  It would be a little fruity if all your teammates' bullets went through you. A big problem is the 2-D factor; games like this have no Z plane, only an X & Y. Therefore, for the game to make sense, you have to assume that every single thing in the game is on the same spot in the Z plane, just with different coordinates on the X/Y planes. How weird would it look if a bullet zoomed across the screen, went through you without hitting you, but then impacted a member of the opposite team standing a few feet in front of you, apparently on the exact same surface? But if it's perfect 2d then why is there a background?  
					
  
			 | 
		
		
			| Sun May 24, 2009 3:22 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Ragdollmaster 
				
				
					 Joined: Sun Dec 16, 2007 12:09 am Posts: 1115 Location: Being The Great Juju
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						Perfect 2-D in the sense that all of the processing is done on one flat plane. Background images are just illusions. As you can't actually interact with the background, it's logical to assume that it's a completely separate X/Y plane than the tangible X/Y plane that CC uses for processing gameplay. Now, if the two were connected, the distance between them would be considered the Z plane, and you would be able to move between all the separate X/Y planes. Kind of like in LittleBigPlanet. 
					
  
			 | 
		
		
			| Sun May 24, 2009 3:37 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 akblabla 
				
				
					 Joined: Wed May 20, 2009 3:10 pm Posts: 366 Location: Århus, Denmark
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						Quote: How weird would it look if a bullet zoomed across the screen, went through you without hitting you, but then impacted a member of the opposite team standing a few feet in front of you, apparently on the exact same surface? I dont think that would be a problem cause the idea with a 2d game is (often) that it is a illusion of the 3d version but with better control and you look from the side. In that situation that you descripted It could make sense cause in the real world you wouldnt stand and fight with another and another guy and mabey 5 other guys in the same x, y or z axe! There for there could be a big chance that one of the guys behind him is a bit from the side so he could shoot pass him. The idea of removing frendly fire is a really good idea i think, at least that you could turn it on and of in options.  
					
  
			 | 
		
		
			| Thu May 28, 2009 5:26 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Azukki 
				
				
					 Joined: Sat Nov 03, 2007 9:44 pm Posts: 1916 Location: Flint Hills
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						Weeeeeell I tried, and failed. But I think I've got the right general idea. No errors, it just doesn't work. Maybe someone who knows what they're doing could fix this up? 
					
						
  
						Attachments: 
						
						
			File comment: DOES NOT WORK
		
			
				  
				NOFFGUN.rte.rar [1.72 KiB]
			
			Downloaded 141 times
		
		
	 
						
						 
					
			 | 
		
		
			| Thu May 28, 2009 10:12 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 robolee 
				
				
					 Joined: Fri May 11, 2007 4:30 pm Posts: 1040 Location: England
				 
				 
			 | 
			
				
				  Re: Friendly Fire  
					
						I just thought of a way that data could implement this, you know how guns have FireIgnoreThis, well there could be an option (in skirmish) to turn friendly fire off which basically makes FireIgnoreThis work for your whole team. That is the only way I think data would ever have a friendly fire off option (just extending a function, only for skirmish). 
					
  
			 | 
		
		
			| Thu May 28, 2009 11:29 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
	
		 |