Project X Forums http://px.worms2d.info/forum/ |
|
Bazooka gun, like mines gun http://px.worms2d.info/forum/viewtopic.php?f=15&t=2074 |
Page 1 of 1 |
Author: | Marciko [ Fri Jun 17, 2016 12:13 pm ] |
Post subject: | Bazooka gun, like mines gun |
How am I supposed to do Bazooka guns maximum 5 rocket? So as the Pyroman Mines Gun. Sorry my english. |
Author: | Curtis [ Fri Jun 17, 2016 5:51 pm ] |
Post subject: | Re: Bazooka gun, like mines gun |
Make a new scheme file... Select Minigun and change these settings: "Not used" = 3 "Weapon sprite" = 7 "Count" = -1 "Bullet count" = 5 (Gun Tab) create a script in the scheme file and paste this inside: //--------------------------------------------------------------------------------------// override void CWorm::FireFinal(CWeapon* Weap,CShootDesc* Desc) { if(Weap->CheckName("Minigun")) { Desc->SpX = (TurnSide * (0.6 - sqrt((0.5 - FireAngle)*(0.5 - FireAngle)))) * 30; Desc->SpY = 30*(0.4 - FireAngle); super(GetWeaponByName("Bazooka"), Desc); return; } super; } //--------------------------------------------------------------------------------------// The 30's in the script can be -/+ to make missiles fire shorter/farther. After doing this the "Minigun" should fire 5 missiles. You can remove wind effect also by tweaking the bazooka settings. |
Author: | Marciko [ Sat Jun 18, 2016 9:38 am ] |
Post subject: | Re: Bazooka gun, like mines gun |
you're programmed by you? it works! And How to change Indian nuclear test sound? Thank you, Curtis. |
Author: | Curtis [ Sat Jun 18, 2016 5:57 pm ] |
Post subject: | Re: Bazooka gun, like mines gun |
np Marciko.....that piece of code is actually on the documentation site somewhere..... |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |