# Absolute Value (Real)
Grammar — Abs(value)
Flags —Native
|Function
Returns the value of the real without regard to the sign of the real.
# Arguments
fixed
— Value
Returns — fixed
native fixed AbsF(fixed x);
# Related
Category: Math / Arithmetic
- Absolute Value (Integer) —
int
— AbsI - Absolute Value (Real) —
fixed
— AbsF - Arithmetic (Integer)
- Bitwise Arithmetic (Integer)
- Arithmetic (Real)
- Arithmetic Multiple (Integer)
- Bitwise Arithmetic Multiple (Integer)
- Arithmetic Multiple (Real)
- Ceiling (Integer) —
int
— CeilingI - Ceiling (Real) —
fixed
— Ceiling - Clamp (Integer) —
int
— libNtve_gf_ArithmeticIntClamp - Clamp (Real) —
fixed
— libNtve_gf_ArithmeticRealClamp - Cycle
- Floor (Integer) —
int
— FloorI - Floor (Real) —
fixed
— Floor - Log2 (Integer) —
int
— Log2I - Log2 (Real) —
fixed
— Log2 - Log (Real) —
fixed
— libNtve_gf_Log - Modulo (Integer) —
int
— ModI - Modulo (Real) —
fixed
— ModF - Power (Integer) —
int
— PowI - Power (Real) —
fixed
— Pow - Round (Integer) —
int
— RoundI - Round (Real) —
fixed
— Round - Pow2 (Integer) —
int
— Pow2I - Pow2 (Real) —
fixed
— Pow2 - Square Root (Integer) —
int
— SquareRootI - Square Root (Real) —
fixed
— SquareRoot - Trunc (Integer) —
int
— TruncI - Trunc (Real) —
fixed
— Trunc
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6098
lv_pos = UnitGetPosition(gf_CurrentBackgroundUnit());
lv_posNext = PointWithOffset(lv_pos, 0.0, (2.0 * gv_c_BGHeight));
if ((AbsF((PointGetY(lv_pos) - PointGetY(gv_bGTarget))) < 2.0)) {
lv_indexNew = RandomInt(1, gv_selectedBackgroundCount);
if ((lv_indexNew != gv_currentBackgroundIndex)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6325
}
if ((lv_facingViking == true) && (UnitIsAlive(gv_viking) == true)) {
libNtve_gf_MakeUnitFacePoint(lv_plane, UnitGetPosition(gv_viking), (AbsF((UnitGetFacing(lv_plane) - AngleBetweenPoints(lv_posCurrent, UnitGetPosition(gv_viking)))) / 30.0));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6860
else {
}
lv_turnTimes = FixedToInt((lv_waveInfo.lv_patternParam5 / AbsF(lv_angleInterval)));
lv_speed = ((2.0 * gv_c_Pai) * (lv_radius * (lv_angleInterval / 360.0)));
lv_speed = AbsF((lv_speed / 0.0625));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6862
lv_turnTimes = FixedToInt((lv_waveInfo.lv_patternParam5 / AbsF(lv_angleInterval)));
lv_speed = ((2.0 * gv_c_Pai) * (lv_radius * (lv_angleInterval / 360.0)));
lv_speed = AbsF((lv_speed / 0.0625));
gf_SpawnMob(1, lv_waveInfo.lv_unitType, lv_posSpawn, 270.0);
lv_plane = UnitLastCreated();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:35
// Implementation
lv_radius = (AbsF((PointGetX(RegionGetBoundsMax(lp_circle)) - PointGetX(RegionGetBoundsMin(lp_circle)))) / 2.0);
return PointWithOffsetPolar(RegionGetCenter(lp_circle), RandomFixed(0.0, lv_radius), libNtve_gf_RandomAngle());
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:15215
lv_incrementOffset = 0.15;
lv_offsetOriginal = libCamp_gf_DialogOffsetYInGrid(gv_newItems[lv_newItemIndex].lv_dialog);
if ((AbsF((lv_offsetTarget - lv_offsetOriginal)) <= lv_incrementOffset)) {
gf_MoveNewItemInstant(lv_newItemIndex, lv_offsetTarget);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6098
lv_pos = UnitGetPosition(gf_CurrentBackgroundUnit());
lv_posNext = PointWithOffset(lv_pos, 0.0, (2.0 * gv_c_BGHeight));
if ((AbsF((PointGetY(lv_pos) - PointGetY(gv_bGTarget))) < 2.0)) {
lv_indexNew = RandomInt(1, gv_selectedBackgroundCount);
if ((lv_indexNew != gv_currentBackgroundIndex)) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6325
}
if ((lv_facingViking == true) && (UnitIsAlive(gv_viking) == true)) {
libNtve_gf_MakeUnitFacePoint(lv_plane, UnitGetPosition(gv_viking), (AbsF((UnitGetFacing(lv_plane) - AngleBetweenPoints(lv_posCurrent, UnitGetPosition(gv_viking)))) / 30.0));
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6860
else {
}
lv_turnTimes = FixedToInt((lv_waveInfo.lv_patternParam5 / AbsF(lv_angleInterval)));
lv_speed = ((2.0 * gv_c_Pai) * (lv_radius * (lv_angleInterval / 360.0)));
lv_speed = AbsF((lv_speed / 0.0625));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6862
lv_turnTimes = FixedToInt((lv_waveInfo.lv_patternParam5 / AbsF(lv_angleInterval)));
lv_speed = ((2.0 * gv_c_Pai) * (lv_radius * (lv_angleInterval / 360.0)));
lv_speed = AbsF((lv_speed / 0.0625));
gf_SpawnMob(1, lv_waveInfo.lv_unitType, lv_posSpawn, 270.0);
lv_plane = UnitLastCreated();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2map — MapScript.galaxy:35
// Implementation
lv_radius = (AbsF((PointGetX(RegionGetBoundsMax(lp_circle)) - PointGetX(RegionGetBoundsMin(lp_circle)))) / 2.0);
return PointWithOffsetPolar(RegionGetCenter(lp_circle), RandomFixed(0.0, lv_radius), libNtve_gf_RandomAngle());
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:15215
lv_incrementOffset = 0.15;
lv_offsetOriginal = libCamp_gf_DialogOffsetYInGrid(gv_newItems[lv_newItemIndex].lv_dialog);
if ((AbsF((lv_offsetTarget - lv_offsetOriginal)) <= lv_incrementOffset)) {
gf_MoveNewItemInstant(lv_newItemIndex, lv_offsetTarget);
return true;
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:1680
lv_sign = -1.0;
}
lv_ret = (AbsF(lp_grid) * libCamp_gv_gRIDDLG_GRID);
if ((lp_sizeOrPos == libCamp_ge_GRIDDLG_HV2_ClientSize)) {
lv_ret = MaxF((lv_ret - lv_gap), 0.0);
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:1713
lv_sign = -1.0;
}
lv_ret = AbsF(lp_value);
if ((lp_sizeOrPos == libCamp_ge_GRIDDLG_HV2_ClientSize)) {
lv_ret += lv_gap;
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:4171
// Automatic Variable Declarations
// Implementation
return AbsF((PointGetX(RegionGetBoundsMax(lp_region)) - PointGetX(RegionGetBoundsMin(lp_region))));
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:4177
// Automatic Variable Declarations
// Implementation
return AbsF((PointGetY(RegionGetBoundsMax(lp_region)) - PointGetY(RegionGetBoundsMin(lp_region))));
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3470
// Automatic Variable Declarations
// Implementation
return AbsF((PointGetX(RegionGetBoundsMax(lp_region)) - PointGetX(RegionGetBoundsMin(lp_region))));
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3476
// Automatic Variable Declarations
// Implementation
return AbsF((PointGetY(RegionGetBoundsMax(lp_region)) - PointGetY(RegionGetBoundsMin(lp_region))));
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:1476
if (lv_itUnit == null) { break; }
lv_ptUnit = UnitGetPosition(lv_itUnit);
lv_distanceUnitPre = AbsF(DistanceBetweenPoints(lv_ptPre, lv_ptUnit));
lv_distanceUnitNext = AbsF(DistanceBetweenPoints(lv_ptNext, lv_ptUnit));
if ((UnitGroupHasUnit(libPVEB_gv_pvEWaves[lp_waveIndex].lv_unitsWaitingAtWaypoint, lv_itUnit) == true)) {
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:1477
lv_ptUnit = UnitGetPosition(lv_itUnit);
lv_distanceUnitPre = AbsF(DistanceBetweenPoints(lv_ptPre, lv_ptUnit));
lv_distanceUnitNext = AbsF(DistanceBetweenPoints(lv_ptNext, lv_ptUnit));
if ((UnitGroupHasUnit(libPVEB_gv_pvEWaves[lp_waveIndex].lv_unitsWaitingAtWaypoint, lv_itUnit) == true)) {
if ((lv_distanceUnitNext > libPVEB_gv_pvEWaveLeashDistance_On_C)) {
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:1506
}
lv_angelUnit = AngleBetweenPoints(lv_ptPre, lv_ptUnit);
lv_offset = AbsF((lv_distanceUnitPre * Sin((lv_angelUnit - lv_angelLane))));
if ((lv_offset >= libPVEB_gv_pvEWaveLeashDistance_On_C)) {
lv_ptAnchor = PointWithOffsetPolar(lv_ptPre, AbsF((lv_distanceUnitPre * Cos((lv_angelUnit - lv_angelLane)))), lv_angelLane);
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:1508
lv_offset = AbsF((lv_distanceUnitPre * Sin((lv_angelUnit - lv_angelLane))));
if ((lv_offset >= libPVEB_gv_pvEWaveLeashDistance_On_C)) {
lv_ptAnchor = PointWithOffsetPolar(lv_ptPre, AbsF((lv_distanceUnitPre * Cos((lv_angelUnit - lv_angelLane)))), lv_angelLane);
UnitIssueOrder(lv_itUnit, OrderTargetingPoint(AbilityCommand("move", 0), lv_ptAnchor), c_orderQueueReplace);
UnitGroupAdd(libPVEB_gv_pvEWaves[lp_waveIndex].lv_unitsLeashing, lv_itUnit);
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:147
if (lv_itUnit == null) { break; }
lv_ptUnit = UnitGetPosition(lv_itUnit);
lv_distanceUnitPre = AbsF(DistanceBetweenPoints(lv_ptPre, lv_ptUnit));
lv_distanceUnitNext = AbsF(DistanceBetweenPoints(lv_ptNext, lv_ptUnit));
if ((UnitGroupHasUnit(libPVEM_gv_pvEAttackWaves[lp_waveIndex].lv_unitsWaitingAtWaypoint, lv_itUnit) == true)) {
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:148
lv_ptUnit = UnitGetPosition(lv_itUnit);
lv_distanceUnitPre = AbsF(DistanceBetweenPoints(lv_ptPre, lv_ptUnit));
lv_distanceUnitNext = AbsF(DistanceBetweenPoints(lv_ptNext, lv_ptUnit));
if ((UnitGroupHasUnit(libPVEM_gv_pvEAttackWaves[lp_waveIndex].lv_unitsWaitingAtWaypoint, lv_itUnit) == true)) {
if ((lv_distanceUnitNext > libPVEM_gv_pvEAttackWaveLeashDistance_On_C)) {
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:177
}
lv_angelUnit = AngleBetweenPoints(lv_ptPre, lv_ptUnit);
lv_offset = AbsF((lv_distanceUnitPre * Sin((lv_angelUnit - lv_angelLane))));
if ((lv_offset >= libPVEM_gv_pvEAttackWaveLeashDistance_On_C)) {
lv_ptAnchor = PointWithOffsetPolar(lv_ptPre, AbsF((lv_distanceUnitPre * Cos((lv_angelUnit - lv_angelLane)))), lv_angelLane);
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:179
lv_offset = AbsF((lv_distanceUnitPre * Sin((lv_angelUnit - lv_angelLane))));
if ((lv_offset >= libPVEM_gv_pvEAttackWaveLeashDistance_On_C)) {
lv_ptAnchor = PointWithOffsetPolar(lv_ptPre, AbsF((lv_distanceUnitPre * Cos((lv_angelUnit - lv_angelLane)))), lv_angelLane);
UnitIssueOrder(lv_itUnit, OrderTargetingPoint(AbilityCommand("move", 0), lv_ptAnchor), c_orderQueueReplace);
UnitGroupAdd(libPVEM_gv_pvEAttackWaves[lp_waveIndex].lv_unitsLeashing, lv_itUnit);
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1531
}
if ((AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]) > AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]))) {
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]));
}
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1531
}
if ((AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]) > AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]))) {
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]));
}
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1532
if ((AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]) > AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]))) {
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]));
}
else if ((AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) > AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]))) {
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1532
if ((AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]) > AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]))) {
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]));
}
else if ((AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) > AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]))) {
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1534
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]));
}
else if ((AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) > AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]))) {
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]));
}
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1534
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]));
}
else if ((AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) > AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]))) {
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]));
}
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1535
}
else if ((AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) > AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]))) {
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]));
}
else if ((AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) == AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]))) {
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1535
}
else if ((AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) > AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]))) {
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]));
}
else if ((AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) == AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]))) {
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1537
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]));
}
else if ((AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) == AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]))) {
lv_difference = 0.0;
}
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1537
lv_difference = (AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) - AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]));
}
else if ((AbsF(libLNYF_gv_movement.lv_facing_Old[autoE34AC8EB_var]) == AbsF(libLNYF_gv_movement.lv_facing_Current[autoE34AC8EB_var]))) {
lv_difference = 0.0;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2140
}
else {
lv_levelDifferenceTrunc = AbsF(Trunc(lv_levelDifferenceReal));
}
lv_levelDifferenceModulo = AbsF(ModF(lv_levelDifferenceReal, 1.0));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2142
lv_levelDifferenceTrunc = AbsF(Trunc(lv_levelDifferenceReal));
}
lv_levelDifferenceModulo = AbsF(ModF(lv_levelDifferenceReal, 1.0));
lv_levelDifferenceModuloPostCalc = (lv_levelDifferenceModulo * 0.1);
if ((lv_levelDifferenceTrunc == 0.0)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2842
// Implementation
lv_diff = ModF(AbsF((lp_angle1 - lp_angle2)), 360.0);
if ((lv_diff > 180.0)) {
lv_diff = AbsF((lv_diff - 360.0));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2844
lv_diff = ModF(AbsF((lp_angle1 - lp_angle2)), 360.0);
if ((lv_diff > 180.0)) {
lv_diff = AbsF((lv_diff - 360.0));
}
mods/heromods/alexstrasza.stormmod — base.stormdata/LibHALE.galaxy:110
lv_setHealthTarget = lv_alexstrasza;
}
lv_healthModifyFraction = (AbsF((lv_targetHealthPercent - lv_alexstraszaHealthPercent)) / 100.0);
CatalogFieldValueSetFixed(c_gameCatalogEffect, "AlexstraszaLifebinderCreateHealer", "RechargeVitalFraction", lv_castingPlayer, lv_healthModifyFraction);
UnitCreateEffectUnit(lv_alexstrasza, "AlexstraszaLifebinderCreateHealer", lv_setHealthTarget);
mods/heromods/imperius.stormmod — base.stormdata/LibHIMP.galaxy:129
lv_relativeAngle360 = (lv_relativeAngle + 360.0);
}
lv_iTAngle = MinF(AbsF((lv_imperiusUnitFacing360 - lv_relativeAngle360)), AbsF(((lv_imperiusUnitFacing360 + lv_relativeAngle360) - 360.0)));
lv_iADistance = (Cos(lv_iTAngle) * lv_iTDistance);
if (((lv_iADistance >= lv_minSkewerDistance) && (lv_iADistance <= lv_maxSkewerDistance))) {
mods/heromods/imperius.stormmod — base.stormdata/LibHIMP.galaxy:129
lv_relativeAngle360 = (lv_relativeAngle + 360.0);
}
lv_iTAngle = MinF(AbsF((lv_imperiusUnitFacing360 - lv_relativeAngle360)), AbsF(((lv_imperiusUnitFacing360 + lv_relativeAngle360) - 360.0)));
lv_iADistance = (Cos(lv_iTAngle) * lv_iTDistance);
if (((lv_iADistance >= lv_minSkewerDistance) && (lv_iADistance <= lv_maxSkewerDistance))) {
mods/heromods/malthael.stormmod — base.stormdata/LibHMTH.galaxy:225
}
libHMTH_gv_heroMalthaelTouchOfDeathHealingAbsorbedAmount[lv_touchOfDeathCaster] += (CatalogFieldValueGetAsFixed(c_gameCatalogEffect, lv_healingEffect, "RechargeVitalRate", lv_casterPlayer) * AbsF(libHMTH_gv_heroMalthaelTouchOfDeathHealingPreventScale));
libHMTH_gv_heroMalthaelTouchOfDeathHealingAbsorbedAmount[lv_touchOfDeathCaster] += ((CatalogFieldValueGetAsFixed(c_gameCatalogEffect, lv_healingEffect, "RechargeVitalFraction", lv_casterPlayer) * CatalogFieldValueGetAsFixed(c_gameCatalogUnit, UnitGetType(lv_targetUnit), "LifeMax", lv_targetPlayer)) * AbsF(libHMTH_gv_heroMalthaelTouchOfDeathHealingPreventScale));
return true;
mods/heromods/malthael.stormmod — base.stormdata/LibHMTH.galaxy:226
libHMTH_gv_heroMalthaelTouchOfDeathHealingAbsorbedAmount[lv_touchOfDeathCaster] += (CatalogFieldValueGetAsFixed(c_gameCatalogEffect, lv_healingEffect, "RechargeVitalRate", lv_casterPlayer) * AbsF(libHMTH_gv_heroMalthaelTouchOfDeathHealingPreventScale));
libHMTH_gv_heroMalthaelTouchOfDeathHealingAbsorbedAmount[lv_touchOfDeathCaster] += ((CatalogFieldValueGetAsFixed(c_gameCatalogEffect, lv_healingEffect, "RechargeVitalFraction", lv_casterPlayer) * CatalogFieldValueGetAsFixed(c_gameCatalogUnit, UnitGetType(lv_targetUnit), "LifeMax", lv_targetPlayer)) * AbsF(libHMTH_gv_heroMalthaelTouchOfDeathHealingPreventScale));
return true;
}
mods/heromods/thefirelords.stormmod — base.stormdata/LibHMaj.galaxy:332
}
UnitBehaviorSetDuration(lv_bigRagnarosUnit, "RagnarosMoltenCoreDuration", ((UnitGetPropertyFixed(EventUnit(), c_unitPropLifeMax, c_unitPropCurrent) / AbsF(UnitGetPropertyFixed(EventUnit(), c_unitPropLifeRegen, c_unitPropCurrent)))));
while ((UnitIsAlive(lv_bigRagnarosUnit) == true)) {
UnitBehaviorSetDurationRemaining(lv_bigRagnarosUnit, "RagnarosMoltenCoreDuration", ((UnitGetPropertyFixed(EventUnit(), c_unitPropLifeMax, c_unitPropCurrent) / AbsF(UnitGetPropertyFixed(EventUnit(), c_unitPropLifeRegen, c_unitPropCurrent))) * (UnitGetPropertyFixed(lv_bigRagnarosUnit, c_unitPropLifePercent, c_unitPropCurrent) / 100)));
mods/heromods/thefirelords.stormmod — base.stormdata/LibHMaj.galaxy:334
UnitBehaviorSetDuration(lv_bigRagnarosUnit, "RagnarosMoltenCoreDuration", ((UnitGetPropertyFixed(EventUnit(), c_unitPropLifeMax, c_unitPropCurrent) / AbsF(UnitGetPropertyFixed(EventUnit(), c_unitPropLifeRegen, c_unitPropCurrent)))));
while ((UnitIsAlive(lv_bigRagnarosUnit) == true)) {
UnitBehaviorSetDurationRemaining(lv_bigRagnarosUnit, "RagnarosMoltenCoreDuration", ((UnitGetPropertyFixed(EventUnit(), c_unitPropLifeMax, c_unitPropCurrent) / AbsF(UnitGetPropertyFixed(EventUnit(), c_unitPropLifeRegen, c_unitPropCurrent))) * (UnitGetPropertyFixed(lv_bigRagnarosUnit, c_unitPropLifePercent, c_unitPropCurrent) / 100)));
Wait(0.0625, c_timeGame);
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:4554
}
if (!((AbsF((UnitGetFacing(gv_s2_Davis) - AngleBetweenPoints(UnitGetPosition(gv_s2_Davis), UnitGetPosition(gv_nova)))) > 15.0))) {
return false;
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:4883
}
else {
if ((AbsF((PointGetFacing(PointFromId(599)) - UnitGetFacing(gv_xanthos))) > 5.0)) {
UnitIssueOrder(gv_xanthos, OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(599), 1.0, Round(PointGetFacing(PointFromId(599))))), c_orderQueueReplace);
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2map — MapScript.galaxy:4554
}
if (!((AbsF((UnitGetFacing(gv_s2_Davis) - AngleBetweenPoints(UnitGetPosition(gv_s2_Davis), UnitGetPosition(gv_nova)))) > 15.0))) {
return false;
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2map — MapScript.galaxy:4883
}
else {
if ((AbsF((PointGetFacing(PointFromId(599)) - UnitGetFacing(gv_xanthos))) > 5.0)) {
UnitIssueOrder(gv_xanthos, OrderTargetingPoint(AbilityCommand("move", 4), PointWithOffsetPolar(PointFromId(599), 1.0, Round(PointGetFacing(PointFromId(599))))), c_orderQueueReplace);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:17322
// Variable Initialization
lv_reviveTimerAdjustment = libCOMI_gv_cM_DehakaEatReviveTimerAdjustment;
lv_healthAdjustment = ((AbsF(libCOMI_gv_cM_DehakaEatReviveTimerAdjustment) / libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogBehavior, "DehakaNormalReviveTimer", "Duration", EventPlayer())) * UnitGetPropertyFixed(libCOMI_gv_cM_HeroReviver[EventPlayer()], c_unitPropLifeMax, c_unitPropCurrent));
// Actions
mods/warcoop/legends/gromhellscream.sc2mod — base.sc2data/LibLGrm.galaxy:47
for ( ; ( (auto52194A69_ai >= 0 && lv_currentdistance <= auto52194A69_ae) || (auto52194A69_ai < 0 && lv_currentdistance >= auto52194A69_ae) ) ; lv_currentdistance += auto52194A69_ai ) {
lv_currentpoint = PointWithOffsetPolar(lv_startingpoint, lv_currentdistance, lv_anglebetweenstartandtarget);
if ((PathingType(lv_currentpoint) == c_pathingGround) && (AbsF((lv_startingclifflevel - PointPathingCliffLevel(lv_currentpoint))) < lv_maxcliffdifference) && (UnitPathableToPoint(lp_pathingUnit, lv_currentpoint, 0.0, 500.0) == true)) {
return PointWithOffsetPolar(lv_startingpoint, lv_currentdistance, lv_anglebetweenstartandtarget);
}