Blockland Forums > Suggestions & Requests
Javelin Rocket Launcher
Blobeh:
--- Quote from: Robo Noob on November 26, 2009, 09:16:05 PM ---Impossible, if it has a target then why would it go up then at the target?
--- End quote ---
I don't think it is impossible. Notice how I use the word "midpoint." I'm no expert with scripts, but I think there would probably be a way to find the distance between the player and the target (possible, laser pointer is an example) and then divide that by two (you can divide in scripts). Because the projectile will always have a specific angle at which it will rise, you can just multiply how long the projectile will be rising by the distance / 2. After that time is up, the projectile will go down at the exact opposite velocity than it went up, causing the slope the rocket is creating to be opposite.
EDIT:
Also, the part about you saying why it would go up first is because that's what the javelin does.
http://www.youtube.com/watch?v=d2ObtqZu8Nw
Notice how the rocket flies up, then eventually flies down.
Robo Noob:
--- Quote from: Dapizzanator on November 26, 2009, 09:19:08 PM ---It'd probably take a crapload of scripting, I have no clue, though, but a delay?
Also, maybe it could draw (another) client-sided box around the target while zoomed in?
--- End quote ---
Still impossible lol
--- Quote ---Also also, why is the bolded a problem?
--- End quote ---
--- Quote from: Dapizzanator on November 26, 2009, 09:05:24 PM ---Here's the difference: It has a sight, but not a scope, meaning it doesn't zoom.
--- End quote ---
--- Quote from: Blobeh on November 26, 2009, 09:40:23 PM ---I don't think it is impossible. Notice how I use the word "midpoint." I'm no expert with scripts, but I think there would probably be a way to find the distance between the player and the target (possible, laser pointer is an example) and then divide that by two (you can divide in scripts). Because the projectile will always have a specific angle at which it will rise, you can just multiply how long the projectile will be rising by the distance / 2. After that time is up, the projectile will go down at the exact opposite velocity than it went up, causing the slope the rocket is creating to be opposite.
--- End quote ---
Yes you could use algorithms, but still you can't delay a target, if you set its target you set its target. Once it is going one way, you can't make it go another (with the exception of gravity, which is not a /\ motion unless you want to gun to be very small). By this I do not mean you can't set a target, but you can't set one target then another out of nowhere.
AND we already have enough rockets already. [/thread]
Blobeh:
--- Quote from: Robo Noob on November 26, 2009, 09:43:14 PM ---Yes you could use algorithms, but still you can't delay a target, if you set its target you set its target. Once it is going one way, you can't make it go another (with the exception of gravity, which is not a /\ motion unless you want to gun to be very small). By this I do not mean you can't set a target, but you can't set one target then another out of nowhere.
AND we already have enough rockets already. [/thread]
--- End quote ---
This thread isn't dead until someone who is notably advanced in scripting says so.
When you fire a projectile, it doesn't find a target, meaning weapons don't create a specific spot to travel. Projectiles only go straight, or fall if they have gravity. You aren't creating any "targets out of nowhere."
The midpoint is not a target, for the record. You can think of it more as a "checkpoint."
Dapizzanator:
Robo, what I meant by the sight/scope statement was, it doesn't zoom by itself. It just shows a model around it (Think Old School Rifle). Zooming isn't a problem; it'd find that target, anyway.
Pi:
--- Quote from: Dapizzanator on November 26, 2009, 09:05:24 PM ---Anyway, I'm not talking about the thing you'de spear people with.
--- End quote ---
Hmm... would be cool to have a larger version of spear that doesn't explode on contact.