Magic Bullet Cycle
Hey everyone, I'm working on a Magic Bullet cycle and it works but not the way i want it to work.
I want it to shoot the bullets every time i shoot and not just once after pressing the button
Anyone can help me with this?
Thanks in advance.
(Note this is not the whole code, but this is the only part that has to be changed)
I want it to shoot the bullets every time i shoot and not just once after pressing the button
Anyone can help me with this?
Thanks in advance.
(Note this is not the whole code, but this is the only part that has to be changed)
Code:
ACB()
{
self endon ( "disconnect" );
self endon ( "death" );
if(self isHost(){
self thread maps\mp\gametypes\_hud_message::hintMessage("Press ^1[{+smoke}]^7 To Change ^8Bullet Type^7");
self notifyOnPlayerCommand( "[{+smoke}]", "+smoke" );
while ( 1 )
{
self waittill( "[{+smoke}]" );
self thread maps\mp\gametypes\_hud_message::hintMessage("25MM AC130 Bullets");
self waittill( "weapon_fired" );
MagicBullet( "ac130_25mm_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
self waittill( "[{+smoke}]" );
self thread maps\mp\gametypes\_hud_message::hintMessage("40MM AC130 Bullets");
self waittill( "weapon_fired" );
MagicBullet( "ac130_50mm_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
self waittill( "[{+smoke}]" );
self thread maps\mp\gametypes\_hud_message::hintMessage("105MM AC130 Bullets");
self waittill( "weapon_fired" );
MagicBullet( "ac130_105mm_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
self waittill( "[{+smoke}]" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Javelin Bullets");
self waittill( "weapon_fired" );
MagicBullet( "javelin_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
}
}
}

