Author Topic: A modified Rocket Launcher  (Read 1695 times)

I know that this is a very strange request (and maybe impossible), but what I need is the default Rocket Launcher modified so that it can only be fired if the player shooting it is in the air.

You might be able to make it only fire at only certain angles, is that what you want?

You might be able to make it only fire at only certain angles, is that what you want?

KIND of, I'm going to be making a "Rocket tdm" but putting emphasis on the rocket jumping aspect, therefore, I would have 2 rocket launchers in the players inventory: one that does no damage but propels you just like a normal rocket launcher (I already have this), and then what I'm requesting so that players can't just stay in one spot and spam rockets, they'll have to be in the air to shoot them.

KIND of, I'm going to be making a "Rocket tdm" but putting emphasis on the rocket jumping aspect, therefore, I would have 2 rocket launchers in the players inventory: one that does no damage but propels you just like a normal rocket launcher (I already have this), and then what I'm requesting so that players can't just stay in one spot and spam rockets, they'll have to be in the air to shoot them.

You can only shoot them if they are not touching the ground?

You can only shoot them if they are not touching the ground?

If you mean the player can only shoot the rocket launcher if they are not touching the ground, then yes.

If you mean the player can only shoot the rocket launcher if they are not touching the ground, then yes.

This is an interesting idea.  A reverse Antaeus.  It should be possible.

This is an interesting idea.  A reverse Antaeus.  It should be possible.

Awesome, hopefully someone manages to make it.

I'd assume it'd have something to do with checking the players Z velocity, but I'd have no idea how that'd work with stairs.

I think I saw this somewhere. Oh hey, slimabob!
Yeah, I saw it somewhere, I think...
So it's definitely possible.
If someone can link me to this Antaeus weapon that only fires when you're on the ground, then I could probably script it.

Wait...how would it know what player you're aiming at? You can't use the cross-hair because you would have to be aiming at the player for the entire time for it to check if the player was off the ground or not

Not the target, the user.

Anyway, I think it should also have velocity recoil.

This ought ought be really easy to make..
I know I saw that 'only on ground' script somewhere...

This is easy to do
You have to fire a raycast from the player along his sight line, and have the RL not be able to fire if the raycast hits anything but terrain

This is easy to do
You have to fire a raycast from the player along his sight line, and have the RL not be able to fire if the raycast hits anything but terrain
First of all, v21 would break it.
Second, slopes.
Third, look down and fire.
I don't think that raycast thing will be helpful.

The raycast works for bricks, players, or anything

slimabob wants to have a rocket launcher that only fires in the air, which I interpret to be not able to fire at terrain (for as long as it lasts), or bricks.

I'm not exactly sure what your second and third arguments are, but they are invalid