| Author | Message | 
        
			| Potatamoto 
					Joined: Fri Jan 01, 2010 4:37 am
 Posts: 112
 Location: Why do you wanna know? Are you a serial killer?!?
   |   Throwing knivesHello, I'm a noob.     Because of this, I don't know how to mod well.     So I was wondering if someone could make a throwing knife for me. I want one that would spin, stick into people, and kill them instantly. Is this possible? Would it need lua? thx.
 
 | 
		
			| Wed Feb 10, 2010 3:10 am | 
					
					   | 
	
	
		|  | 
	
			| CrazyMLC 
					Joined: Fri Dec 22, 2006 4:20 am
 Posts: 4772
 Location: Good news everyone!
   |   Re: Throwing knivesI'll give it a go, be back in a jiffy. 
 
 | 
		
			| Wed Feb 10, 2010 6:07 am | 
					
					     | 
	
	
		|  | 
	
			| dragonxp 
					Joined: Wed Sep 09, 2009 3:16 am
 Posts: 3032
 Location: Somewhere in the universe
   |   Re: Throwing knivesYes you got CrazyMLC nothing can go wrong![Except maybe a slight disapointment]
 
 Back=On topic: Yes i'd very much like to see this to.
 
 
 | 
		
			| Wed Feb 10, 2010 6:11 am | 
					
					   | 
	
	
		|  | 
	
			| salt_1219 
					Joined: Tue Jan 12, 2010 8:25 pm
 Posts: 400
 Location: mukilteo, wa
   |   Re: Throwing knivesLet me brain storm on this a sec.Okay so the spinning could just be a animation of a projectile with a high sharp value maybe?
 Make the projectile move slow compared to bullets and have a good arch to it
 
 It could be emitted from a FireArm that's invisible, but has a magazine that looks like a knife.
 The FireArm has only one shot, and the magazine disappears instead of falling when empty, when it reloads the knife appears.
 
 This seems vary do-able to me.
 
 
 | 
		
			| Wed Feb 10, 2010 6:24 am | 
					
					   | 
	
	
		|  | 
	
			| CrazyMLC 
					Joined: Fri Dec 22, 2006 4:20 am
 Posts: 4772
 Location: Good news everyone!
   |   Re: Throwing knivesIts the sticking into the enemy part I'm working on now. 
 
 | 
		
			| Wed Feb 10, 2010 7:05 am | 
					
					     | 
	
	
		|  | 
	
			| Potatamoto 
					Joined: Fri Jan 01, 2010 4:37 am
 Posts: 112
 Location: Why do you wanna know? Are you a serial killer?!?
   |   Re: Throwing knivesThanks a lot everyone!   
 
 | 
		
			| Thu Feb 11, 2010 3:59 am | 
					
					   | 
	
	
		|  | 
	
			| CrazyMLC 
					Joined: Fri Dec 22, 2006 4:20 am
 Posts: 4772
 Location: Good news everyone!
   |   Re: Throwing knivesI'm sorry, I can't figure out how to make them stick into people. Do you mind if they just kinda fall to the floor, or disappear when they hit someone? 
 
 | 
		
			| Fri Feb 12, 2010 4:36 am | 
					
					     | 
	
	
		|  | 
	
			| Potatamoto 
					Joined: Fri Jan 01, 2010 4:37 am
 Posts: 112
 Location: Why do you wanna know? Are you a serial killer?!?
   |   Re: Throwing knivesI guess whatever works best. 
 
 | 
		
			| Fri Feb 12, 2010 4:38 am | 
					
					   | 
	
	
		|  | 
	
			| Grif REAL AMERICAN HERO 
					Joined: Sat Jan 27, 2007 10:25 pm
 Posts: 5655
   |   Re: Throwing knivesjust have them gib into a pseudoattachable that finds the nearest actor and sticks to it (store the x/y displacement from actor to knife and update knife position to that)
 you'd probably want to create a real/fake wound along with that
 
 
 | 
		
			| Fri Feb 12, 2010 4:39 am | 
					
					   | 
	
	
		|  | 
	
			| CrazyMLC 
					Joined: Fri Dec 22, 2006 4:20 am
 Posts: 4772
 Location: Good news everyone!
   |   Re: Throwing knivesErrr, right. I was thinking something like that but I have no idea how to do it. My Lua knowledge is pretty limited. Would you mind writing some code, Grif?  
 
 | 
		
			| Fri Feb 12, 2010 4:49 am | 
					
					     | 
	
	
		|  | 
	
			| Benpasko 
					Joined: Sun Aug 09, 2009 9:26 am
 Posts: 1633
   |   Re: Throwing knivesYou should cannibalize code from the Railway Rifle or Harpoon Gun mods. Remove the launching and pinning effects, and you'll be able to stick things in people all you want. 
 
 | 
		
			| Fri Feb 12, 2010 5:07 am | 
					
					   | 
	
	
		|  | 
	
			| Potatamoto 
					Joined: Fri Jan 01, 2010 4:37 am
 Posts: 112
 Location: Why do you wanna know? Are you a serial killer?!?
   |   Re: Throwing knivesIs it too much to ask to make sure it sticks in the enemy when the blade is actually pointed to them? If you try to do the sticking in then it might end up as the handle sticking into them right? Correct me if I'm wrong or if that's just not how it works.
 EDIT: Basically what I'm saying is that you'll throw the knife and it will end up as the handle on the actor before the blade sticks in.
 
 
 | 
		
			| Fri Feb 12, 2010 5:12 am | 
					
					   | 
	
	
		|  | 
	
			| Benpasko 
					Joined: Sun Aug 09, 2009 9:26 am
 Posts: 1633
   |   Re: Throwing knivesI don't know if it'd be possible to avoid handle sticks, if you want it to rotate. I guess first you should get any sort of working prototype out, and iron out that kind of minor thing at some later point. 
 
 | 
		
			| Fri Feb 12, 2010 5:14 am | 
					
					   | 
	
	
		|  | 
	
			| Potatamoto 
					Joined: Fri Jan 01, 2010 4:37 am
 Posts: 112
 Location: Why do you wanna know? Are you a serial killer?!?
   |   Re: Throwing knivesYeah. Maybe for now we should just ignore the spinning and throw the knife straight? Like how Duh102's throwing knives did. 
 
 | 
		
			| Fri Feb 12, 2010 5:18 am | 
					
					   | 
	
	
		|  | 
	
			| Benpasko 
					Joined: Sun Aug 09, 2009 9:26 am
 Posts: 1633
   |   Re: Throwing knivesThat's probably be a good plan. 
 
 | 
		
			| Fri Feb 12, 2010 5:20 am | 
					
					   | 
	
	
		|  | 
	
	
		|  |