phoenixf129
							
								Poster 
								
								Posts: 476
								
								  
								I Rise from the Ashes.
								
								
								
								
								
							  
						 | 
						
							
								  | 
								
									
									 «  on: September 09, 2010, 01:43:12 AM »  | 
								
								 | 
							  
							 
							function GAMEMODE.WaterExtinguish() 	for _, v in ipairs(ents.GetAll()) do 		if v:WaterLevel() > 0 and v:IsOnFire() then 			v:Extinguish() 		end  	end end hook.Add( "Think", "TTT_WaterExtinguish", GAMEMODE.WaterExtinguish )
  This makes it so if anything is on fire, and is dunked in water, the flames go out.
  Good for those maps where the player is on fire, and needs to help themselves :)
  Might want to add this into TTT itself for realism. 
						 | 
					 
					
						
							
								| 
								 | 
							 
								| 
									« Last Edit: September 09, 2010, 01:47:52 AM by phoenixf129 »
								 | 
								
							  
							 
							Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it. 
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						| 
							Bad King Urgrain
							
						 | 
						
							
								  | 
								
									
									 « Reply #1 on: September 09, 2010, 07:33:46 AM »  | 
								
								 | 
							  
							 
							Looping over every single entity in the game on every single tick is unacceptable for server performance. 
						 | 
					 
					
						| 
							
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						| 
							bigbadboo
							 
								Poster 
								 
								Posts: 287 
								 
								
								
								
								 
							 
						 | 
						
							
								  | 
								
									
									 « Reply #2 on: September 09, 2010, 08:37:05 AM »  | 
								
								 | 
							  
							 
							Looping over every single entity in the game on every single tick is unacceptable for server performance.
  Can we just do it for players, fire traps might be used at some point.  
						 | 
					 
					
						| 
							
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						| 
							Bad King Urgrain
							
						 | 
						
							
								  | 
								
									
									 « Reply #3 on: September 09, 2010, 10:23:03 AM »  | 
								
								 | 
							  
							 
							True, I've added it into the drowning code now. Incendiary/C4 fires will now also extinguish under water. That accounts for pretty much all important burning things. 
						 | 
					 
					
						| 
							
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						
							Meta-Stick
							
								Poster 
								
								Posts: 481
								
								  
								it contains, a daisy box
								
								
								
								
								
							  
						 | 
						
							
								  | 
								
									
									 « Reply #4 on: September 09, 2010, 10:33:53 AM »  | 
								
								 | 
							  
							 
							Just a safety question from the get go, little pools of water won't extinguish players right? 
						 | 
					 
					
						
							
							 
							Just grab some bottles and stick them in girls...
   
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						| 
							Bad King Urgrain
							
						 | 
						
							
								  | 
								
									
									 « Reply #5 on: September 09, 2010, 10:45:04 AM »  | 
								
								 | 
							  
							 
							You need to be fully submerged, to the degree where you will drown if you stay too long. 
						 | 
					 
					
						| 
							
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						| 
							bigbadboo
							 
								Poster 
								 
								Posts: 287 
								 
								
								
								
								 
							 
						 | 
						
							
								  | 
								
									
									 « Reply #6 on: September 09, 2010, 10:59:37 AM »  | 
								
								 | 
							  
							 
							Now to design an underwater map and alls well. 
						 | 
					 
					
						| 
							
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						
							Handy_man
							
								Poster 
								
								Posts: 308
								
								  
								SNG community admin
								
								
								
								
								
							  
						 | 
						
							
								  | 
								
									
									 « Reply #7 on: September 09, 2010, 05:53:05 PM »  | 
								
								 | 
							  
							 
							Now to design an underwater map and alls well.
  This: http://www.garrysmod.org/downloads/?a=view&id=96947  
						 | 
					 
					
						
							
							 
							
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						
							Ajunk
							
								Build Tester 
								 
								Posts: 14000
								
								  
								ಠ_ಠ
								
								
								
								
								
							  
						 | 
						
							
								  | 
								
									
									 « Reply #8 on: September 09, 2010, 06:29:07 PM »  | 
								
								 | 
							  
							 
							a href="http://www.bioshockgame.com/">This: http://www.garrysmod.org/downloads/?a=view&id=96947
  Fix'd. Sorry for the joke rehash, but I had to.  
						 | 
					 
					
						
							
							 
							You're all the most fucking heartless people
   
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						
							Citizen_001
							
								Build Tester 
								 
								Posts: 3733
								
								  
								Male_07
								
								
								
								
								
							  
						 | 
						
							
								  | 
								
									
									 « Reply #9 on: September 09, 2010, 07:33:07 PM »  | 
								
								 | 
							  
							 
							:l 
						 | 
					 
					
						
							
							 
							1200+ hours in Source SDK, and the Source engine is still a mystery. The first time you see him he comes onto you so hard. [/quote]  
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						
							-Mythic-
							
								Build Tester 
								 
								Posts: 1353
								
								  
								Dangerous like a fire in a nursing home.
								
								
								
								
								
							  
						 | 
						
							
								  | 
								
									
									 « Reply #10 on: September 09, 2010, 10:53:01 PM »  | 
								
								 | 
							  
							 
							are you suggesting that someone make a bioshock map? 
						 | 
					 
					
						
							
							 
							<br />You post on a forum where one person openly admits to stalking two people and is possibly a pedophile, a Sinophobe who constantly refers to himself in third person, and a Canadian.<br />  
						 | 
					 
				 
			 |  
		 
	 | 
	
		
		
			
				
					
						
							Citizen_001
							
								Build Tester 
								 
								Posts: 3733
								
								  
								Male_07
								
								
								
								
								
							  
						 | 
						
							
								  | 
								
									
									 « Reply #11 on: September 09, 2010, 11:01:13 PM »  | 
								
								 | 
							  
							 
							No it's a lame joke about my map. 
						 | 
					 
					
						
							
							 
							1200+ hours in Source SDK, and the Source engine is still a mystery. The first time you see him he comes onto you so hard. [/quote]  
						 | 
					 
				 
			 |  
		 
	 |