View unanswered posts | View active topics It is currently Wed Jul 03, 2024 7:53 am



This topic is locked, you cannot edit posts or make further replies.  [ 28 posts ]  Go to page 1, 2  Next
 Throwing knives 
Author Message
User avatar

Joined: Fri Jan 01, 2010 4:37 am
Posts: 112
Location: Why do you wanna know? Are you a serial killer?!?
Post Throwing knives
Hello, I'm a noob. :oops: Because of this, I don't know how to mod well. :oops: 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
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Post Re: Throwing knives
I'll give it a go, be back in a jiffy.


Wed Feb 10, 2010 6:07 am
Profile WWW
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Post Re: Throwing knives
Yes 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
Profile
User avatar

Joined: Tue Jan 12, 2010 8:25 pm
Posts: 400
Location: mukilteo, wa
Post Re: Throwing knives
Let 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
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Post Re: Throwing knives
Its the sticking into the enemy part I'm working on now.


Wed Feb 10, 2010 7:05 am
Profile WWW
User avatar

Joined: Fri Jan 01, 2010 4:37 am
Posts: 112
Location: Why do you wanna know? Are you a serial killer?!?
Post Re: Throwing knives
Thanks a lot everyone! :grin:


Thu Feb 11, 2010 3:59 am
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Post Re: Throwing knives
I'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
Profile WWW
User avatar

Joined: Fri Jan 01, 2010 4:37 am
Posts: 112
Location: Why do you wanna know? Are you a serial killer?!?
Post Re: Throwing knives
I guess whatever works best.


Fri Feb 12, 2010 4:38 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Post Re: Throwing knives
just 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
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Post Re: Throwing knives
Errr, 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? :oops:


Fri Feb 12, 2010 4:49 am
Profile WWW
User avatar

Joined: Sun Aug 09, 2009 9:26 am
Posts: 1633
Post Re: Throwing knives
You 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
Profile
User avatar

Joined: Fri Jan 01, 2010 4:37 am
Posts: 112
Location: Why do you wanna know? Are you a serial killer?!?
Post Re: Throwing knives
Is 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
Profile
User avatar

Joined: Sun Aug 09, 2009 9:26 am
Posts: 1633
Post Re: Throwing knives
I 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
Profile
User avatar

Joined: Fri Jan 01, 2010 4:37 am
Posts: 112
Location: Why do you wanna know? Are you a serial killer?!?
Post Re: Throwing knives
Yeah. 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
Profile
User avatar

Joined: Sun Aug 09, 2009 9:26 am
Posts: 1633
Post Re: Throwing knives
That's probably be a good plan.


Fri Feb 12, 2010 5:20 am
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 28 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.026s | 13 Queries | GZIP : Off ]