Skip to content

Commit

Permalink
Demon balance test
Browse files Browse the repository at this point in the history
Reduced metal cost 10k->6k metal, health 27500-<2000, dps 3000->1800, speed 75->63, added a pair of shoulder aa turrets
  • Loading branch information
Zecrus2 committed Jun 26, 2023
1 parent 50be17f commit f625453
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 61 deletions.
Binary file modified objects3d/Units/scavboss/cordemont4.s3o
Binary file not shown.
Binary file modified objects3d/Units/scavboss/cordemont4_dead.s3o
Binary file not shown.
118 changes: 70 additions & 48 deletions scripts/Units/scavboss/cordemont4.bos
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@

piece pelvis, torso, rthigh, rleg, rfoot, lthigh, lleg, lfoot,lbturret, lbbarrel1, lbbarrel2, rbturret,
rbbarrel1, rbbarrel2,luparm, llarm, lfbarrel1, lfbarrel2,ruparm, rlarm, rfbarrel1, rfbarrel2,
lfflare1, lfflare2, rfflare1, rfflare2,lbflare, rbflare,head, aimx1, aimy1;
lfflare1, lfflare2, rfflare1, rfflare2,lbflare, rbflare,head, aimx1, aimy1, aaturretl, aaturretr, boxl, boxr, aaflarel, aaflarer;

static-var gun_1, bMoving, bAiming;
static-var gun_1, bMoving, bAiming, gun_2;

static-var animSpeed, maxSpeed, animFramesPerKeyframe;

// Signal definitions
#define SIG_AIM 2
#define SIG_WALK 4
#define SIG_AIM_2 8

lua_FlameShot(weapon) //Distortion and lups flame effect
{
Expand Down Expand Up @@ -481,7 +482,7 @@ UnitSpeed(){
while(TRUE){
animSpeed = (get CURRENT_SPEED);
if (animSpeed<1) animSpeed=1;
animSpeed = (maxSpeed * 8) / animSpeed;
animSpeed = (maxSpeed * 9) / animSpeed;
//get PRINT(maxSpeed, animFramesPerKeyframe, animSpeed);
if (animSpeed<4) animSpeed=4;
if (animspeed>16) animSpeed = 16;
Expand Down Expand Up @@ -880,6 +881,7 @@ Create()
hide lbflare;
hide aimy1;
gun_1 = 1;
gun_2 = 0;
bMoving = FALSE;
bAiming = FALSE;
animSpeed = 6;
Expand Down Expand Up @@ -927,12 +929,41 @@ QueryPrimary(piecenum)
}
}

QuerySecondary(piecenum)
{
if( gun_2 == 0 )
{
piecenum = aaflarel;
return (0);
}
if( gun_2 == 1 )
{
piecenum = aaflarer;
return (0);
}
}


AimFromPrimary(piecenum)
{
piecenum = torso;
return (0);
}

AimFromSecondary(piecenum)
{
if( gun_2 == 1 )
{
piecenum = aaflarel;
return (0);
}
if( gun_2 == 0 )
{
piecenum = aaflarer;
return (0);
}
}

/*
// Removed awesome constant acceleration aiming cause of complaints that "now the unit doesnt aim well when there are multiple targets"

Expand Down Expand Up @@ -1032,12 +1063,17 @@ AimWeapon1(heading, pitch)
return (1);
}
*/

RestoreAfterDelay()
{
sleep 3000;
bAiming = FALSE;
turn aimx1 to x-axis <0.000000> speed <80.000000>;
turn aimy1 to y-axis <0.000000> speed <80.000000>;
turn aaturretl to x-axis <0.000000> speed <80.000000>;
turn aaturretl to y-axis <0.000000> speed <80.000000>;
turn aaturretr to x-axis <0.000000> speed <80.000000>;
turn aaturretr to y-axis <0.000000> speed <80.000000>;
}

AimPrimary(heading, pitch)
Expand All @@ -1056,6 +1092,21 @@ AimPrimary(heading, pitch)
return (1);
}

AimSecondary(heading, pitch)
{
signal SIG_AIM_2;
set-signal-mask SIG_AIM_2;
turn aaturretl to y-axis heading speed <192.500000>;
turn aaturretr to y-axis heading speed <192.500000>;
turn boxl to x-axis -1*pitch speed <90>;
turn boxr to x-axis -1*pitch speed <90>;
wait-for-turn aaturretl around y-axis;
wait-for-turn boxl around x-axis;
start-script RestoreAfterDelay();
return (1);
}


Shot1()
{
call-script lua_FlameShot(1);
Expand Down Expand Up @@ -1103,56 +1154,27 @@ FirePrimary()
}
}

QuerySecondary(piecenum)
{
piecenum = lbflare;
return (0);
}

AimFromSecondary(piecenum)
{
piecenum = lbflare;
return (0);
}

AimSecondary(heading, pitch)
{
turn lbflare to x-axis <-90> now;
sleep 30;
return (1);
}

FireSecondary()
{
if( gun_2 == 0 )
{
turn aimy1 to x-axis <-1> now; // dont always do this
turn aimy1 to x-axis <0> speed <5>;
move lfbarrel1 to z-axis [-1] speed [750.000000];
sleep 150;
move lfbarrel1 to z-axis [0.000000] speed [8.750000];

}
if( gun_2 == 1 )
{
move rfbarrel1 to z-axis [-1] speed [750.000000];
sleep 150;
move rfbarrel1 to z-axis [0.000000] speed [8.750000];
}
gun_2 = !gun_2;
return (0);
}

QueryTertiary(piecenum)
{
piecenum = rbflare;
return (0);
}

AimFromTertiary(piecenum)
{
piecenum = rbflare;
return (0);
}

AimTertiary(heading, pitch)
{
//turn rbflare to x-axis <-90> now;
sleep 30;
return (1);
}

FireTertiary()
{
return (0);
}



Killed(severity, corpsetype)
{
if( severity <= 25 )
Expand Down
Binary file modified scripts/Units/scavboss/cordemont4.cob
Binary file not shown.
81 changes: 68 additions & 13 deletions units/Scavengers/Bots/cordemont4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ return {
cordemont4 = {
acceleration = 0.2208,
brakerate = 1,
buildcostenergy = 150000,
buildcostmetal = 10000,
buildcostenergy = 90000,--150000,
buildcostmetal = 6000,--10000,
buildpic = "CORDEMONT4.DDS",
buildtime = 150000,
buildtime = 90000,--150000,
canmove = true,
category = "BOT WEAPON ALL NOTSUB NOTAIR NOTHOVER SURFACE EMPABLE",
collisionvolumeoffsets = "0.0 0.0 0.1",
collisionvolumescales = "112.0 120.0 80.0",
collisionvolumetype = "box",
corpse = "DEAD",
explodeas = "explosiont3xl",
footprintx = 3,
footprintz = 3,
footprintx = 4,
footprintz = 4,
idleautoheal = 5,
idletime = 1800,
mass = 200000,
maxdamage = 27500,
maxdamage = 20000,--27500,
maxslope = 160,
maxvelocity = 2.5,
maxvelocity = 2.1,--2.5,
maxwaterdepth = 12,
movementclass = "EPICBOT",
nochasecategory = "VTOL",
Expand Down Expand Up @@ -48,14 +48,14 @@ return {
collisionvolumeoffsets = "3.89811706543 -12.9994070068 -38.2052841187",
collisionvolumescales = "77.9624938965 23.0893859863 76.4105682373",
collisionvolumetype = "Box",
damage = 25000,
damage = 10000,
energy = 0,
featurereclamate = "SMUDGE01",
footprintx = 3,
footprintz = 3,
height = 40,
hitdensity = 100,
metal = 15000,
metal = 3600,
object = "Units/scavboss/cordemont4_dead.s3o",
reclaimable = true,
world = "All Worlds",
Expand Down Expand Up @@ -116,7 +116,7 @@ return {
name = "Heavy long range AoE flamethrower",
noselfdamage = true,
proximitypriority = 3,
range = 450,
range = 500,--450,
reloadtime = 0.0667,
rgbcolor = "1 0.94 0.88",
rgbcolor2 = "0.9 0.84 0.8",
Expand All @@ -133,17 +133,72 @@ return {
weapontype = "Flame",
weaponvelocity = 400,
damage = {
commanders = 50,
default = 100,
default = 60,--100,
subs = 20,
},
},
karg_shoulder = {
areaofeffect = 16,
avoidfeature = false,
burnblow = true,
fixedLauncher = true,
canattackground = false,
cegtag = "missiletrailaa",
craterareaofeffect = 0,
craterboost = 0,
cratermult = 0,
edgeeffectiveness = 0.15,
explosiongenerator = "custom:genericshellexplosion-tiny-aa",
firestarter = 72,
flighttime = 1.75,
impulseboost = 0,
impulsefactor = 0,
model = "cormissile.s3o",
name = "ShoulderRockets",
noselfdamage = true,
proximitypriority = 1,
range = 700,
reloadtime = 0.6,--0.9,
smoketrail = true,
smokePeriod = 5,
smoketime = 12,
smokesize = 4.4,
smokecolor = 0.95,
smokeTrailCastShadow = false,
castshadow = false, --projectile
soundhit = "packohit",
soundhitwet = "splshbig",
soundstart = "packolau",
soundtrigger = false,
startvelocity = 820, --520
texture1 = "null",
texture2 = "smoketrailaa",
tolerance = 9950,
tracks = true,
turnrate = 68000,
turret = true,
weaponacceleration = 160,
weapontimer = 2,
weapontype = "MissileLauncher",
weaponvelocity = 820,
damage = {
default = 100,
bombers = 150,
fighters = 120,
vtol = 150,
},
},
},
weapons = {
[1] = {
badtargetcategory = "GROUNDSCOUT VTOL",
def = "DMAW",
onlytargetcategory = "NOTSUB",
onlytargetcategory = "SURFACE",
},
[2] = {
badtargetcategory = "NOTAIR GROUNDSCOUT",
def = "KARG_SHOULDER",
onlytargetcategory = "VTOL",
},
},
},
Expand Down

0 comments on commit f625453

Please sign in to comment.