Skip to content

Commit

Permalink
Balancing deadeye (#3641)
Browse files Browse the repository at this point in the history
Work done

Added Icon
Increased prices
reduced Turretspeed
Penetrator like explotion and Self-D
removed unwanted burst "instant aiming"
  • Loading branch information
roberthartmann authored Sep 2, 2024
1 parent a3a7839 commit af7a4c8
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 26 deletions.
4 changes: 4 additions & 0 deletions gamedata/icontypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,10 @@ local icontypes = {
bitmap = "icons/vehicle_worker.png",
size = 0.99749994
},
cordeadeye = {
bitmap = "icons/armsnipe_1.3.png",
size = 1.36499989
},
cordecom = {
bitmap = "icons/corcom.png",
size = 1.83749986
Expand Down
32 changes: 20 additions & 12 deletions scripts/scavs/cordeadeye.bos
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ StopWalking() {
turn rfhigh to x-axis <0.000000> speed <3419.999890> / animSpeed;
turn rfhip to y-axis <-45.000001> speed <2324.999894> / animSpeed;
turn rfleg to x-axis <0.000000> speed <2039.999920> / animSpeed;
turn turrethead to y-axis <0.000000> speed <60.000000> / animSpeed;
turn turrethead to y-axis <0.000000> speed <6.000000> / animSpeed;
}
// REMEMBER TO animspeed = 5 in Create() !!
UnitSpeed(){
Expand Down Expand Up @@ -174,7 +174,7 @@ StopMoving(){
#define MAXTILT 100


#include "unit_hitbyweaponid_and_smoke.h"
//#include "unit_hitbyweaponid_and_smoke.h"


Create()
Expand All @@ -185,7 +185,7 @@ Create()
gun_1 = 1;
bMoving = FALSE;
bAiming = FALSE;
animSpeed = 10;
animSpeed = 5;
wpnheading = 0;
return (0);
}
Expand Down Expand Up @@ -215,8 +215,8 @@ RestoreAfterDelay()
{
set-signal-mask SIG_AIM;
sleep 3000;
turn aimx1 to x-axis <0> speed <300>;
turn aimy1 to y-axis <0> speed <300>;
turn aimx1 to x-axis <0> speed <80>;
turn aimy1 to y-axis <0> speed <80>;
wait-for-turn aimy1 around y-axis;
wait-for-turn aimx1 around x-axis;
bAiming = FALSE;
Expand All @@ -228,8 +228,8 @@ AimPrimary(heading, pitch)
{
signal SIG_AIM;
if (bAiming == 1) return;
turn aimy1 to y-axis heading speed <300.00000>;
turn aimx1 to x-axis <0.000000> - pitch speed <300.000000>;
turn aimy1 to y-axis heading speed <80.00000>;
turn aimx1 to x-axis <0.000000> - pitch speed <80.000000>;
//needed for luarules\gadgets\unit_continuous_aim.lua
if ((get ABS(wpnheading - heading)) > 2000){
bAiming = 1;
Expand All @@ -244,17 +244,25 @@ AimPrimary(heading, pitch)

FirePrimary()
{
move cannonbarrel to z-axis [-1] speed [1000];
sleep 100;
move cannonbarrel to z-axis [0] speed [6];
move cannonbarrel to z-axis [-0.4] speed [4];
sleep(100);
move cannonbarrel to z-axis [-0.3] speed [0.25];
sleep(400);
move cannonbarrel to z-axis [-0.7] speed [4];
sleep(100);
move cannonbarrel to z-axis [-0.6] speed [0.25];
sleep(400);
move cannonbarrel to z-axis [-1] speed [4];
sleep(100);
move cannonbarrel to z-axis [0] speed [0.2];
return (1);
}


Killed(severity, corpsetype)
{
turn aimy1 to y-axis <0> speed <300>;
turn aimx1 to x-axis <0> speed <300>;
turn aimy1 to y-axis <0> speed <50>;
turn aimx1 to x-axis <0> speed <50>;
if( severity <= 25 )
{
corpsetype = 1 ;
Expand Down
Binary file modified scripts/scavs/cordeadeye.cob
Binary file not shown.
31 changes: 17 additions & 14 deletions units/Scavengers/Bots/cordeadeye.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,37 @@ return {
cordeadeye = {
maxacc = 0.138,
maxdec = 0.6486,
energycost = 20000,
metalcost = 900,
energycost = 27500,
metalcost = 1050,
buildpic = "cordeadeye.DDS",
buildtime = 11700,
buildtime = 32000,
canmove = true,
category = "BOT MOBILE WEAPON ALL NOTSUB NOTSHIP NOTAIR NOTHOVER SURFACE EMPABLE",
collisionvolumeoffsets = "0 0 -2",
collisionvolumescales = "32 34 30",
collisionvolumetype = "CylY",
corpse = "DEAD",
explodeas = "mediumexplosiongeneric",
explodeas = "penetrator",
footprintx = 4,
footprintz = 4,
idleautoheal = 5,
idletime = 1800,
health = 2700,
maxslope = 16,
speed = 40,
maxwaterdepth = 21,
maxwaterdepth = 22,
movementclass = "HBOT4",
nochasecategory = "VTOL",
objectname = "Units/cordeadeye.s3o",
script = "scavs/cordeadeye.COB",
seismicsignature = 0,
selfdestructas = "mediumExplosionGenericSelfd",
selfdestructas = "deadeyeSelfd",
selfdestructcountdown = 3,
sightdistance = 500,
turninplace = true,
turninplaceanglelimit = 90,
turninplacespeedlimit = 0.825,
turnrate = 1115.5,
turninplacespeedlimit = 0.65,
turnrate = 800.5,
upright = false,
customparams = {
unitgroup = 'weapon',
Expand Down Expand Up @@ -110,7 +111,7 @@ return {
},
},
weapondefs = {
cor_canlaser = {
cor_burst_laser = {
areaofeffect = 8,
avoidfeature = false,
beamtime = 0.5,
Expand All @@ -123,7 +124,7 @@ return {
craterboost = 0,
cratermult = 0,
edgeeffectiveness = 0.15,
energypershot = 800,
energypershot = 1200,
explosiongenerator = "custom:laserhit-large-red",
firestarter = 90,
impactonly = 1,
Expand All @@ -133,7 +134,7 @@ return {
name = "HighEnergyLaser",
noselfdamage = true,
range = 850,
reloadtime = 12.0,
reloadtime = 12,
rgbcolor = "1 0.0 0.0",
rgbcolor2 = "1.0 1.0 1.0",
soundhitdry = "",
Expand All @@ -142,21 +143,23 @@ return {
soundtrigger = false,
targetmoveerror = 0,
thickness = 10.0,
tolerance = 10000,
fireTolerance = 1000,
tolerance = 1000,
turret = true,
weapontype = "BeamLaser",
weaponvelocity = 700,
damage = {
default = 1900,
vtol = 25,
commanders = 665,
},
},
},
weapons = {
[1] = {
badtargetcategory = "VTOL",
def = "COR_CANLASER",
def = "COR_BURST_LASER",
onlytargetcategory = "SURFACE",
burstControlWhenOutOfArc = 2,
},
},
},
Expand Down
17 changes: 17 additions & 0 deletions weapons/Unit_Explosions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,23 @@ local unitDeaths = {
}
},

deadeyeSelfd = {
weaponType = "Cannon",
areaofeffect = 520,
camerashake = 520,
impulseboost = impulseboost,
impulsefactor = impulsefactor,
soundhit = "xplolrg2",
soundstart = "largegun",
explosiongenerator = "custom:genericbuildingexplosion-huge",
damage = {
default = 540,
},
customparams = {
unitexplosion = 1,
}
},

bantha = {
weaponType = "Cannon",
areaofeffect = 500,
Expand Down

0 comments on commit af7a4c8

Please sign in to comment.