Version 1.2 "Bufo": code changes

Better late than never
Prepping for new version
pull/25/head
Jesright73 4 years ago
parent 687aec9ea7
commit 26c725f88e

@ -1,15 +1,15 @@
if (state == 4 && vspeed >= 0 && other.image_index < 3)
{
vspeed = (-4 - (hitcount * 1))
vspeed = ((-4 + xtreme) - (hitcount * 1))
gravity = 0.2
if (hitcount < 4)
if (hitcount < 5)
hitcount += 1
sfx_play(sndArachnusHomingBall)
PlaySoundMono(sndArachnusHit)
alarm[1] = 1
flashing = 15
}
else if (angry < 100 && flashing == 0)
else if (angry < angrymax && flashing == 0)
{
angry += 2
event_user(0)

@ -15,6 +15,6 @@ else
}
angry += 2
if other.chargebeam
angry += 12
angry += 16
event_user(0)
}

@ -8,7 +8,7 @@ if (state == 3)
state = 4
statetime = 0
}
if (state == 5 && angry < 100)
if (state == 5 && angry < angrymax)
{
state = 0
statetime = 0
@ -19,7 +19,7 @@ if (state == 5 && angry < 100)
cyc -= 1
}
}
if (state == 5 && angry >= 100)
if (state == 5 && angry >= angrymax)
{
if (cyc == 0)
{

@ -25,7 +25,7 @@ if (state == 0)
canbehit = 0
hspeed = 0
if (xtreme == 1)
cyc = (3 - myhealth)
cyc = (4 - myhealth)
}
if (oCharacter.x < x && facing == 1 && turning == 0)
{
@ -319,9 +319,9 @@ if (state == 9)
rotspeed = 0
sfx_play(sndArachnusAirSpin)
}
if (statetime < (60 - (10 * cyc)))
rotspeed += (1 + cyc)
if (statetime == (60 - (10 * cyc)))
if (statetime < (60 - (10 * (cyc + xtreme))))
rotspeed += ((1 + cyc) + xtreme)
if (statetime == (60 - (10 * (cyc + xtreme))))
{
sfx_stop(sndArachnusAirSpin)
direction = point_direction(x, y, oCharacter.x, 208)

@ -1,43 +1,48 @@
if (state == 2 && isCollisionBottom(1) && yVel == 0)
if (yVel == 0)
{
if ((oCharacter.y + 16) >= y)
if (state == 2)
{
sfx_play(sndAutoadJump)
yVel = -6
}
else if ((oCharacter.y + 16) < y && (oCharacter.y + 112) >= y)
{
sfx_play(sndALPressUp)
yVel = -8
}
else if ((oCharacter.y + 112) < y && (oCharacter.y + 208) >= y)
{
sfx_play(sndA4DoorOpen)
yVel = -11
jumping = 1
if ((oCharacter.y + 16) >= y)
{
sfx_play(sndAutoadJump)
yVel = -6
}
else if ((oCharacter.y + 16) < y && (oCharacter.y + 112) >= y)
{
sfx_play(sndALPressUp)
yVel = -8
}
else if ((oCharacter.y + 112) < y && (oCharacter.y + 208) >= y)
{
sfx_play(sndA4DoorOpen)
yVel = -11
}
else
{
sfx_play(sndA4DoorOpen)
yVel = -14
highjump = 1
}
if (oCharacter.x > x)
xVel = (2.7 + (distance_to_point(oCharacter.x, y) * 0.01))
if (oCharacter.x < x)
xVel = (-2.7 - (distance_to_point(oCharacter.x, y) * 0.01))
clawangle = 36
if instance_exists(oAutoHordeClaw)
{
leg1.angle = 36
leg2.angle = 36
}
}
else
{
sfx_play(sndA4DoorOpen)
yVel = -14
highjump = 1
}
if (oCharacter.x > x)
xVel = (2.7 + (distance_to_point(oCharacter.x, y) * 0.01))
if (oCharacter.x < x)
xVel = (-2.7 - (distance_to_point(oCharacter.x, y) * 0.01))
clawangle = 36
if instance_exists(oAutoHordeClaw)
if (state == 10)
{
sfx_play(sndAutoadJump)
yVel = -5.7
xVel = 5
clawangle = 36
leg1.angle = 36
leg2.angle = 36
}
}
if (state == 10 && isCollisionBottom(1) && yVel == 0)
{
sfx_play(sndAutoadJump)
yVel = -5.7
xVel = 5
clawangle = 36
leg1.angle = 36
leg2.angle = 36
}
alarm[0] = 210

@ -11,13 +11,13 @@ xAcc = 0
yAcc = 0
time = 0
setCollisionBounds(-12, -12, 12, 16)
myhealth = 400
myhealth = 320
canhit = 1
damage = 21
xtreme = 0
if (oControl.mod_monstersextremecheck == 1)
{
myhealth = 500
myhealth = 480
damage = 42
xtreme = 1
}
@ -49,7 +49,7 @@ stun = 0
stuntime = 4
target = 0
state = 1
statetime = 0
statetime = -1
alarm[0] = 100
clawangle = 0
clawx = -9

@ -24,5 +24,5 @@ if (instance_exists(leg1) && instance_exists(leg2))
if instance_exists(oA3Beam)
{
oA3Beam.x = x
oA3Beam.y = (y + 15)
oA3Beam.y = (y + 12)
}

@ -3,7 +3,7 @@ if (image_index == 0)
{
sfx_play(sndFireMissile)
prj1 = instance_create((x - 14), (y + 15), oTesterMissile)
prj2 = instance_create(x, (y + 15), oTesterMissile)
prj2 = instance_create(x, (y + 12), oTesterMissile)
prj3 = instance_create((x + 14), (y + 15), oTesterMissile)
prj1.ah = 1
prj2.ah = 1
@ -11,7 +11,7 @@ if (image_index == 0)
}
else if (image_index == 1)
{
prj1 = instance_create(x, (y + 15), oA3Beam)
prj1 = instance_create(x, (y + 12), oA3Beam)
prj1.alarm[0] = 1
prj1.image_yscale = 4
sfx_play(sndALWelder)

@ -33,6 +33,7 @@ if (stun == 0 && state != 100)
xVel = 0
yVel = 0
clawangle = -30
statetime = 0
alarm[0] = jt
sfx_play(sndA4DoorBolt)
if (eye != -1)
@ -110,6 +111,14 @@ if (stun > 0)
stun -= 1
if (flashing > 0)
flashing -= 1
if isCollisionBottom(0)
y -= 1
if (isCollisionRight(0) || isCollisionSlope(1) == 1)
x -= 1
if (isCollisionLeft(0) || isCollisionSlope(1) == 2)
x += 1
if isCollisionTop(0)
y += 1
if (global.event[serialnumber] >= 1 && (!dead))
{
myhealth = 0

@ -18,3 +18,13 @@ monster_code[5] = 40
monster_code[6] = 37
monster_code[7] = 38
io_code_monster = 0
bufo_code[0] = 37
bufo_code[1] = 38
bufo_code[2] = 39
bufo_code[3] = 40
bufo_code[4] = 37
bufo_code[5] = 38
bufo_code[6] = 39
bufo_code[7] = 40
bufo_code[8] = 13
io_code_bufo = 0

@ -104,3 +104,57 @@ if (global.mod_gamebeaten == 1)
io_code_monster = 0
}
}
if (AFDCheck() == 0)
{
if oControl.kUpPressed
{
if (bufo_code[io_code_bufo] == 38)
io_code_bufo++
else
io_code_bufo = 0
}
if oControl.kDownPressed
{
if (bufo_code[io_code_bufo] == 40)
io_code_bufo++
else
io_code_bufo = 0
}
if oControl.kLeftPressed
{
if (bufo_code[io_code_bufo] == 37)
io_code_bufo++
else
io_code_bufo = 0
}
if oControl.kRightPressed
{
if (bufo_code[io_code_bufo] == 39)
io_code_bufo++
else
io_code_bufo = 0
}
if oControl.kMenu1Pressed
{
if (bufo_code[io_code_bufo] == 13)
io_code_bufo++
else
io_code_bufo = 0
}
if oControl.kMenu2Pressed
{
if (bufo_code[io_code_bufo] == 8)
io_code_bufo++
else
io_code_bufo = 0
}
if (io_code_bufo == array_length_1d(bufo_code))
{
sfx_play(sndAutoCroak)
if (global.bufo == 0)
global.bufo = 1
else
global.bufo = 0
io_code_bufo = 0
}
}

@ -91,7 +91,7 @@ if (ds_list_size(roomListData) > 0)
if (string_lower(arrName) == "d-388" && string_count("JumpLeft", sprite_get_name(arrSprite)) == 0 && string_count("JumpRight", sprite_get_name(arrSprite)) == 0 && string_count("Ball", sprite_get_name(arrSprite)) == 0 && string_count("Walljump", sprite_get_name(arrSprite)) == 0 && string_count("Spacejump", sprite_get_name(arrSprite)) == 0)
draw_sprite_ext(sDVTorso, 2, arrX, (arrY - sprHeight), (1 * arrMirror), 1, direction, c_white, 1)
if (string_lower(arrName) == "quack" && string_count("JumpLeft", sprite_get_name(arrSprite)) == 0 && string_count("JumpRight", sprite_get_name(arrSprite)) == 0 && string_count("Ball", sprite_get_name(arrSprite)) == 0 && string_count("Walljump", sprite_get_name(arrSprite)) == 0 && string_count("Spacejump", sprite_get_name(arrSprite)) == 0)
draw_sprite_ext(sHornoadIdle, 2, arrX, (arrY - sprHeight), (1 * arrMirror), 1, direction, c_white, 1)
draw_sprite_ext(sQuackHead, 2, arrX, (arrY - sprHeight), (1 * arrMirror), 1, direction, c_white, 1)
}
}
else
@ -115,7 +115,7 @@ if (ds_list_size(roomListData) > 0)
if (string_lower(arrName) == "d-388" && string_count("JumpLeft", sprite_get_name(arrSprite)) == 0 && string_count("JumpRight", sprite_get_name(arrSprite)) == 0 && string_count("Ball", sprite_get_name(arrSprite)) == 0 && string_count("Walljump", sprite_get_name(arrSprite)) == 0 && string_count("Spacejump", sprite_get_name(arrSprite)) == 0)
draw_sprite_ext(sDVTorso, 2, arrX, (arrY - sprHeight), (1 * arrMirror), 1, direction, c_white, 1)
if (string_lower(arrName) == "quack" && string_count("JumpLeft", sprite_get_name(arrSprite)) == 0 && string_count("JumpRight", sprite_get_name(arrSprite)) == 0 && string_count("Ball", sprite_get_name(arrSprite)) == 0 && string_count("Walljump", sprite_get_name(arrSprite)) == 0 && string_count("Spacejump", sprite_get_name(arrSprite)) == 0)
draw_sprite_ext(sHornoadIdle, 2, arrX, (arrY - sprHeight), (1 * arrMirror), 1, direction, c_white, 1)
draw_sprite_ext(sQuackHead, 2, arrX, (arrY - sprHeight), (1 * arrMirror), 1, direction, c_white, 1)
}
}
}

@ -533,37 +533,37 @@ switch type_event
{
global.bomb = 1
global.bombPrev = global.bomb
popup_text(((get_text("Items", "Frog Eggs") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "Bombs") + " ") + get_text("GlobalOptions", "Enabled")))
}
if (i == 1)
{
global.powergrip = 1
global.powergripPrev = global.powergrip
popup_text(((get_text("Items", "Sticky Fingers") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "PowerGrip") + " ") + get_text("GlobalOptions", "Enabled")))
}
if (i == 2)
{
global.spiderball = 1
global.spiderballPrev = global.spiderball
popup_text(((get_text("Items", "Suction Cups") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "SpiderBall") + " ") + get_text("GlobalOptions", "Enabled")))
}
if (i == 3)
{
global.jumpball = 1
global.jumpballPrev = global.jumpball
popup_text(((get_text("Items", "Sing-a-Long") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "JumpBall") + " ") + get_text("GlobalOptions", "Enabled")))
}
if (i == 4)
{
global.hijump = 1
global.hijumpPrev = global.hijump
popup_text(((get_text("Items", "Frog Legs") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "HiJump") + " ") + get_text("GlobalOptions", "Enabled")))
}
if (i == 5)
{
global.currentsuit = 1
global.currentsuitPrev = global.currentsuit
popup_text(((get_text("Items", "Toadskin") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "VariaSuit") + " ") + get_text("GlobalOptions", "Enabled")))
if sfx_isplaying(sndSpinJump)
sfx_stop(sndSpinJump)
if sfx_isplaying(sndSpaceJump)
@ -577,7 +577,7 @@ switch type_event
{
global.spacejump = 1
global.spacejumpPrev = global.spacejump
popup_text(((get_text("Items", "Red Bird") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "SpaceJump") + " ") + get_text("GlobalOptions", "Enabled")))
if sfx_isplaying(sndSpinJump)
sfx_stop(sndSpinJump)
if sfx_isplaying(sndSpaceJump)
@ -591,13 +591,13 @@ switch type_event
{
global.speedbooster = 1
global.speedboosterPrev = global.speedbooster
popup_text(((get_text("Items", "2Fast4U") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "SpeedBooster") + " ") + get_text("GlobalOptions", "Enabled")))
}
if (i == 8)
{
global.screwattack = 1
global.screwattackPrev = global.screwattack
popup_text(((get_text("Items", "Spark Spin") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "ScrewAttack") + " ") + get_text("GlobalOptions", "Enabled")))
if sfx_isplaying(sndSpinJump)
sfx_stop(sndSpinJump)
if sfx_isplaying(sndSpaceJump)
@ -611,7 +611,7 @@ switch type_event
{
global.currentsuit = 2
global.currentsuitPrev = global.currentsuit
popup_text(((get_text("Items", "Mucous Membrane") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "GravitySuit") + " ") + get_text("GlobalOptions", "Enabled")))
if sfx_isplaying(sndSpinJump)
sfx_stop(sndSpinJump)
if sfx_isplaying(sndSpaceJump)
@ -625,31 +625,31 @@ switch type_event
{
global.cbeam = 1
global.cbeamPrev = global.cbeam
popup_text(((get_text("Items", "Focus") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "ChargeBeam") + " ") + get_text("GlobalOptions", "Enabled")))
}
if (i == 11)
{
global.ibeam = 1
global.ibeamPrev = global.ibeam
popup_text(((get_text("Items", "Chill") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "IceBeam") + " ") + get_text("GlobalOptions", "Enabled")))
}
if (i == 12)
{
global.wbeam = 1
global.wbeamPrev = global.wbeam
popup_text(((get_text("Items", "X-Ray") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "WaveBeam") + " ") + get_text("GlobalOptions", "Enabled")))
}
if (i == 13)
{
global.sbeam = 1
global.sbeamPrev = global.sbeam
popup_text(((get_text("Items", "W I D E") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "SpazerBeam") + " ") + get_text("GlobalOptions", "Enabled")))
}
if (i == 14)
{
global.pbeam = 1
global.pbeamPrev = global.pbeam
popup_text(((get_text("Items", "Pierce") + " ") + get_text("GlobalOptions", "Enabled")))
popup_text(((get_text("Items", "PlasmaBeam") + " ") + get_text("GlobalOptions", "Enabled")))
}
}
}

@ -423,3 +423,4 @@ if (!(file_exists((working_directory + "/TheHorde/dictionary.json"))))
}
global.icemissiles = 0
global.semiauto = 0
global.bufo = 0

@ -1 +1,3 @@
image_speed = 0.1
if instance_exists(oCharacter)
facing = sign((oCharacter.x - x))

@ -0,0 +1,5 @@
if instance_exists(oCharacter)
{
facing = sign((oCharacter.x - x))
image_xscale = facing
}

@ -4,6 +4,6 @@ fadein = 0
versionoffsety = -6
if (os_type == os_macosx)
versionoffsety = 1
hordeversion = "The Horde v1.1"
hordeversion = "The Horde v1.2"
if (AFDCheck() == 1)
hordeversion = "Bufo four bufo one"
hordeversion = "Bufo 1 bufo 2"

@ -49,3 +49,4 @@ unique = -1
setmus = 0
itemdrop = 0
canspike = 0
xtreme = oControl.mod_monstersextremecheck

@ -9,5 +9,5 @@ if active
sp1.image_yscale = choose(1, -1)
sp1.image_angle = random(360)
sp1.depth = -101
alarm[1] = (3 + irandom(12))
alarm[1] = (3 + irandom(30))
}

@ -11,7 +11,7 @@ if (state == 1)
spwn.tgtx[3] = (midx + (irandom_range(8, 24) * facing))
pod += 1
}
alarm[2] = 120
alarm[2] = 140
if (init > 0)
{
alarm[2] = 42

@ -23,4 +23,21 @@ limit_l = (x - 80)
limit_r = (x + 80)
glow = 0
eyeSprite = 1666
AFDayEnemy(sHordeArea4Jump, 1794)
AFDayEnemy(sAutoad, 1794)
if (AFDCheck() == 1)
{
shieldlava1 = 1783
shieldlava2 = 1783
shieldsp = 1783
shieldfrz = 1782
image_speed = 0.2
shield1.image_xscale = -1
shield2.image_xscale = 1
}
else
{
shieldlava1 = 1700
shieldlava2 = 1701
shieldsp = 428
shieldfrz = 429
}

@ -78,14 +78,20 @@ if (state == 100)
{
deb = instance_create(shield1.x, shield1.y, oDebris)
deb.image_angle = shield1.image_angle
deb.sprite_index = sHalzynShield
if (AFDCheck() == 1)
deb.sprite_index = sAutHordeClaw
else
deb.sprite_index = sHalzynShield
deb.direction = (0 + random(30))
deb.speed = (0.5 + random(3))
deb.gravity = 0.1
deb.playsound = 0
deb = instance_create(shield2.x, shield2.y, oDebris)
deb.image_angle = shield2.image_angle
deb.sprite_index = sHalzynShield
if (AFDCheck() == 1)
deb.sprite_index = sAutHordeClaw
else
deb.sprite_index = sHalzynShield
deb.image_xscale = -1
deb.direction = (180 - random(30))
deb.speed = (0.5 + random(3))

@ -13,30 +13,30 @@ if (instance_exists(shield1) && instance_exists(shield2))
if (glow == 1)
{
sprite_index = sHalzynBodyA4
shield1.sprite_index = sHalzynShieldA4
shield2.sprite_index = sHalzynShieldA4
shield1.sprite_index = shieldlava1
shield2.sprite_index = shieldlava1
eyeSprite = 1706
}
else if (glow == 2)
{
sprite_index = sHalzynBodyA4
shield1.sprite_index = sHalzynShieldA4_2
shield2.sprite_index = sHalzynShieldA4_2
shield1.sprite_index = shieldlava2
shield2.sprite_index = shieldlava2
eyeSprite = 1706
}
}
else
{
shield1.sprite_index = sHalzynShield
shield2.sprite_index = sHalzynShield
shield1.sprite_index = shieldsp
shield2.sprite_index = shieldsp
}
shield1.canhit = 1
shield2.canhit = 1
}
else
{
shield1.sprite_index = sHalzynShieldFrozen
shield2.sprite_index = sHalzynShieldFrozen
shield1.sprite_index = shieldfrz
shield2.sprite_index = shieldfrz
shield1.canhit = 0
shield2.canhit = 0
}

@ -2,13 +2,13 @@ var spwn, noad;
oCharacter.spwnoffset = spwnoffset
with (oCharacter)
{
if collision_line(x, y, x, (y + 48), oSolid, false, true)
if collision_line(x, y, x, (y + 32), oSolid, false, true)
{
if (facing == LEFT)
{
if ((!(collision_line(x, (y - 40), (view_xview[0] - (oControl.widescreen_space / 2)), (y - 40), oSolid, false, true))) && (!(collision_line((view_xview[0] - (oControl.widescreen_space / 2)), (y - 40), (view_xview[0] - (oControl.widescreen_space / 2)), (y - 16), oSolid, false, true))) && (!(collision_rectangle((view_xview[0] - (oControl.widescreen_space / 2)), (y - 128), x, (y + 128), oGotoRoom, 0, 1))))
{
spwn = instance_create((view_xview[0] - (oControl.widescreen_space / 2)), ((y - 16) - irandom(24)), oHornoad)
spwn = instance_create((view_xview[0] - (oControl.widescreen_space / 2)), ((y - 24) - irandom(24)), oHornoad)
spwn.facing = 1
spwn.state = 4
}
@ -17,7 +17,7 @@ with (oCharacter)
{
if ((!(collision_line(x, (y - 40), (view_xview[0] + spwnoffset), (y - 40), oSolid, false, true))) && (!(collision_line((view_xview[0] + spwnoffset), (y - 40), view_xview[spwnoffset], (y - 16), oSolid, false, true))) && (!(collision_rectangle(x, (y - 128), (view_xview[0] + spwnoffset), (y + 128), oGotoRoom, 0, 1))))
{
spwn = instance_create((view_xview[0] + spwnoffset), ((y - 16) - irandom(24)), oHornoad)
spwn = instance_create((view_xview[0] + spwnoffset), ((y - 24) - irandom(24)), oHornoad)
spwn.facing = -1
spwn.state = 4
}
@ -30,4 +30,4 @@ if (instance_number(oHornoad) >= 16)
with (noad)
instance_destroy()
}
alarm[0] = (60 + random(340))
alarm[0] = (60 + random(380))

@ -6,7 +6,7 @@ if oControl.widescreen
if (room == rm_a0h01)
alarm[0] = 420
else
alarm[0] = random(300)
alarm[0] = random(380)
image_speed = 0
x = 0
y = 0

@ -6,22 +6,10 @@ if oBeam.chargebeam
{
with (oMOmega)
{
dmg = 80
if (global.mod_omegadamagebackmissile < 30)
dmg = global.mod_omegadamagebackmissile
dmg = min(40, (global.mod_omegadamagebackmissile + 10))
flashtime = 60
eyes_close = 15
}
if (other.smissile == 1)
{
with (oMOmega)
{
dmg = 150
dmg = global.mod_omegadamagebacksuper
flashtime = 120
eyes_close = 30
}
}
with (oMOmega)
event_user(0)
with (other.id)

@ -4,8 +4,7 @@ if (oMOmega.myhealth > 0 && oMOmegaMask.image_index != 0)
{
with (oMOmega)
{
dmg = 30
dmg = global.mod_omegadamagebackmissile
dmg = min(30, global.mod_omegadamagebackmissile)
flashtime = 60
eyes_close = 15
}
@ -13,9 +12,7 @@ if (oMOmega.myhealth > 0 && oMOmegaMask.image_index != 0)
{
with (oMOmega)
{
dmg = 97
if (global.mod_omegadamagebacksuper < 105)
dmg = global.mod_omegadamagebacksuper
dmg = min(97, global.mod_omegadamagebacksuper)
flashtime = 120
eyes_close = 30
}

@ -127,3 +127,4 @@ if (oControl.mod_monstersextremecheck == 1)
myhealth *= 1.2
damage *= 1.2
}
isactive = 0

@ -15,3 +15,4 @@ if (myid != 52)
}
cam = instance_create(x, y, oObjectCamera)
cam.target_obj = id
isactive = 1

@ -1179,6 +1179,7 @@ if (state == 50)
roaring = 90
cam = instance_create(x, y, oObjectCamera)
cam.target_obj = id
isactive = 1
}
}
}
@ -1213,8 +1214,11 @@ if (state == 100)
with (grab_obj)
instance_destroy()
}
with (cam)
instance_destroy()
if (cam > oTestKeys)
{
with (cam)
instance_destroy()
}
}
if (statetime < 30)
{
@ -1300,7 +1304,7 @@ else if (eyes_frame < 4)
if (target_mode == 1 && distance_to_point(targetx, targety) < 32)
target_mode = 0
moveTo(xVel, yVel)
if (global.metdead[myid] == 1 && (!dead))
if (global.metdead[myid] == 1 && (!dead) && isactive)
{
myhealth = 0
state = 100

@ -113,3 +113,4 @@ starthealth = myhealth
dead = 0
isbeam = 0
issmissile = 0
cam = -1

@ -1083,8 +1083,11 @@ if (state == 100)
blur = 0
sfx_play(sndMZetaDeath)
roaring = 100
with (cam)
instance_destroy()
if (cam != self)
{
with (cam)
instance_destroy()
}
}
if (statetime < 30)
{

@ -578,7 +578,7 @@ if (state != 100)
if (flashing > 0)
flashing -= 1
statetime += 1
if (global.event[200] > 1 && (!dead))
if (global.event[200] >= 2 && (!dead))
{
make_explosion3(x, y)
repeat (30)

@ -17,8 +17,10 @@ with (other.id)
}
if drawHalzynShields
{
if (lastEnemyGlow == 1)
shield = sHalzynShieldA4
if (AFDCheck() == 1)
shield = sAutHordeClaw
else if (lastEnemyGlow == 1)
shield = 1700
else if (lastEnemyGlow == 2)
shield = 1701
else

@ -189,7 +189,7 @@ if (state == 5)
enemy.moveratio = lastEnemyMoveratio
enemy.movesteps = lastEnemyMovesteps
enemy.image_angle = lastAngle
if (lastEnemy == oHalzyn)
if (lastEnemy == oHalzyn && AFDCheck() == 0)
enemy.glow = lastEnemyGlow
instance_destroy()
}

@ -1,4 +1,4 @@
if (current_month == 4 && current_day == 1)
if ((current_month == 4 && current_day == 1) || global.bufo == 1)
return 1;
else
return 0;

@ -1,4 +1,4 @@
spawn_rnd_pickup(100)
spawn_rnd_pickup((100 - (25 * oControl.mod_monstersextremecheck)))
expl = instance_create(x, y, oFXAnimSpark)
expl.image_speed = 0.5
expl.additive = 0

@ -0,0 +1,7 @@
calculateCollisionBounds()
if (collision_line(round(lb), round(((bb + argument0) - 1)), round(rb), round(((bb + argument0) - 1)), oSlope1, true, true) > 0)
return 1;
if (collision_line(round(lb), round(((bb + argument0) - 1)), round(rb), round(((bb + argument0) - 1)), oSlope2, true, true) > 0)
return 2;
else
return 0;

@ -51,7 +51,7 @@ global.mod_zetadamageslash2 = mod_changes(ini_read_real("Zeta", "DamageSlash2",
global.mod_zetadamageacid = mod_changes(ini_read_real("Zeta", "DamageAcid", 40), 40)
global.mod_omegahealth = mod_changes(ini_read_real("Omega", "Health", 320), 320)
global.mod_omegadamagebackmissile = mod_changes_2(ini_read_real("Omega", "DamageBackMissile", 30), 30)
global.mod_omegadamagebacksuper = mod_changes_2(ini_read_real("Omega", "DamageBackSuper", 150), 150)
global.mod_omegadamagebacksuper = mod_changes_2(ini_read_real("Omega", "DamageBackSuper", 97), 97)
global.mod_omegadamage = mod_changes(ini_read_real("Omega", "Damage", 100), 100)
global.mod_omegadamagegroundhit = mod_changes(ini_read_real("Omega", "DamageGroundHit", 10), 10)
global.mod_omegadamageflame = mod_changes(ini_read_real("Omega", "DamageFlame", 150), 150)
@ -81,7 +81,7 @@ global.mod_torizondamageform1 = mod_changes(ini_read_real("Torizo", "DamageForm1
global.mod_torizondamageform2 = mod_changes(ini_read_real("Torizo", "DamageForm2", 30), 30)
global.mod_torizodamagefireball = mod_changes(ini_read_real("Torizo", "DamageFireball", 18), 18)
global.mod_torizodamageslash = mod_changes(ini_read_real("Torizo", "DamageSlash", 24), 24)
global.mod_torizodamageghost = mod_changes(ini_read_real("Torizo", "DamageGhost", 18), 18)
global.mod_torizodamageghost = mod_changes(ini_read_real("Torizo", "DamageGhost", 15), 15)
global.mod_testerHcannon = mod_changes(ini_read_real("Tester", "HealthCannon", 15), 15)
global.mod_testerHeye = mod_changes(ini_read_real("Tester", "HealthEye", 100), 100)
global.mod_testerHglass = mod_changes(ini_read_real("Tester", "HealthGlass", 30), 30)

@ -1,9 +1,68 @@
/*
DECOMPILER FAILED!
System.NullReferenceException: Object reference not set to an instance of an object.
at UndertaleModLib.Decompiler.Decompiler.ComputeReverseDominators(Dictionary`2 blocks, Block entryBlock) in D:\a\UndertaleModTool\UndertaleModTool\UndertaleModLib\Decompiler\Decompiler.cs:line 3124
at UndertaleModLib.Decompiler.Decompiler.HLDecompile(DecompileContext context, Dictionary`2 blocks, Block entryPoint, Block rootExitPoint) in D:\a\UndertaleModTool\UndertaleModTool\UndertaleModLib\Decompiler\Decompiler.cs:line 3466
at UndertaleModLib.Decompiler.Decompiler.Decompile(UndertaleCode code, GlobalDecompileContext globalContext) in D:\a\UndertaleModTool\UndertaleModTool\UndertaleModLib\Decompiler\Decompiler.cs:line 3556
at Submission#0.DumpCode(UndertaleCode code) in :line 89
*/
var roomnum, list, num_attempts, num_spawn, i, j, choice, inst, offset, type;
if (juststarted > 0 || room == rm_a0h01)
exit
if (global.lastSpawnRoom == room)
exit
global.lastSpawnRoom = room
roomnum = string((string_char_at(room_get_name(room), 5) + string_char_at(room_get_name(room), 6)))
if (roomnum == "7b" || roomnum == "7c" || instance_exists(oSaveStation) || instance_exists(oMAlphaTriggerProx) || instance_exists(oMAlpha2TriggerProx) || instance_exists(oMalpha3TriggerProx) || instance_exists(oMAlphaTriggerA2) || instance_exists(oMGammaTriggerProx) || instance_exists(oMZeta_Cocoon) || instance_exists(oMOmega) || instance_exists(oQueen) || (room == rm_a0h05 && global.event[0] == 0) || (room == rm_a0h01 && global.timeofday == 2) || room == rm_a0h14 || room == rm_a0h15 || instance_exists(oMGammaA3BTrigger) || instance_exists(oItem))
exit
if (global.roomsSinceLastSpawn > 1)
{
global.roomsSinceLastSpawn--
exit
}
global.roomsSinceLastSpawn = 3
if (irandom(99) >= argument2)
exit
list = ds_list_create()
num_attempts = (instance_number(oSolid) * argument0)
num_spawn = argument1
i = 0
j = 0
while (i < num_attempts && j < num_spawn)
{
i++
ds_list_add(list, choice)
inst = instance_find(oSolid, choice)
if instance_exists(inst)
{
with (inst)
{
if (object_get_parent(object_index) != 273)
{
if (!is_breakable_block(object_index))
{
if (y >= 32 && y < room_height && x >= 96 && x < (room_width - 96))
{
if (global.waterlevel == 0 || y < global.waterlevel)
{
if (image_xscale == 1 && image_yscale == 1)
{
offset = (irandom((floor((sprite_width / 16)) - 1)) * 16)
if (collision_line(((x + 8) + offset), (y - 8), ((x + 8) + offset), (y - 64), oSolid, false, true) == -4)
{
if (collision_line(((x + 8) + offset), (y - 8), ((x + 8) + offset), (y - 32), oSpikePlant, false, true) == -4 && collision_line(((x + 8) + offset), (y - 8), ((x + 8) + offset), (y - 32), oSpikes, false, true) == -4 && collision_line(((x + 8) + offset), (y - 8), ((x + 8) + offset), (y - 32), oPlantSpikes, false, true) == -4)
{
if ((get_ground_tile(((x + 8) + offset), (y - 8)) == -1 || get_ground_tile(((x + 8) + offset), (y - 40)) == -1) && (!((get_ground_tile(((x + 8) + offset), (y - 8)) == -1 && get_ground_tile(((x + 8) + offset), (y - 40)) != -1))))
{
type = baby_septogg_sprite(((x + 8) + offset), (y + 8))
if (type != -1)
{
j++
inst = instance_create(((x + 8) + offset), y, oBabySeptogg)
with (inst)
sprite_index = type
}
}
}
}
}
}
}
}
}
}
}
}
ds_list_destroy(list)

@ -1,5 +1,5 @@
var xx, yy, spawnX;
if (irandom(50) < argument0)
if (irandom(100) < argument0 && instance_number(oXPickup) < 17)
{
if (canbeX == 1)
xParasite = "What, you expected something useful?"

Loading…
Cancel
Save