public class DeployableTurretConfig extends DeployableConfig
Class DeployableTurretConfig. Provides deployableturretconfig functionality for the Hytale server.
java.lang.Object > DeployableConfig > DeployableTurretConfig
Field Summary
trackableRadius
Field trackableRadius.
detectionRadius
Field detectionRadius.
rotationSpeed
Field rotationSpeed.
projectileDamage
Field projectileDamage.
preferOwnerTarget
Field preferOwnerTarget.
ammo
Field ammo.
projectileConfig
Field projectileConfig.
deployDelay
Field deployDelay.
shotInterval
Field shotInterval.
burstCount
Field burstCount.
burstCooldown
Field burstCooldown.
canShootOwner
Field canShootOwner.
projectileKnockback
Field projectileKnockback.
targetOffset
Field targetOffset.
doLineOfSightTest
Field doLineOfSightTest.
projectileHitWorldSoundEventId
Field projectileHitWorldSoundEventId.
projectileHitLocalSoundEventId
Field projectileHitLocalSoundEventId.
projectileHitLocalSoundEventIndex
Field projectileHitLocalSoundEventIndex.
projectileHitWorldSoundEventIndex
Field projectileHitWorldSoundEventIndex.
respectTeams
Field respectTeams.
index
Field index.
entityRef
Field entityRef.
now
Field now.
readyTime
Field readyTime.
world
Field world.
shooterComponent
Field shooterComponent.
spawnPos
Field spawnPos.
despawn
Field despawn.
timeManager
Field timeManager.
transformComponent
Field transformComponent.
headRotationComponent
Field headRotationComponent.
pos
Field pos.
targetTransformComponent
Field targetTransformComponent.
targetPos
Field targetPos.
direction
Field direction.
targetTransformComponent2
Field targetTransformComponent2.
targetPosition
Field targetPosition.
direction2
Field direction2.
targetTransformComponent3
Field targetTransformComponent3.
relativeTargetOffset
Field relativeTargetOffset.
shotsFired
Field shotsFired.
timeSinceLastAttack
Field timeSinceLastAttack.
fwdDirection
Field fwdDirection.
rootPos
Field rootPos.
uuid
Field uuid.
deployableComponent
Field deployableComponent.
spawnOffset
Field spawnOffset.
testFromPos
Field testFromPos.
distance
Field distance.
whiteColor
Field whiteColor.
increment
Field increment.
blockPosition
Field blockPosition.
blockType
Field blockType.
material
Field material.
entityDistance
Field entityDistance.
blockDistance
Field blockDistance.
projTransformComponent
Field projTransformComponent.
projPos
Field projPos.
hit
Field hit.
dProjComponent
Field dProjComponent.
prevPos
Field prevPos.
clone
Field clone.
scanPos
Field scanPos.
vector3d
Field vector3d.
vector3d2
Field vector3d2.
physics
Field physics.
damageEntry
Field damageEntry.
projectileTransformComponent
Field projectileTransformComponent.
projectilePosition
Field projectilePosition.
projectileRotationYaw
Field projectileRotationYaw.
knockbackComponent
Field knockbackComponent.
Method Detail
DeployableTurretConfig
public
DeployableTurretConfig
()
Method DeployableTurretConfig.
processConfig
void
processConfig
()
Method processConfig.
tick
void
tick
(@Nonnull final DeployableComponent deployableComponent, final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
@Nonnull final DeployableComponentdeployableComponentfinal floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
tickInitState
void
tickInitState
(@Nonnull final Ref entityRef, @Nonnull final DeployableComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tickInitState.
- Parameters:
@Nonnull final RefentityRef@Nonnull final DeployableComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
tickStartDeployState
void
tickStartDeployState
(@Nonnull final Ref ref, @Nonnull final DeployableComponent component, @Nonnull final Store store)
Method tickStartDeployState.
- Parameters:
@Nonnull final Refref@Nonnull final DeployableComponentcomponent@Nonnull final Storestore
tickAwaitDeployState
void
tickAwaitDeployState
(@Nonnull final Ref ref, @Nonnull final DeployableComponent component, @Nonnull final Store store)
Method tickAwaitDeployState.
- Parameters:
@Nonnull final Refref@Nonnull final DeployableComponentcomponent@Nonnull final Storestore
tickAttackState
void
tickAttackState
(@Nonnull final Ref ref, @Nonnull final DeployableComponent component, final float dt, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tickAttackState.
- Parameters:
@Nonnull final Refref@Nonnull final DeployableComponentcomponentfinal floatdt@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
if
else
if
(shotsFired >= this.burstCount && timeSinceLastAttack >= this.burstCooldown)
Method if.
- Parameters:
shotsFired >= this.burstCount && timeSinceLastAttack >=this.burstCooldown
calculatedTargetPosition
Method calculatedTargetPosition.
- Parameters:
@Nonnull final Vector3doriginal
isValidTarget
boolean
isValidTarget
(@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final Ref targetRef)
Method isValidTarget.
- Parameters:
@Nonnull final Refref@Nonnull final Storestore@Nonnull final ReftargetRef
testLineOfSight
boolean
testLineOfSight
(@Nonnull final Vector3d attackerPos, @Nonnull final Vector3d targetPos, @Nonnull final Vector3d direction, @Nonnull final CommandBuffer commandBuffer)
Method testLineOfSight.
- Parameters:
@Nonnull final Vector3dattackerPos@Nonnull final Vector3dtargetPos@Nonnull final Vector3ddirection@Nonnull final CommandBuffercommandBuffer
updateProjectiles
void
updateProjectiles
(@Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final DeployableProjectileShooterComponent shooterComponent)
Method updateProjectiles.
- Parameters:
@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer@Nonnull final DeployableProjectileShooterComponentshooterComponent
updateProjectile
void
updateProjectile
(@Nonnull final Ref projectileRef, @Nonnull final DeployableProjectileShooterComponent shooterComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method updateProjectile.
- Parameters:
@Nonnull final RefprojectileRef@Nonnull final DeployableProjectileShooterComponentshooterComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
projectileHit
void
projectileHit
(@Nonnull final Ref ref, @Nonnull final Ref projectileRef, @Nonnull final DeployableProjectileShooterComponent shooterComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method projectileHit.
- Parameters:
@Nonnull final Refref@Nonnull final RefprojectileRef@Nonnull final DeployableProjectileShooterComponentshooterComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
Damage
new
Damage
(new Damage.EntitySource(ref)
Method Damage.
- Parameters:
newDamage.EntitySource(ref
applyKnockback
void
applyKnockback
(@Nonnull final Ref targetRef, @Nonnull final Vector3d attackerPos, final float attackerYaw, @Nonnull final Store store)
Method applyKnockback.
- Parameters:
@Nonnull final ReftargetRef@Nonnull final Vector3dattackerPosfinal floatattackerYaw@Nonnull final Storestore
toString
String
toString
()
Method toString.