Class CombatManager
java.lang.Object
zombie.CombatManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
final ObjectPool
<HitInfo> static final int
static final int
static final float
static final int
static final float
static final float
static float
static float
static final float
static final int
static int
static final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDamage
(BodyPart bodyPart, float float0) void
applyDamage
(IsoGameCharacter character, float float0) void
attackCollisionCheck
(IsoGameCharacter character, HandWeapon weapon, SwipeStatePlayer swipeStatePlayer) void
calculateAttackVars
(IsoLivingCharacter livingCharacter) float
calculateDamageToVehicle
(IsoGameCharacter var1, float float0, float float1, int int0) void
calculateHitInfoList
(IsoGameCharacter character) void
calcValidTargets
(IsoLivingCharacter livingCharacter, HandWeapon weapon, ArrayList<HitInfo> arrayList0, ArrayList<HitInfo> arrayList1) static boolean
checkPVP
(IsoGameCharacter character, IsoMovingObject movingObject) static float
getAimDelayPenalty
(float float4, float float0, float float2, float float1) static float
getAimDelayPenaltySightless
(float float1, float float0) static Vector3
getBoneWorldPos
(IsoMovingObject movingObject, String string, Vector3 vector) static float
getDistanceModifier
(float float0, float float1, float float2, boolean var3) static float
getDistanceModifierSightless
(float float0, boolean boolean0) static CombatManager
static float
getMoodlesPenalty
(IsoGameCharacter character, float float0) static float
getMovePenalty
(IsoGameCharacter character, float float1) static float
getPainPenalty
(IsoGameCharacter character) getWeapon
(IsoGameCharacter character) static float
getWeatherPenalty
(IsoGameCharacter character, HandWeapon weapon, IsoGridSquare square, float float1) void
highlightTarget
(IsoGameCharacter character, Color color, float float0) boolean
hitIsoGridSquare
(IsoGridSquare square, org.joml.Vector3f vector3f) static boolean
isProne
(IsoMovingObject movingObject) boolean
isProneTargetBetter
(IsoGameCharacter character, HitInfo hitInfo0, HitInfo hitInfo1) void
postUpdate
(boolean var1) void
pressedAttack
(IsoPlayer player) void
processHit
(HandWeapon weapon, IsoGameCharacter character, IsoZombie zombie) void
processMaintanenceCheck
(IsoGameCharacter character, HandWeapon weapon, IsoObject object) void
releaseBallisticsTargets
(IsoGameCharacter character) void
void
Reset()
void
splash
(IsoMovingObject movingObject, HandWeapon weapon, IsoGameCharacter character1) void
update
(boolean var1) void
updateReticle
(IsoPlayer player)
-
Field Details
-
hitInfoPool
-
OptimalRangeToHitMaximumBonus
public static final float OptimalRangeToHitMaximumBonus- See Also:
-
LowLightThreshold
public static final float LowLightThreshold- See Also:
-
LowLightToHitMaximumPenalty
public static final int LowLightToHitMaximumPenalty- See Also:
-
PointBlankDistance
public static final float PointBlankDistance- See Also:
-
PostShotAimingDelayRecoilModifier
public static float PostShotAimingDelayRecoilModifier -
PostShotAimingDelayAimingModifier
public static float PostShotAimingDelayAimingModifier -
StrengthLevelOffset
public static final int StrengthLevelOffset- See Also:
-
FirearmRecoilMuscleStrainModifier
public static float FirearmRecoilMuscleStrainModifier -
StrengthLevelMuscleStrainModifier
public static final float StrengthLevelMuscleStrainModifier- See Also:
-
TwoHandedWeaponMuscleStrainModifier
public static final float TwoHandedWeaponMuscleStrainModifier- See Also:
-
BallisticsControllerDistanceThreshold
public static float BallisticsControllerDistanceThreshold -
ISOCURSOR
public static final int ISOCURSOR- See Also:
-
ISORETICLE
public static final int ISORETICLE- See Also:
-
targetReticleMode
public static int targetReticleMode
-
-
Constructor Details
-
CombatManager
public CombatManager()
-
-
Method Details
-
getInstance
-
calculateDamageToVehicle
-
getWeapon
-
splash
-
processMaintanenceCheck
public void processMaintanenceCheck(IsoGameCharacter character, HandWeapon weapon, IsoObject object) -
attackCollisionCheck
public void attackCollisionCheck(IsoGameCharacter character, HandWeapon weapon, SwipeStatePlayer swipeStatePlayer) -
releaseBallisticsTargets
-
applyDamage
-
applyDamage
-
calculateAttackVars
-
calcValidTargets
public void calcValidTargets(IsoLivingCharacter livingCharacter, HandWeapon weapon, ArrayList<HitInfo> arrayList0, ArrayList<HitInfo> arrayList1) -
isProne
-
isProneTargetBetter
-
checkPVP
-
renderlast
public void renderlast() -
calculateHitInfoList
-
getBoneWorldPos
-
getDistanceModifierSightless
public static float getDistanceModifierSightless(float float0, boolean boolean0) -
getAimDelayPenaltySightless
public static float getAimDelayPenaltySightless(float float1, float float0) -
getDistanceModifier
public static float getDistanceModifier(float float0, float float1, float float2, boolean var3) -
getMovePenalty
-
getAimDelayPenalty
public static float getAimDelayPenalty(float float4, float float0, float float2, float float1) -
getMoodlesPenalty
-
getWeatherPenalty
public static float getWeatherPenalty(IsoGameCharacter character, HandWeapon weapon, IsoGridSquare square, float float1) -
getPainPenalty
-
Reset
public void Reset() -
processHit
-
highlightTarget
-
pressedAttack
-
update
public void update(boolean var1) -
postUpdate
public void postUpdate(boolean var1) -
updateReticle
-
hitIsoGridSquare
-