Search in sources :

Example 1 with RangedStrafeAttackGoal

use of mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal in project MCDoom by AzureDoom.

the class MechaZombieEntity method initGoals.

@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
protected void initGoals() {
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 1.0D));
    this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(6, new LookAroundGoal(this));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
    this.goalSelector.add(4, new RangedStrafeAttackGoal(this, new FireballAttack(this, false).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.mechazombie_ranged_damage).setSound(SoundEvents.ENTITY_BLAZE_SHOOT, 1.0F, 1.4F + this.getRandom().nextFloat() * 0.35F), 1.0D, 50, 30, 15, 15F, 1).setMultiShot(4, 3));
    this.goalSelector.add(4, new DemonAttackGoal(this, 1.25D, 2));
    this.targetSelector.add(1, new RevengeGoal(this, new Class[0]).setGroupRevenge());
    this.targetSelector.add(2, new ActiveTargetGoal(this, PlayerEntity.class, true));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
Also used : ActiveTargetGoal(net.minecraft.entity.ai.goal.ActiveTargetGoal) RangedStrafeAttackGoal(mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) WanderAroundFarGoal(net.minecraft.entity.ai.goal.WanderAroundFarGoal) FireballAttack(mod.azure.doom.entity.attack.FireballAttack) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) DemonAttackGoal(mod.azure.doom.entity.ai.goal.DemonAttackGoal) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 2 with RangedStrafeAttackGoal

use of mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal in project MCDoom by AzureDoom.

the class PossessedSoldierEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(6, new LookAroundGoal(this));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
    this.goalSelector.add(4, new RangedStrafeAttackGoal(this, new PossessedSoldierEntity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.possessed_soldier_ranged_damage), 1.0D, 5, 30, 15, 15F, 1));
    if (this.getVariant() == 2) {
        this.goalSelector.add(5, new RandomFlyConvergeOnTargetGoal(this, 2, 15, 0.5));
    }
    this.targetSelector.add(1, new RevengeGoal(this, new Class[0]).setGroupRevenge());
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
Also used : RangedStrafeAttackGoal(mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal) RandomFlyConvergeOnTargetGoal(mod.azure.doom.entity.ai.goal.RandomFlyConvergeOnTargetGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) WanderAroundFarGoal(net.minecraft.entity.ai.goal.WanderAroundFarGoal) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 3 with RangedStrafeAttackGoal

use of mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal in project MCDoom by AzureDoom.

the class ArachnotronEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(6, new LookAroundGoal(this));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
    this.goalSelector.add(4, new RangedStrafeAttackGoal(this, new ArachnotronEntity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.arachnotron_ranged_damage), 1.5D, 15, 30, 15, 15F, 1).setMultiShot(5, 3));
    this.targetSelector.add(1, new RevengeGoal(this, new Class[0]).setGroupRevenge());
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
Also used : RangedStrafeAttackGoal(mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) WanderAroundFarGoal(net.minecraft.entity.ai.goal.WanderAroundFarGoal) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 4 with RangedStrafeAttackGoal

use of mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal in project MCDoom by AzureDoom.

the class SpiderMastermind2016Entity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(6, new LookAroundGoal(this));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
    this.goalSelector.add(4, new RangedStrafeAttackGoal(this, new SpiderMastermind2016Entity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.2, 0.8).setDamage(config.spider_mastermind_ranged_damage), 1.0D, 20, 30, 15, 15F, 1));
    this.targetSelector.add(1, new RevengeGoal(this, new Class[0]).setGroupRevenge());
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
Also used : RangedStrafeAttackGoal(mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) WanderAroundFarGoal(net.minecraft.entity.ai.goal.WanderAroundFarGoal) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 5 with RangedStrafeAttackGoal

use of mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal in project MCDoom by AzureDoom.

the class SpiderMastermindEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(6, new LookAroundGoal(this));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
    this.goalSelector.add(4, new RangedStrafeAttackGoal(this, new SpiderMastermindEntity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.4, 0.8).setDamage(config.spider_mastermind_ranged_damage), 1.0D, 5, 30, 15, 15F, 1).setMultiShot(6, 0));
    this.targetSelector.add(1, new RevengeGoal(this, new Class[0]).setGroupRevenge());
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
Also used : RangedStrafeAttackGoal(mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) WanderAroundFarGoal(net.minecraft.entity.ai.goal.WanderAroundFarGoal) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

RangedStrafeAttackGoal (mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal)8 LookAroundGoal (net.minecraft.entity.ai.goal.LookAroundGoal)8 LookAtEntityGoal (net.minecraft.entity.ai.goal.LookAtEntityGoal)8 RevengeGoal (net.minecraft.entity.ai.goal.RevengeGoal)8 WanderAroundFarGoal (net.minecraft.entity.ai.goal.WanderAroundFarGoal)8 MerchantEntity (net.minecraft.entity.passive.MerchantEntity)8 PlayerEntity (net.minecraft.entity.player.PlayerEntity)8 DemonAttackGoal (mod.azure.doom.entity.ai.goal.DemonAttackGoal)2 RandomFlyConvergeOnTargetGoal (mod.azure.doom.entity.ai.goal.RandomFlyConvergeOnTargetGoal)2 FireballAttack (mod.azure.doom.entity.attack.FireballAttack)2 ActiveTargetGoal (net.minecraft.entity.ai.goal.ActiveTargetGoal)1