Data Realms Fan Forums
http://45.55.195.193/

Throwing knives
http://45.55.195.193/viewtopic.php?f=75&t=17788
Page 1 of 2

Author:  Potatamoto [ Wed Feb 10, 2010 3:10 am ]
Post subject:  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.

Author:  CrazyMLC [ Wed Feb 10, 2010 6:07 am ]
Post subject:  Re: Throwing knives

I'll give it a go, be back in a jiffy.

Author:  dragonxp [ Wed Feb 10, 2010 6:11 am ]
Post subject:  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.

Author:  salt_1219 [ Wed Feb 10, 2010 6:24 am ]
Post subject:  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.

Author:  CrazyMLC [ Wed Feb 10, 2010 7:05 am ]
Post subject:  Re: Throwing knives

Its the sticking into the enemy part I'm working on now.

Author:  Potatamoto [ Thu Feb 11, 2010 3:59 am ]
Post subject:  Re: Throwing knives

Thanks a lot everyone! :grin:

Author:  CrazyMLC [ Fri Feb 12, 2010 4:36 am ]
Post subject:  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?

Author:  Potatamoto [ Fri Feb 12, 2010 4:38 am ]
Post subject:  Re: Throwing knives

I guess whatever works best.

Author:  Grif [ Fri Feb 12, 2010 4:39 am ]
Post subject:  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

Author:  CrazyMLC [ Fri Feb 12, 2010 4:49 am ]
Post subject:  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:

Author:  Benpasko [ Fri Feb 12, 2010 5:07 am ]
Post subject:  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.

Author:  Potatamoto [ Fri Feb 12, 2010 5:12 am ]
Post subject:  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.

Author:  Benpasko [ Fri Feb 12, 2010 5:14 am ]
Post subject:  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.

Author:  Potatamoto [ Fri Feb 12, 2010 5:18 am ]
Post subject:  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.

Author:  Benpasko [ Fri Feb 12, 2010 5:20 am ]
Post subject:  Re: Throwing knives

That's probably be a good plan.

Page 1 of 2 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/