1
Add-Ons / Client-Sided Artillery Calculator (New GUI version by Visolator)
« on: December 15, 2013, 12:43:31 AM »
Do you ever get tired of using trial and error to determine the vector required to fire a ballistic projectile?
Well, now you can calculate it automatically using this client-sided add-on! Although this was created for the sole purpose of griefing servers, I discovered that there are other beneficial uses for this add-on!
This system can be set up in 4 steps and can be done on any server.
STEP 1: Stand at the position you want to projectiles to hit and type "saveTarget();" in the console. The function will output the target vector.
STEP 2: Stand directly on top of the brick that's firing the projectiles and type "savePos();" in the console. The function will output the position vector.
STEP 3: Type "calcVec(%vz, %gm)" into the console with %vz being the desired vertical velocity you want to launch the projectile at and %gm being the gravitymod of the projectile, which is usually 1.0. The default values (if you leave the arguments blank) are 50 and 1.0 respectively.
STEP 4: Copy the vector printed by the "calcVec" function into the spawnProjectile event.
If everything is done right, the projectile should land at the given target.
Hopefully this will be useful tool for builders who want to set up a simple artillery system.
DOWNLOAD (OLD VERSION)
Thanks to Visolator, we now have a new version with a gui!
GUI VERSION BY VISOLATOR (v2)
Well, now you can calculate it automatically using this client-sided add-on! Although this was created for the sole purpose of griefing servers, I discovered that there are other beneficial uses for this add-on!
This system can be set up in 4 steps and can be done on any server.
STEP 1: Stand at the position you want to projectiles to hit and type "saveTarget();" in the console. The function will output the target vector.
STEP 2: Stand directly on top of the brick that's firing the projectiles and type "savePos();" in the console. The function will output the position vector.
STEP 3: Type "calcVec(%vz, %gm)" into the console with %vz being the desired vertical velocity you want to launch the projectile at and %gm being the gravitymod of the projectile, which is usually 1.0. The default values (if you leave the arguments blank) are 50 and 1.0 respectively.
STEP 4: Copy the vector printed by the "calcVec" function into the spawnProjectile event.
If everything is done right, the projectile should land at the given target.
Hopefully this will be useful tool for builders who want to set up a simple artillery system.
DOWNLOAD (OLD VERSION)
Thanks to Visolator, we now have a new version with a gui!
GUI VERSION BY VISOLATOR (v2)