Project X Forums



It is currently Thu Mar 28, 2024 11:36 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Bazooka gun, like mines gun
PostPosted: Fri Jun 17, 2016 12:13 pm 
Offline

Joined: Sat Jun 11, 2016 3:57 pm
Posts: 7
How am I supposed to do Bazooka guns maximum 5 rocket? So as the Pyroman Mines Gun. Sorry my english.


Top
 Profile  
Reply with quote  
 Post subject: Re: Bazooka gun, like mines gun
PostPosted: Fri Jun 17, 2016 5:51 pm 
Offline
User avatar

Joined: Mon Dec 05, 2011 1:14 am
Posts: 242
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Bazooka gun, like mines gun
PostPosted: Sat Jun 18, 2016 9:38 am 
Offline

Joined: Sat Jun 11, 2016 3:57 pm
Posts: 7
you're programmed by you? it works! And How to change Indian nuclear test sound? :) Thank you, Curtis.


Top
 Profile  
Reply with quote  
 Post subject: Re: Bazooka gun, like mines gun
PostPosted: Sat Jun 18, 2016 5:57 pm 
Offline
User avatar

Joined: Mon Dec 05, 2011 1:14 am
Posts: 242
np Marciko.....that piece of code is actually on the documentation site somewhere.....


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 40 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Skin by Lucas Kane