# Maximum (Real)
Grammar — Max(value1, value2)
Flags —Native
|Function
Returns the highest of the two real values specified.
# Arguments
fixed
— Value 1fixed
— Value 2
Returns — fixed
native fixed MaxF(fixed x1, fixed x2);
# Related
Category: Math / Conditionals
- Minimum (Integer) —
int
— MinI - Minimum (Real) —
fixed
— MinF - Maximum (Integer) —
int
— MaxI - Maximum (Real) —
fixed
— MaxF
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1177
lv_posCurrent = UnitGetPosition(gv_boss);
lv_xNew = (PointGetX(lv_posCurrent) + ((lp_x - PointGetX(lv_posCurrent)) * 0.5));
lv_targetLoc = Point(MaxF(gf_ConvertShooterXToMapX(5.0), MinF(gf_ConvertShooterXToMapX(15.0), lv_xNew)), gf_ConvertShooterYToMapY(gv_c_LeviathanY));
UnitIssueOrder(gv_boss, OrderTargetingPoint(AbilityCommand("move", 0), lv_targetLoc), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2985
// Implementation
lv_center = UnitGetPosition(lp_powerup);
lv_x = MaxF(lv_xLeft, MinF(lv_xRight, PointGetX(lv_center)));
lv_y = MaxF(lv_yBottom, MinF(lv_yTop, PointGetY(lv_center)));
lv_center = Point(lv_x, lv_y);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2986
lv_center = UnitGetPosition(lp_powerup);
lv_x = MaxF(lv_xLeft, MinF(lv_xRight, PointGetX(lv_center)));
lv_y = MaxF(lv_yBottom, MinF(lv_yTop, PointGetY(lv_center)));
lv_center = Point(lv_x, lv_y);
auto8D64FDEC_n = 6;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4423
Wait((gv_trainWaveWait - 40.0), c_timeAI);
lv_wavePeriod = (gv_trainWaveWait * 2.0);
Wait(MaxF((lv_wavePeriod - 150.0), 0.0), c_timeAI);
while (true) {
if ((gv_trainsDestroyed >= 6) && (gv_trainsDestroyed < 7)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4479
Wait((gv_trainWaveWait - 20.0), c_timeAI);
lv_wavePeriod = (gv_trainWaveWait * 2.0);
Wait(MaxF((lv_wavePeriod - 150.0), 0.0), c_timeAI);
while (true) {
if ((gv_trainsDestroyed >= 6) && (gv_trainsDestroyed < 7)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7075
Wait(0.1, c_timeGame);
CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.06, 2.0, 100.0, 1.5);
UnitSetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, MaxF(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent), (gv_queenHP * 0.75)));
UnitIssueOrder(gv_tHEONEBROODMOTHER, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
SoundPlay(SoundLink("Zerg_UnburrowLarge", -1), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7169
Wait(0.1, c_timeGame);
CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.06, 2.0, 100.0, 1.5);
UnitSetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, MaxF(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent), (gv_queenHP * 0.5)));
UnitIssueOrder(gv_tHEONEBROODMOTHER, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
SoundPlay(SoundLink("QueenReady", 0), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7219
Wait(0.1, c_timeGame);
CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.06, 2.0, 100.0, 1.5);
UnitSetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, MaxF(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent), (gv_queenHP * 0.35)));
UnitIssueOrder(gv_tHEONEBROODMOTHER, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
SoundPlay(SoundLink("Zerg_UnburrowLarge", -1), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:1177
lv_posCurrent = UnitGetPosition(gv_boss);
lv_xNew = (PointGetX(lv_posCurrent) + ((lp_x - PointGetX(lv_posCurrent)) * 0.5));
lv_targetLoc = Point(MaxF(gf_ConvertShooterXToMapX(5.0), MinF(gf_ConvertShooterXToMapX(15.0), lv_xNew)), gf_ConvertShooterYToMapY(gv_c_LeviathanY));
UnitIssueOrder(gv_boss, OrderTargetingPoint(AbilityCommand("move", 0), lv_targetLoc), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:2985
// Implementation
lv_center = UnitGetPosition(lp_powerup);
lv_x = MaxF(lv_xLeft, MinF(lv_xRight, PointGetX(lv_center)));
lv_y = MaxF(lv_yBottom, MinF(lv_yTop, PointGetY(lv_center)));
lv_center = Point(lv_x, lv_y);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:2986
lv_center = UnitGetPosition(lp_powerup);
lv_x = MaxF(lv_xLeft, MinF(lv_xRight, PointGetX(lv_center)));
lv_y = MaxF(lv_yBottom, MinF(lv_yTop, PointGetY(lv_center)));
lv_center = Point(lv_x, lv_y);
auto8D64FDEC_n = 6;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:4423
Wait((gv_trainWaveWait - 40.0), c_timeAI);
lv_wavePeriod = (gv_trainWaveWait * 2.0);
Wait(MaxF((lv_wavePeriod - 150.0), 0.0), c_timeAI);
while (true) {
if ((gv_trainsDestroyed >= 6) && (gv_trainsDestroyed < 7)) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:4479
Wait((gv_trainWaveWait - 20.0), c_timeAI);
lv_wavePeriod = (gv_trainWaveWait * 2.0);
Wait(MaxF((lv_wavePeriod - 150.0), 0.0), c_timeAI);
while (true) {
if ((gv_trainsDestroyed >= 6) && (gv_trainsDestroyed < 7)) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7075
Wait(0.1, c_timeGame);
CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.06, 2.0, 100.0, 1.5);
UnitSetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, MaxF(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent), (gv_queenHP * 0.75)));
UnitIssueOrder(gv_tHEONEBROODMOTHER, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
SoundPlay(SoundLink("Zerg_UnburrowLarge", -1), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7169
Wait(0.1, c_timeGame);
CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.06, 2.0, 100.0, 1.5);
UnitSetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, MaxF(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent), (gv_queenHP * 0.5)));
UnitIssueOrder(gv_tHEONEBROODMOTHER, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
SoundPlay(SoundLink("QueenReady", 0), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7219
Wait(0.1, c_timeGame);
CameraShakeStart(gv_p1_USER, c_cameraPositionTarget, c_cameraDirectionZ, 0.06, 2.0, 100.0, 1.5);
UnitSetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, MaxF(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent), (gv_queenHP * 0.35)));
UnitIssueOrder(gv_tHEONEBROODMOTHER, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
SoundPlay(SoundLink("Zerg_UnburrowLarge", -1), PlayerGroupAll(), 100.0, 0.0);
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:1682
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:11790
else {
}
lv_waitDuration = MaxF(lv_waitDuration, 0.0);
Wait(lv_waitDuration, c_timeReal);
}
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:11922
else {
}
lv_p_Duration = MaxF(lv_waitDuration, 0.0);
lv_p_DurationType = c_transmissionDurationSet;
lv_sound = null;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:4409
gf_ShowHideMeatProgressBar(lv_campIndex, true, false);
lv_life = UnitGetPropertyFixed(gv_corpse_PerCamp[lv_campIndex], c_unitPropLife, c_unitPropCurrent);
lv_life = MaxF((lv_life - 0.5), 0.0);
if ((gf_CorpseBeingHarvestedByPlayer(lv_campIndex) == false)) {
gf_SetMeatProgressBarProgress(lv_campIndex, FixedToInt(lv_life));
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:4409
gf_ShowHideMeatProgressBar(lv_campIndex, true, false);
lv_life = UnitGetPropertyFixed(gv_corpse_PerCamp[lv_campIndex], c_unitPropLife, c_unitPropCurrent);
lv_life = MaxF((lv_life - 0.5), 0.0);
if ((gf_CorpseBeingHarvestedByPlayer(lv_campIndex) == false)) {
gf_SetMeatProgressBarProgress(lv_campIndex, FixedToInt(lv_life));
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4489
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libSwaC_gv_zS_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2538
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libVCMI_gv_pM_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4838
lv_effectPosition[2] = WorldHeight(c_heightMapGround, EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
lv_distance = SquareRoot((Pow((lv_cameraPosition[0]-lv_effectPosition[0]), 2.0) + Pow((lv_cameraPosition[1]-lv_effectPosition[1]), 2.0) + Pow((lv_cameraPosition[2]-lv_effectPosition[2]), 2.0)));
CameraShakeStart(1, c_cameraPositionTarget, c_cameraDirectionZ, MaxF((1-(lv_distance/50)), 0.0), 2.5, 100.0, 0.1);
return true;
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2042
UISetCursorVisible(lv_validPlayers, false);
libNtve_gf_ShowHidePlacementModels(false);
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Cinematic, lv_validPlayers, MaxF(lp_duration, 1.5));
auto74C9138D_g = lv_validPlayers;
lv_pickedPlayer = -1;
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2089
libNtve_gf_HideAllCinematicPortraits(lv_validPlayers);
libNtve_gf__CineModeTurnOnOffForPlayerGroup(lv_validPlayers, false);
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, lv_validPlayers, MaxF(lp_duration, 1.5));
libNtve_gf__CineModeRestoreUI(lv_validPlayers);
CinematicMode(lv_validPlayers, false, lp_duration);
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1732
UISetCursorVisible(lv_validPlayers, false);
libNtve_gf_ShowHidePlacementModels(false);
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Cinematic, lv_validPlayers, MaxF(lp_duration, 1.5));
auto74C9138D_g = lv_validPlayers;
lv_pickedPlayer = -1;
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1779
libNtve_gf_HideAllCinematicPortraits(lv_validPlayers);
libNtve_gf__CineModeTurnOnOffForPlayerGroup(lv_validPlayers, false);
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Game, lv_validPlayers, MaxF(lp_duration, 1.5));
libNtve_gf__CineModeRestoreUI(lv_validPlayers);
CinematicMode(lv_validPlayers, false, lp_duration);
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:12163
libGame_gf_ScoreValuesReportIntegerValueAndLog(lv_itPlayer, "TotalDamage", (PlayerScoreValueGetAsInt(lv_itPlayer, "SiegeDamage") + PlayerScoreValueGetAsInt(lv_itPlayer, "HeroDamage")));
}
lv_time = MaxF(0.0, libUIUI_gf_HeroesGameTime());
libNtve_gf_SetDialogItemText(libPEB1_gv_pZETabScreenPanel.lv_currentTimeLabel, TextTimeFormat(StringToText("<hour2/>:<min2/>:<sec2/>"), FixedToInt(lv_time)), PlayerGroupAll());
return true;
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1511
}
if ((UnitHasBehavior2(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSlowInRough") == true)) {
UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeed, MaxF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] - 1.0), 4.0));
UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropBaseMovementSpeed, MaxF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] - 1.0), 4.0));
libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] = MaxF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] - 1.0), 4.0);
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1512
if ((UnitHasBehavior2(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, "LunarFestivalSlowInRough") == true)) {
UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeed, MaxF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] - 1.0), 4.0));
UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropBaseMovementSpeed, MaxF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] - 1.0), 4.0));
libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] = MaxF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] - 1.0), 4.0);
continue;
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1513
UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropMovementSpeed, MaxF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] - 1.0), 4.0));
UnitSetPropertyFixed(libGame_gv_players[autoE34AC8EB_var].lv_heroUnit, c_unitPropBaseMovementSpeed, MaxF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] - 1.0), 4.0));
libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] = MaxF((libLNYF_gv_movement.lv_speed[autoE34AC8EB_var] - 1.0), 4.0);
continue;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:2245
// Implementation
lv_originalDistance = DistanceBetweenPoints(lp_selfPosition, lp_otherPoint);
lv_searchRadius = MinF(MaxF(libAIAI_gv_aIGateNearbyRange, (lv_offsetFromEdge + (0.5 * lv_originalDistance))), lv_maxSearchRadius);
if ((lv_originalDistance < ((lv_searchRadius - lv_offsetFromEdge) * 2.0))) {
lv_centerPoint = MidPoint(lp_selfPosition, lp_otherPoint);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:25961
lv_currentCooldownAmount = UnitBehaviorDuration(lv_hero, "TalentBucketMarksmanCooldown");
lv_newCooldownAmount = (lv_currentCooldownAmount - 1.0);
UnitBehaviorSetDurationRemaining(lv_hero, "TalentBucketMarksmanCooldown", MaxF(lv_newCooldownAmount, 0.1));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:6662
libGame_gv_players[lp_player].lv_timeSpentDead += lp_initialRespawnTime;
TimerStart(libGame_gv_players[lp_player].lv_respawnTimer, lp_initialRespawnTime, false, c_timeGame);
TimerStart(libGame_gv_players[lp_player].lv_respawnSoundCueTimer, MaxF((lp_initialRespawnTime - libGame_gv_heroDeathRespawnCueSoundTiming), 0.0625), false, c_timeGame);
libGame_gf_ScoreValuesReportRealValueAndLog(lp_player, "TimeSpentDead", libGame_gv_players[lp_player].lv_timeSpentDead);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:6803
}
TimerStart(libGame_gv_players[lp_respawningPlayer].lv_respawnTimer, lp_newRespawnTimerDuration, false, c_timeGame);
TimerStart(libGame_gv_players[lp_respawningPlayer].lv_respawnSoundCueTimer, MaxF((lp_newRespawnTimerDuration - libGame_gv_heroDeathRespawnCueSoundTiming), 0.0625), false, c_timeGame);
DialogControlSetVisible(libUIUI_gv_heroConsoleUnitStatusBars.lv_stunDeathBarParentFrame, libCore_gv_playerGroupFromPlayer[lp_respawningPlayer], false);
libUIUI_gf_HeroConsoleUnitStatusBarsUpdateStunDeathBar("Dead", lp_respawningPlayer);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:1707
if ((lp_player == 1) && (libCore_gv_sYSGameMode == libCore_ge_GameModes_Tutorial1)) {
lv_deathTime = MinF(MaxF(7.0, (lv_deathTime / 2.0)), 15.0);
}
else if ((lp_player == 1) && (libCore_gv_sYSGameMode == libCore_ge_GameModes_TutorialMapMechanics)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:1710
}
else if ((lp_player == 1) && (libCore_gv_sYSGameMode == libCore_ge_GameModes_TutorialMapMechanics)) {
lv_deathTime = MinF(MaxF(7.0, (lv_deathTime / 2.0)), 20.0);
}
else if ((libStEx_gf_GameIsSinglePlayer() == true) && ((libStEx_gf_InTrainingMode() == true) || (libStEx_gf_InPracticeMode() == true)) && (PlayerType(lp_player) == c_playerTypeUser)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:444
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime));
lv_combatTime = (TimerGetElapsed(libGame_gv_gobalTimer) - lv_combatTime);
return (lv_combatTime < 3.0);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:8131
Wait(1.0, c_timeGame);
if ((TimerGetRemaining(libGame_gv_jungleWatchTowerStartTimer) > 0.0)) {
lv_newTimerDuration = MaxF((TimerGetRemaining(libGame_gv_jungleWatchTowerStartTimer)-lv_requestedTimeChange*60), 0.0625);
TimerStart(libGame_gv_jungleWatchTowerStartTimer, lv_newTimerDuration, false, c_timeGame);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:8136
if ((TimerGetRemaining(libGame_gv_xPTrickleStartTimer) > 0.0)) {
lv_newTimerDuration = MaxF((TimerGetRemaining(libGame_gv_xPTrickleStartTimer)-lv_requestedTimeChange*60), 0.0625);
TimerStart(libGame_gv_xPTrickleStartTimer, lv_newTimerDuration, false, c_timeGame);
}
mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod — base.stormdata/LibSCHO.galaxy:2946
}
if ((lp_calculateMaximum == true)) {
UnitSetPropertyFixed(libSCHO_gv_mMHO_OrderProgressUnit, c_unitPropLifeMax, MaxF(libSCHO_gv_mMHO_TotalZergHP[libGame_gv_teamOrderIndex_C], libSCHO_gv_mMHO_TotalZergHP[libGame_gv_teamChaosIndex_C]));
UnitSetPropertyFixed(libSCHO_gv_mMHO_ChaosProgressUnit, c_unitPropLifeMax, MaxF(libSCHO_gv_mMHO_TotalZergHP[libGame_gv_teamOrderIndex_C], libSCHO_gv_mMHO_TotalZergHP[libGame_gv_teamChaosIndex_C]));
}
mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod — base.stormdata/LibSCHO.galaxy:2947
if ((lp_calculateMaximum == true)) {
UnitSetPropertyFixed(libSCHO_gv_mMHO_OrderProgressUnit, c_unitPropLifeMax, MaxF(libSCHO_gv_mMHO_TotalZergHP[libGame_gv_teamOrderIndex_C], libSCHO_gv_mMHO_TotalZergHP[libGame_gv_teamChaosIndex_C]));
UnitSetPropertyFixed(libSCHO_gv_mMHO_ChaosProgressUnit, c_unitPropLifeMax, MaxF(libSCHO_gv_mMHO_TotalZergHP[libGame_gv_teamOrderIndex_C], libSCHO_gv_mMHO_TotalZergHP[libGame_gv_teamChaosIndex_C]));
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibCMMI.galaxy:91
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libCMMI_gv_NM_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:4638
lv_effectPosition[2] = WorldHeight(c_heightMapGround, EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
lv_distance = SquareRoot((Pow((lv_cameraPosition[0]-lv_effectPosition[0]), 2.0) + Pow((lv_cameraPosition[1]-lv_effectPosition[1]), 2.0) + Pow((lv_cameraPosition[2]-lv_effectPosition[2]), 2.0)));
CameraShakeStart(1, c_cameraPositionTarget, c_cameraDirectionZ, MaxF((1-(lv_distance/50)), 0.0), 2.5, 100.0, 0.15);
return true;
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2map — MapScript.galaxy:4638
lv_effectPosition[2] = WorldHeight(c_heightMapGround, EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
lv_distance = SquareRoot((Pow((lv_cameraPosition[0]-lv_effectPosition[0]), 2.0) + Pow((lv_cameraPosition[1]-lv_effectPosition[1]), 2.0) + Pow((lv_cameraPosition[2]-lv_effectPosition[2]), 2.0)));
CameraShakeStart(1, c_cameraPositionTarget, c_cameraDirectionZ, MaxF((1-(lv_distance/50)), 0.0), 2.5, 100.0, 0.15);
return true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:780
UISetCursorVisible(lv_validPlayers, false);
libNtve_gf_ShowHidePlacementModels(false);
libNtve_gf_SetAllSoundChannelVolumes(libNtve_ge_VolumeChannelMode_Cinematic, lv_validPlayers, MaxF(0.0, 1.5));
auto375744B4_g = lv_validPlayers;
lv_pickedPlayer = -1;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:1555
if (lv_indexGroundUnit == null) { break; }
UnitGroupAdd(lv_dropGroup, lv_indexGroundUnit);
lv_dropSupply += MaxF(0.5, UnitTypeGetProperty(UnitGetType(lv_indexGroundUnit), c_unitPropSuppliesUsed));
if (((lv_dropSupply >= 8.0) || (UnitGroupCount(lv_dropGroup, c_unitCountAlive) >= 10))) {
libCOMI_gf_CreateDropPod(libCOMI_ge_DropPodRace_Zerg, libCOMI_gf_CM_NearbyGroundPathablePoint(lp_dropLocation, 0.0, 5.0), lv_dropGroup, false, lp_player);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:1896
if (lv_dropUnit == null) { break; }
UnitGroupAdd(lv_dropPodGroup, lv_dropUnit);
lv_dropPodSupply += MaxF(0.5, UnitTypeGetProperty(UnitGetType(lv_dropUnit), c_unitPropSuppliesUsed));
if (((lv_dropPodSupply >= 8.0) || (UnitGroupCount(lv_dropPodGroup, c_unitCountAlive) >= 10))) {
libCOMI_gf_CreateDropPod(libCOMI_ge_DropPodRace_Zerg, libCOMI_gf_CM_NearbyGroundPathablePoint(lp_dropLocation, 0.0, 5.0), lv_dropPodGroup, false, lp_player);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:3756
// Variable Initialization
lv_safethinkperiod = MaxF(lp_thinkPeriod, 0.5);
// Implementation
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5483
// Implementation
while (true) {
lv_totalenergyregen = MaxF((lv_baseenergyregen + (libCOMI_gv_cM_Mengsk_EnergyRegenRoyalGuard + libCOMI_gv_cM_Mengsk_EnergyRegenTrooper)), 0.01);
Wait((lv_bonusenergyregenfactor / lv_totalenergyregen), c_timeGame);
lv_globalcasterenergy = RoundI((UnitGetPropertyFixed(lp_mengskGlobalCaster, c_unitPropEnergy, c_unitPropCurrent) + 1));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6549
}
lv_cooldownTime = MinF((180.0 - lv_masteryTimeReduction), (lv_targetMissionTime - GameGetMissionTime()));
lv_cooldownTime = MaxF(lv_cooldownTime, 10.0);
if ((PlayerGetCooldown(libCOMI_gv_cM_ZeratulPlayer, "Abil/ProphecyVision") < lv_cooldownTime)) {
libNtve_gf_PlayerRemoveCooldown(libCOMI_gv_cM_ZeratulPlayer, "Abil/ProphecyVision");
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:9197
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libCOMI_gv_cM_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:10392
}
else if ((UnitIsAlive(libCOMI_gv_cM_HeroUnit[lp_stetmannPlayer]) == false)) {
TimerStart(lv_remindertimer, MaxF(lv_minimumrevivedelay, TimerGetRemaining(lv_remindertimer)), false, c_timeReal);
}
else if ((TimerGetRemaining(lv_remindertimer) <= 0.0)) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:22170
}
lv_xp = MaxF(Round((lv_xp / lv_veterancount)), lv_minimumearnedxp);
auto9DCFEB60_g = lv_veteranunits;
auto9DCFEB60_u = UnitGroupCount(auto9DCFEB60_g, c_unitCountAll);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:25331
lv_cameraPosition[2] = (WorldHeight(c_heightMapGround, lv_cameraTargetPoint)+(Sin(CameraGetPitch(lv_player))*CameraGetDistance(lv_player)));
lv_distance = SquareRoot((Pow((lv_cameraPosition[0]-lv_effectPosition[0]), 2.0) + Pow((lv_cameraPosition[1]-lv_effectPosition[1]), 2.0) + Pow((lv_cameraPosition[2]-lv_effectPosition[2]), 2.0)));
CameraShakeStart(lv_player, c_cameraPositionTarget, c_cameraDirectionZ, MaxF((1-(lv_distance/50)), 0.0), 5.0, 100.0, 0.5);
}
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:5068
}
}
DataTableSetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", 0), MaxF(lv_remainingpercentage, 0.0));
DataTableSetInt(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", 0), lv_basepossibilities);
autoD7B7EC40_ae = UserDataGetInt("MutationDifficultyLevels", libCOMU_gf_CT_GetMutationDifficultyLevel(), "MutatorsMax", 1);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:12906
if ((TimerGetRemaining(lv_foodDepleteTimer[lv_indexPlayer]) <= 0.0)) {
lv_depletionCount += 1;
lv_foodUpdateTime = (lv_depleteRate[lv_indexPlayer]*(1.0/MaxF(libCOMU_gv_cT_SharedSupplyIndividual[lv_indexPlayer], 1.0)));
TimerStart(lv_foodDepleteTimer[lv_indexPlayer], lv_foodUpdateTime, false, c_timeAI);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:5986
}
lv_mapScale = (lv_baseMapSize / MaxF(libNtve_gf_WidthOfRegion(RegionPlayableMap()), libNtve_gf_HeightOfRegion(RegionPlayableMap())));
lv_mapScale = (lv_mapScale * lv_baseScale);
libNtve_gf_CreatePingFacingAngle(PlayerGroupSingle(1), "PingViewArea", CameraGetTarget(2), libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(2, false)), 0.0, 270.0);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:3382
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libA3DDD02B_gv_pP_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:39
libGAwX_gv_creepSpotsCampBehavior = UserDataGetGameLink("MiscData", "Misc", "Creep - Camp Behavior", 1);
libGAwX_gv_creepSpotsMaxCampSize = MaxI(UserDataGetInt("MiscData", "Misc", "Creep - Max Camp Size", 1), 1);
libGAwX_gv_creepSpotsMaxCampRadius = MaxF(UserDataGetFixed("MiscData", "Misc", "Creep - Max Camp Radius", 1), 0.0625);
libGAwX_gv_warningText = c_invalidDialogControlId;
libGAwX_gv_warningDialog = c_invalidDialogId;