Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Banshee Weapon to Plasma emg #4063

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 66 additions & 41 deletions scripts/Units/armkam.bos
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#define TA // This is a TA script

#include "sfxtype.h"
#include "exptype.h"
#include "../recoil_common_includes.h"

piece base, lflare, rflare, lfin, rfin, rturret, lturret, thrusta, thrustb, engines;

// Signal definitions
#define SIG_MOVE 2
#define SIGNAL_MOVE 1
#define SIGNAL_FIRE 2


#define IDLEHOVERSCALE 32
#define IDLEHOVERSPEED 60
#define IDLEBASEPIECE base
#include "idlehover.h"
#include "../idlehover.h"

static-var gun_1;
Create()
Expand All @@ -24,10 +23,7 @@ Create()
turn thrusta to x-axis <-90> now;
turn thrustb to x-axis <-90> now;
gun_1=0;
while( get BUILD_PERCENT_LEFT )
{
sleep 400;
}
SLEEP_UNTIL_UNITFINISHED;
start-script IdleHover();
}

Expand All @@ -50,8 +46,8 @@ ExecuteRestoreAfterDelay()
if (Stunned) {
return (1);
}
turn lturret to x-axis <0.000000> speed <50.000000>;
turn rturret to x-axis <0.000000> speed <50.000000>;
turn lturret to x-axis <0.0> speed <50.0>;
turn rturret to x-axis <0.0> speed <50.0>;
}
SetStunned(State)
{
Expand All @@ -73,81 +69,113 @@ RestoreAfterDelay()
#define UNITSIZE 1
#define MAXTILT 100

MoveRate0()
{
start-script RestoreAfterDelay();
signal SIGNAL_MOVE;
set-signal-mask SIGNAL_MOVE;
turn engines to x-axis <0> speed <90>;
turn base to z-axis <0.0> speed <120.0>;
//start-script ProcessFlames();
}

MoveRate1()
{
start-script RestoreAfterDelay();
signal SIG_MOVE;
set-signal-mask SIG_MOVE;
turn base to z-axis <0.000000> speed <120.000000>;
signal SIGNAL_MOVE;
set-signal-mask SIGNAL_MOVE;
turn engines to x-axis <45> speed <90>;
turn base to z-axis <0.0> speed <120.0>;
//start-script ProcessFlames();
}

MoveRate2()
{
start-script RestoreAfterDelay();
signal SIG_MOVE;
set-signal-mask SIG_MOVE;
signal SIGNAL_MOVE;
set-signal-mask SIGNAL_MOVE;
turn engines to x-axis <90> speed <90>;
//start-script ProcessFlames();
sleep 1000;
turn base to z-axis <240.000000> speed <120.000000>;
turn base to z-axis <240.0> speed <120.0>;
wait-for-turn base around z-axis;
turn base to z-axis <120.000000> speed <180.000000>;
turn base to z-axis <120.0> speed <180.0>;
wait-for-turn base around z-axis;
turn base to z-axis <0.000000> speed <120.000000>;
turn base to z-axis <0.0> speed <120.0>;

}

MoveRate3()
{
start-script RestoreAfterDelay();
signal SIG_MOVE;
set-signal-mask SIG_MOVE;
signal SIGNAL_MOVE;
set-signal-mask SIGNAL_MOVE;
//start-script ProcessFlames();
turn base to z-axis <0.000000> speed <120.000000>;
turn base to z-axis <0.0> speed <120.0>;

turn engines to x-axis <90> speed <90>;
}

AimFromPrimary(piecenum)
AimFromWeapon1(pieceIndex)
{
piecenum = base;
pieceIndex = base;
}

AimPrimary(heading, pitch)
AimWeapon1(heading, pitch)
{
return (1);
}

QueryPrimary(piecenum)
QueryWeapon1(pieceIndex)
{
if (gun_1==0)
{
piecenum = lflare;
gun_1=1;
pieceIndex = lflare;
}
else
{
piecenum=rflare;
pieceIndex=rflare;
}
}

Shot1(zero)
{
signal SIGNAL_FIRE;
set-signal-mask SIGNAL_FIRE;

if(gun_1 == 0)
{
emit-sfx 1024 + 0 from lflare;
}
if(gun_1 == 1)
{
emit-sfx 1024 + 0 from rflare;
}
sleep 32;
++gun_1;

if(gun_1>=2)
{
gun_1=0;
}
return(1);
}

FirePrimary()
FireWeapon1()
{
signal SIG_MOVE;
set-signal-mask SIG_MOVE;
signal SIGNAL_MOVE;
set-signal-mask SIGNAL_MOVE;
sleep 200;
turn engines to x-axis <0> speed <90>;

start-script RestoreAfterDelay();
}

StartMoving()
StartMoving(reversing)
{
start-script RestoreAfterDelay();
signal SIG_MOVE;
set-signal-mask SIG_MOVE;
signal SIGNAL_MOVE;
set-signal-mask SIGNAL_MOVE;
move lfin to z-axis [-8] speed [8];
move rfin to z-axis [-8] speed [8];
turn engines to x-axis <90> speed <90>;
Expand All @@ -157,19 +185,16 @@ StartMoving()
StopMoving()
{
start-script RestoreAfterDelay();
signal SIG_MOVE;
set-signal-mask SIG_MOVE;
signal SIGNAL_MOVE;
set-signal-mask SIGNAL_MOVE;
move lfin to z-axis [0] speed [8];
move rfin to z-axis [0] speed [8];

turn engines to x-axis <0> speed <90>;
wait-for-move lfin along z-axis;
}

SweetSpot(piecenum)
{
piecenum = base;
}


Killed(severity, corpsetype)
{
Expand Down
Binary file modified scripts/Units/armkam.cob
Binary file not shown.
Loading