use of mod.azure.doom.entity.ai.goal.RangedAttackGoal in project MCDoom by AzureDoom.
the class ArchMakyrEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.add(8, new LookAroundGoal(this));
this.goalSelector.add(5, new RandomFlyConvergeOnTargetGoal(this, 2, 15, 0.5));
this.goalSelector.add(4, new RangedAttackGoal(this, new FireballAttack(this, true).setProjectileOriginOffset(0.8, 0.4, 0.8).setDamage(config.archmaykr_ranged_damage), 1.0D));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
this.targetSelector.add(2, new RevengeGoal(this).setGroupRevenge());
}
use of mod.azure.doom.entity.ai.goal.RangedAttackGoal in project MCDoom by AzureDoom.
the class Revenant2016Entity method initGoals.
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
protected void initGoals() {
this.goalSelector.add(5, new RandomFlyConvergeOnTargetGoal(this, 2, 15, 0.5));
this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.add(6, new LookAroundGoal(this));
this.targetSelector.add(1, new RevengeGoal(this, new Class[0]).setGroupRevenge());
this.goalSelector.add(4, new RangedAttackGoal(this, new Revenant2016Entity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.revenant_ranged_damage), 1.25D, true));
this.targetSelector.add(2, new ActiveTargetGoal(this, PlayerEntity.class, true));
this.targetSelector.add(3, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
use of mod.azure.doom.entity.ai.goal.RangedAttackGoal in project MCDoom by AzureDoom.
the class RevenantEntity method initGoals.
@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.targetSelector.add(1, (new RevengeGoal(this).setGroupRevenge()));
this.goalSelector.add(4, new RangedAttackGoal(this, new RevenantEntity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.revenant_ranged_damage), 1.25D, true));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.add(3, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
use of mod.azure.doom.entity.ai.goal.RangedAttackGoal in project MCDoom by AzureDoom.
the class ShotgunguyEntity 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 RangedAttackGoal(this, new RangedAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(rangedconfig.shotgun_damage).setSound(ModSoundEvents.SHOTGUN_SHOOT, 1.0F, 1.4F + this.getRandom().nextFloat() * 0.35F), 1.1D));
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));
}
use of mod.azure.doom.entity.ai.goal.RangedAttackGoal in project MCDoom by AzureDoom.
the class ChaingunnerEntity 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 RangedAttackGoal(this, new RangedAttack(this).setProjectileOriginOffset(0.8, 0.4, 0.8).setDamage(rangedconfig.chaingun_bullet_damage).setSound(ModSoundEvents.CHAINGUN_SHOOT, 1.0F, 1.0F), 1.1D));
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));
}
Aggregations