You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
947 B
43 lines
947 B
if ((state == BALL || state == AIRBALL || state == SPIDERBALL) && other.image_index == 1 && monster_drain == 0)
|
|
{
|
|
if (isCollisionTop(6) == 0)
|
|
yVel = -5
|
|
else if (isCollisionTop(5) == 0)
|
|
yVel = -4
|
|
else if (isCollisionTop(4) == 0)
|
|
yVel = -3
|
|
else if (isCollisionTop(3) == 0)
|
|
yVel = -2
|
|
else if (isCollisionTop(2) == 0)
|
|
yVel = -1
|
|
state = AIRBALL
|
|
sball = 0
|
|
statetime = 0
|
|
if (x < (other.x - 2))
|
|
{
|
|
facing = LEFT
|
|
fixedx = 12
|
|
}
|
|
if (x > (other.x + 2))
|
|
{
|
|
facing = RIGHT
|
|
fixedx = 12
|
|
}
|
|
fixedy = 20
|
|
}
|
|
if (other.sax != global.sax)
|
|
{
|
|
if (global.playerFreeze > 0)
|
|
other.damage /= 2
|
|
other.damage = 8
|
|
event_user(3)
|
|
if (!global.spectator)
|
|
global.showHealthIndicatorsTimer = 900
|
|
global.otherID = other.myid
|
|
if instance_exists(oClient)
|
|
{
|
|
with (oClient)
|
|
event_user(2)
|
|
}
|
|
}
|