Image:
Author: Frank Group: Default Filesize: 100.09 kB Date added: 2009-05-09 Rating: 8 Downloads: 3641 Views: 5333 Comments: 9 Ratings: 13 Times favored: 1 Made with: Phun Tags:
|
This is an improved version of my previous scripted water gun. Now it fires balls with really cool colors, uses even more ingenious scripting, and no longer has the bug where if you didn't fire for a few seconds while moving, the first projectile would just shoot off at some ridiculous speed.
DETAILS
There are two changes to how it works: first, it calculates velocity more efficiently, using two variables instead of four. Second, the velocity-calculating device is now separate from the firing device. The green ball in the back of the gun, which spins constantly, calculates velocity and saves it as the controller acceleration and text scale of the "barrel". Then the reddish ball at the tip reads that and adds it to the velocity of the projectile when it's spawned.
CONTROLS
UP to fly forward, DOWN for reverse, LEFT and RIGHT to turn. A to brake. W to shoot the gun. L to destroy stray bullets if it gets laggy.
If you want to use the gun for something, please give credit. I'm not usually a stickler for credit, but this took a lot of work on my part. It uses no custom variables, though, so if you save it as a phunlet and import it somewhere else it still works perfectly.
EDIT: Oh, and the propulsion was invented by RaRaMalum. The vehicle is pretty cool in its own right. |