| Author | 
            Message | 
        
        
			| 
				
				 spungypirate 
				
				
					 Joined: Tue Feb 16, 2010 6:07 am Posts: 98
				 
				 
			 | 
			
				
				  Better Knife  
					
						Hey, so I have been off and on making mods and little things. The other day I wanted a knife to butcher zombies with so I made one. After some tweaking It can out alright, can kill someone not wearing armor in 2 hits are so. 
  But my real question is whether there is a better way of making it fire then having it fire an small invisible particle with a lifetime of .5 seconds? 
  That's what I have it doing atm, but I wanted a better way, maybe something that had it fire in an arc. Any pointers would be appreciated. I can post it as well if someone wants it. 
					
  
			 | 
		
		
			| Fri May 21, 2010 2:22 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 none 
				
				
					 Joined: Fri Dec 18, 2009 11:00 pm Posts: 167
				 
				 
			 | 
			
				
				  Re: Better Knife  
					
						Gravity makes thing fall down, think  mass. what he said \/ \/    
					
							
  
							
    							Last edited by none on Fri May 21, 2010 3:12 pm, edited 1 time in total. 
    						 
						
  
			 | 
		
		
			| Fri May 21, 2010 2:36 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 411570N3 
				
				
					 Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
				 
				 
			 | 
			
				
				  Re: Better Knife  
					
						Mass doesn't effect gravity. If you set GlobAccScalar to values higher than 1, it will increase its gravity proportionately. Decimals are, of course, accepted, as are negatives. You could also add AirResistance, which takes that fraction of the velocity away every frame. 
					
  
			 | 
		
		
			| Fri May 21, 2010 2:46 pm | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 spungypirate 
				
				
					 Joined: Tue Feb 16, 2010 6:07 am Posts: 98
				 
				 
			 | 
			
				
				  Re: Better Knife  
					
						So if I were to increase its air resistance it would fall downward, thus creating an arc? I am at school so I can't test anything, though if I remember, I will tonight. 
					
  
			 | 
		
		
			| Fri May 21, 2010 4:50 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 411570N3 
				
				
					 Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
				 
				 
			 | 
			
				
				  Re: Better Knife  
					
						If you increase its air resistance it will slow down faster. If you increase its gravity it will fall faster. A combination of the two should work. Air resistance will slow the effect of gravity, however. 
					
  
			 | 
		
		
			| Fri May 21, 2010 5:01 pm | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 spungypirate 
				
				
					 Joined: Tue Feb 16, 2010 6:07 am Posts: 98
				 
				 
			 | 
			
				
				  Re: Better Knife  
					
						All right, thanks for helping me, I'll try it at home. Should I upload it anyway? Its kinda fun to use. 
					
  
			 | 
		
		
			| Fri May 21, 2010 9:13 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Shook 
				
				
					 Joined: Fri Feb 16, 2007 8:43 pm Posts: 1695 Location: AH SHIT FUCK AUGH
				 
				 
			 | 
			
				
				  Re: Better Knife  
					
						You talking about a thrown knife or a swung knife? If it's the latter, then just set ParticleSpreadRange (measured in degrees i think) on the weapon to something rather high, and make sure the knife fires several particles at once with very low (10 ms) lifetime. This is a pseudo-decent illusion, though it looks odd against terrain unless you make it fire LOADS of particles, which would carve the arc out entirely instead of making holes. This would make it extremely deadly as well, though. Getting hit by 50 sharp particles at the same time is fatal for most vanilla actors. 
					
  
			 | 
		
		
			| Fri May 21, 2010 11:04 pm | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 411570N3 
				
				
					 Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
				 
				 
			 | 
			
				
				  Re: Better Knife  
					
						Reference Darlos' pulse katana. Anyway, couldn't you make all the particles delete when about to hit terrain now anyways? 
					
  
			 | 
		
		
			| Sat May 22, 2010 4:21 am | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 spungypirate 
				
				
					 Joined: Tue Feb 16, 2010 6:07 am Posts: 98
				 
				 
			 | 
			
				
				  Re: Better Knife  
					
						It is a swung knife. Yea, I like the sweep of particles idea. Will get that implemented tomorrow. When I got home, got caught up in WoW. Will mess with it later for sure though. Thanks for the help. 
					
  
			 | 
		
		
			| Sat May 22, 2010 5:39 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
	
		 |