Permalink
Browse files

Add airemp

Make engine fx a bit more nice looking
Give Krow smoother movement
  • Loading branch information...
ForbodingAngel committed Sep 11, 2018
1 parent 38eb36d commit b9605df896c9874404640455c528aee51d5e6af1
View
@@ -61,9 +61,9 @@ local factory = {
[[eamphibbuggy]],
[[eamphibriot]],
[[eamphibmedtank]],
[[edrone]],
[[eraider]],
[[efighter]],
[[egunship2]],
[[ebomber]],
}
Shared.buildListFactory = {}
@@ -126,7 +126,7 @@ Shared.buildListAIOverseer = {
[[eamphibfac]],
[[eairplant]],
----------------- Upgrade 0
[[eraider]],
[[eairemp]],
[[edrone]],
[[elighttank3]],
[[eriottank2]],
@@ -162,7 +162,7 @@ Shared.buildListAIOverseer = {
[[edrone]],
[[ehbotkarganneth]],
----------------- Upgrade 1
[[eraider_up1]],
[[eairemp_up1]],
[[edrone_up1]],
[[elighttank3_up1]],
[[eriottank2_up1]],
@@ -196,7 +196,7 @@ Shared.buildListAIOverseer = {
[[ekrow_up1]],
[[ehbotkarganneth_up1]],
----------------- Upgrade 2
[[eraider_up2]],
[[eairemp_up2]],
[[edrone_up2]],
[[elighttank3_up2]],
[[eriottank2_up2]],
@@ -230,7 +230,7 @@ Shared.buildListAIOverseer = {
[[ekrow_up2]],
[[ehbotkarganneth_up2]],
----------------- Upgrade 3
[[eraider_up3]],
[[eairemp_up3]],
[[edrone_up3]],
[[elighttank3_up3]],
[[eriottank2_up3]],
@@ -446,37 +446,37 @@ Shared.buildListAllTerrainFactory_up3 = {
--
Shared.buildListAirPlant = {
-- [[edrone]],
[[eraider]],
[[efighter]],
[[egunship2]],
[[ebomber]],
[[eairemp]],
[[etransport]],
[[ekrow]],
}
Shared.buildListAirPlant_up1 = {
-- [[edrone_up1]],
[[eraider_up1]],
[[efighter_up1]],
[[egunship2_up1]],
[[ebomber_up1]],
[[eairemp_up1]],
[[etransport_up1]],
[[ekrow_up1]],
}
Shared.buildListAirPlant_up2 = {
-- [[edrone_up2]],
[[eraider_up2]],
[[efighter_up2]],
[[egunship2_up2]],
[[ebomber_up2]],
[[eairemp_up2]],
[[etransport_up2]],
[[ekrow_up2]],
}
Shared.buildListAirPlant_up3 = {
-- [[edrone_up3]],
[[eraider_up3]],
[[efighter_up3]],
[[egunship2_up3]],
[[ebomber_up3]],
[[eairemp_up3]],
[[etransport_up3]],
[[ekrow_up3]],
}
@@ -2,33 +2,33 @@ effectUnitDefs = {
------------------
------------------
edrone = {
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=20, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=20, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=20, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=20, piece="rengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=40, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=40, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=40, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 2, length=40, piece="rengine2", onActive=true}},
},
efighter = {
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="fengine3", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="fengine4", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="rengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=50, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=50, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=50, piece="fengine3", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=50, piece="fengine4", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=50, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=50, piece="rengine2", onActive=true}},
},
egunship2 = {
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="rengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=50, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=50, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=50, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=50, piece="rengine2", onActive=true}},
},
ebomber = {
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=25, piece="rengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=100, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=100, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=100, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=100, piece="rengine2", onActive=true}},
},
eairengineer = {
@@ -39,10 +39,10 @@ effectUnitDefs = {
},
escout = {
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=35, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=35, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=35, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=35, piece="rengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=70, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=70, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=70, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=70, piece="rengine2", onActive=true}},
},
eraider = {
@@ -52,15 +52,22 @@ effectUnitDefs = {
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=35, piece="rengine2", onActive=true}},
},
eairemp = {
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=70, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=70, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=70, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=70, piece="rengine2", onActive=true}},
},
ekrow = {
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=60, piece="engine1", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=60, piece="engine2", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=60, piece="engine3", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=60, piece="engine4", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=60, piece="engine5", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=60, piece="engine6", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=60, piece="engine7", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=60, piece="engine8", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=120, piece="engine1", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=120, piece="engine2", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=120, piece="engine3", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=120, piece="engine4", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=120, piece="engine5", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=120, piece="engine6", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=120, piece="engine7", onActive=true, emitVector = {0, 1, 0}}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 16, length=120, piece="engine8", onActive=true, emitVector = {0, 1, 0}}},
},
eairplant = {
@@ -75,14 +82,14 @@ effectUnitDefs = {
},
etransport = {
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=40, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=40, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=40, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=40, piece="rengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=40, piece="bengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=40, piece="bengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=40, piece="bengine3", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=40, piece="bengine4", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=80, piece="fengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=80, piece="fengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=80, piece="rengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=80, piece="rengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=80, piece="bengine1", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=80, piece="bengine2", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=80, piece="bengine3", onActive=true}},
{class='AirJet', options={color={1,0.5,0.0,0.75}, width = 4, length=80, piece="bengine4", onActive=true}},
},
------------------
View
Binary file not shown.
View
@@ -0,0 +1,130 @@
#define TA // This is a TA script
#include "sfxtype.h"
#include "exptype.h"
piece base, frontengines, fengine1, fengine2, rearengines, rengine1, rengine2, missileleft, missileright, firepoint1;
static-var moving, flames;
#define jethtrail 1024+0
// Signal definitions
#define SIG_AIM 2
SmokeUnit(healthpercent, sleeptime, smoketype)
{
while( get BUILD_PERCENT_LEFT )
{
sleep 400;
}
while( TRUE )
{
healthpercent = get HEALTH;
if( healthpercent < 66 )
{
smoketype = 256 | 2;
if( Rand( 1, 66 ) < healthpercent )
{
smoketype = 256 | 1;
}
emit-sfx 1025 from base;
}
sleeptime = healthpercent * 50;
if( sleeptime < 200 )
{
sleeptime = 200;
}
sleep sleeptime;
}
}
Thrust()
{
while( TRUE )
{
if (moving)
{
emit-sfx jethtrail from fengine1;
emit-sfx jethtrail from fengine2;
emit-sfx jethtrail from rengine1;
emit-sfx jethtrail from rengine2;
}
sleep 5;
}
}
StartMoving()
{
moving=1;
}
StopMoving()
{
moving=0;
}
MoveRate0()
{
flames=0;
turn frontengines to x-axis <-90.000000> speed <150.000000>;
turn rearengines to x-axis <-90.000000> speed <150.000000>;
}
MoveRate1()
{
flames=0;
turn frontengines to x-axis <-70.005495> speed <150.000000>;
turn rearengines to x-axis <-70.005495> speed <150.000000>;
}
MoveRate2()
{
flames=1;
turn frontengines to x-axis <0.000000> speed <150.000000>;
turn rearengines to x-axis <0.000000> speed <150.000000>;
}
Create()
{
// start-script Thrust();
start-script SmokeUnit();
}
RestoreAfterDelay() // restore function to turn the turret and so forth back to start
{
sleep 3000;
}
AimWeapon1(heading, pitch) // single weapon with 2 fires this tell sit what to do while aiming
{
signal SIG_AIM;
set-signal-mask SIG_AIM;
start-script RestoreAfterDelay();
return (1);
}
FireWeapon1() // what do while firing, fires 1 barrel then the next , and resets
{
emit-sfx 1024 + 0 from firepoint1;
}
AimFromWeapon1(piecenum) // where it aims the weapon from
{
piecenum = firepoint1;
}
QueryWeapon1(piecenum) // where the shot is called from
{
piecenum = firepoint1;
}
Killed(severity, corpsetype) // how it explodes
{
corpsetype = 1;
explode base type EXPLODE_ON_HIT;
explode frontengines type EXPLODE_ON_HIT;
explode rearengines type EXPLODE_ON_HIT;
explode missileright type EXPLODE_ON_HIT;
explode missileleft type EXPLODE_ON_HIT;
}
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit b9605df

Please sign in to comment.