# Power (Real)
Grammar — x ^ p
Flags —Native
|Function
Returns a value raised to a given power or exponent.
# Arguments
fixed
— Valuefixed
— Power
Returns — fixed
native fixed Pow(fixed x, fixed power);
# 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/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:561
// Implementation
lv_normalizedCurrentAngle = gf_NormalizeVoidCrystalAngle(lp_index, lp_currentAngle);
return ((gv_voidCrystals[lp_index].lv_majorRadius * gv_voidCrystals[lp_index].lv_minorRadius) / SquareRoot((Pow((gv_voidCrystals[lp_index].lv_minorRadius * Cos(lv_normalizedCurrentAngle)), 2.0) + Pow((gv_voidCrystals[lp_index].lv_majorRadius * Sin(lv_normalizedCurrentAngle)), 2.0))));
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:561
// Implementation
lv_normalizedCurrentAngle = gf_NormalizeVoidCrystalAngle(lp_index, lp_currentAngle);
return ((gv_voidCrystals[lp_index].lv_majorRadius * gv_voidCrystals[lp_index].lv_minorRadius) / SquareRoot((Pow((gv_voidCrystals[lp_index].lv_minorRadius * Cos(lv_normalizedCurrentAngle)), 2.0) + Pow((gv_voidCrystals[lp_index].lv_majorRadius * Sin(lv_normalizedCurrentAngle)), 2.0))));
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:576
if ((gv_voidCrystals[lp_index].lv_rotatesCounterClockwise == true)) {
if ((lv_normalizedCurrentAngle < gv_voidCrystals[lp_index].lv_normalizedGroundHeightStartAngle)) {
lv_height = (-34.0 + ((Pow(lv_normalizedCurrentAngle, 2.0) / 8.0) * gv_voidCrystals[lp_index].lv_rateOfAscent));
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:580
else {
if ((lv_normalizedCurrentAngle > gv_voidCrystals[lp_index].lv_normalizedGroundHeightEndAngle)) {
lv_height = (-34.0 + ((Pow((360.0 - lv_normalizedCurrentAngle), 2.0) / 8.0) * gv_voidCrystals[lp_index].lv_rateOfDescent));
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:589
else {
if ((lv_normalizedCurrentAngle > gv_voidCrystals[lp_index].lv_normalizedGroundHeightStartAngle)) {
lv_height = (-34.0 + ((Pow((360.0 - lv_normalizedCurrentAngle), 2.0) / 8.0) * gv_voidCrystals[lp_index].lv_rateOfAscent));
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:593
else {
if ((lv_normalizedCurrentAngle < gv_voidCrystals[lp_index].lv_normalizedGroundHeightEndAngle)) {
lv_height = (-34.0 + ((Pow(lv_normalizedCurrentAngle, 2.0) / 8.0) * gv_voidCrystals[lp_index].lv_rateOfDescent));
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:2116
lv_sideC = DistanceBetweenPoints(gv_voidCrystals[lv_index].lv_center, gv_voidCrystals[lv_index].lv_zenith);
lv_angleB = ACos((((lv_sideA*lv_sideA)+(lv_sideC*lv_sideC)-(lv_sideB*lv_sideB))/(2*lv_sideA*lv_sideC)));
gv_voidCrystals[lv_index].lv_minorRadius = (((lv_sideA * lv_sideC) * Sin(lv_angleB)) / SquareRoot((Pow(lv_sideC, 2.0) - Pow((lv_sideA * Cos(lv_angleB)), 2.0))));
if ((gv_voidCrystals[lv_index].lv_rotatesCounterClockwise == true)) {
auto0413FD7D_ae = (360.0 + gv_voidCrystals[lv_index].lv_rotation);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:2116
lv_sideC = DistanceBetweenPoints(gv_voidCrystals[lv_index].lv_center, gv_voidCrystals[lv_index].lv_zenith);
lv_angleB = ACos((((lv_sideA*lv_sideA)+(lv_sideC*lv_sideC)-(lv_sideB*lv_sideB))/(2*lv_sideA*lv_sideC)));
gv_voidCrystals[lv_index].lv_minorRadius = (((lv_sideA * lv_sideC) * Sin(lv_angleB)) / SquareRoot((Pow(lv_sideC, 2.0) - Pow((lv_sideA * Cos(lv_angleB)), 2.0))));
if ((gv_voidCrystals[lv_index].lv_rotatesCounterClockwise == true)) {
auto0413FD7D_ae = (360.0 + gv_voidCrystals[lv_index].lv_rotation);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:2140
gv_voidCrystals[lv_index].lv_normalizedGroundHeightEndAngle = gf_NormalizeVoidCrystalAngle(lv_index, AngleBetweenPoints(gv_voidCrystals[lv_index].lv_center, gv_voidCrystals[lv_index].lv_groundHeightEnd));
if ((gv_voidCrystals[lv_index].lv_rotatesCounterClockwise == true)) {
gv_voidCrystals[lv_index].lv_rateOfAscent = (400.0 / Pow(gv_voidCrystals[lv_index].lv_normalizedGroundHeightStartAngle, 2.0));
gv_voidCrystals[lv_index].lv_rateOfDescent = (400.0 / Pow((360.0 - gv_voidCrystals[lv_index].lv_normalizedGroundHeightEndAngle), 2.0));
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:2141
if ((gv_voidCrystals[lv_index].lv_rotatesCounterClockwise == true)) {
gv_voidCrystals[lv_index].lv_rateOfAscent = (400.0 / Pow(gv_voidCrystals[lv_index].lv_normalizedGroundHeightStartAngle, 2.0));
gv_voidCrystals[lv_index].lv_rateOfDescent = (400.0 / Pow((360.0 - gv_voidCrystals[lv_index].lv_normalizedGroundHeightEndAngle), 2.0));
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:561
// Implementation
lv_normalizedCurrentAngle = gf_NormalizeVoidCrystalAngle(lp_index, lp_currentAngle);
return ((gv_voidCrystals[lp_index].lv_majorRadius * gv_voidCrystals[lp_index].lv_minorRadius) / SquareRoot((Pow((gv_voidCrystals[lp_index].lv_minorRadius * Cos(lv_normalizedCurrentAngle)), 2.0) + Pow((gv_voidCrystals[lp_index].lv_majorRadius * Sin(lv_normalizedCurrentAngle)), 2.0))));
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:561
// Implementation
lv_normalizedCurrentAngle = gf_NormalizeVoidCrystalAngle(lp_index, lp_currentAngle);
return ((gv_voidCrystals[lp_index].lv_majorRadius * gv_voidCrystals[lp_index].lv_minorRadius) / SquareRoot((Pow((gv_voidCrystals[lp_index].lv_minorRadius * Cos(lv_normalizedCurrentAngle)), 2.0) + Pow((gv_voidCrystals[lp_index].lv_majorRadius * Sin(lv_normalizedCurrentAngle)), 2.0))));
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:576
if ((gv_voidCrystals[lp_index].lv_rotatesCounterClockwise == true)) {
if ((lv_normalizedCurrentAngle < gv_voidCrystals[lp_index].lv_normalizedGroundHeightStartAngle)) {
lv_height = (-34.0 + ((Pow(lv_normalizedCurrentAngle, 2.0) / 8.0) * gv_voidCrystals[lp_index].lv_rateOfAscent));
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:580
else {
if ((lv_normalizedCurrentAngle > gv_voidCrystals[lp_index].lv_normalizedGroundHeightEndAngle)) {
lv_height = (-34.0 + ((Pow((360.0 - lv_normalizedCurrentAngle), 2.0) / 8.0) * gv_voidCrystals[lp_index].lv_rateOfDescent));
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:589
else {
if ((lv_normalizedCurrentAngle > gv_voidCrystals[lp_index].lv_normalizedGroundHeightStartAngle)) {
lv_height = (-34.0 + ((Pow((360.0 - lv_normalizedCurrentAngle), 2.0) / 8.0) * gv_voidCrystals[lp_index].lv_rateOfAscent));
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:593
else {
if ((lv_normalizedCurrentAngle < gv_voidCrystals[lp_index].lv_normalizedGroundHeightEndAngle)) {
lv_height = (-34.0 + ((Pow(lv_normalizedCurrentAngle, 2.0) / 8.0) * gv_voidCrystals[lp_index].lv_rateOfDescent));
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:2116
lv_sideC = DistanceBetweenPoints(gv_voidCrystals[lv_index].lv_center, gv_voidCrystals[lv_index].lv_zenith);
lv_angleB = ACos((((lv_sideA*lv_sideA)+(lv_sideC*lv_sideC)-(lv_sideB*lv_sideB))/(2*lv_sideA*lv_sideC)));
gv_voidCrystals[lv_index].lv_minorRadius = (((lv_sideA * lv_sideC) * Sin(lv_angleB)) / SquareRoot((Pow(lv_sideC, 2.0) - Pow((lv_sideA * Cos(lv_angleB)), 2.0))));
if ((gv_voidCrystals[lv_index].lv_rotatesCounterClockwise == true)) {
auto0413FD7D_ae = (360.0 + gv_voidCrystals[lv_index].lv_rotation);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:2116
lv_sideC = DistanceBetweenPoints(gv_voidCrystals[lv_index].lv_center, gv_voidCrystals[lv_index].lv_zenith);
lv_angleB = ACos((((lv_sideA*lv_sideA)+(lv_sideC*lv_sideC)-(lv_sideB*lv_sideB))/(2*lv_sideA*lv_sideC)));
gv_voidCrystals[lv_index].lv_minorRadius = (((lv_sideA * lv_sideC) * Sin(lv_angleB)) / SquareRoot((Pow(lv_sideC, 2.0) - Pow((lv_sideA * Cos(lv_angleB)), 2.0))));
if ((gv_voidCrystals[lv_index].lv_rotatesCounterClockwise == true)) {
auto0413FD7D_ae = (360.0 + gv_voidCrystals[lv_index].lv_rotation);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:2140
gv_voidCrystals[lv_index].lv_normalizedGroundHeightEndAngle = gf_NormalizeVoidCrystalAngle(lv_index, AngleBetweenPoints(gv_voidCrystals[lv_index].lv_center, gv_voidCrystals[lv_index].lv_groundHeightEnd));
if ((gv_voidCrystals[lv_index].lv_rotatesCounterClockwise == true)) {
gv_voidCrystals[lv_index].lv_rateOfAscent = (400.0 / Pow(gv_voidCrystals[lv_index].lv_normalizedGroundHeightStartAngle, 2.0));
gv_voidCrystals[lv_index].lv_rateOfDescent = (400.0 / Pow((360.0 - gv_voidCrystals[lv_index].lv_normalizedGroundHeightEndAngle), 2.0));
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:2141
if ((gv_voidCrystals[lv_index].lv_rotatesCounterClockwise == true)) {
gv_voidCrystals[lv_index].lv_rateOfAscent = (400.0 / Pow(gv_voidCrystals[lv_index].lv_normalizedGroundHeightStartAngle, 2.0));
gv_voidCrystals[lv_index].lv_rateOfDescent = (400.0 / Pow((360.0 - gv_voidCrystals[lv_index].lv_normalizedGroundHeightEndAngle), 2.0));
}
else {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4837
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4837
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4837
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:1123
}
if ((libHZAR_gv_heroZaryaCurrentDamagetoEnergyConversionRate[lv_localTriggeringPlayer] != (libHZAR_gv_heroZaryaUnscaledDamagetoEnergyConversionRate * Pow(1.04, UnitXPGetCurrentLevel(EventUnit(), null))))) {
libHZAR_gv_heroZaryaCurrentDamagetoEnergyConversionRate[lv_localTriggeringPlayer] = (libHZAR_gv_heroZaryaUnscaledDamagetoEnergyConversionRate * Pow(1.04, UnitXPGetCurrentLevel(EventUnit(), null)));
}
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:1124
if ((libHZAR_gv_heroZaryaCurrentDamagetoEnergyConversionRate[lv_localTriggeringPlayer] != (libHZAR_gv_heroZaryaUnscaledDamagetoEnergyConversionRate * Pow(1.04, UnitXPGetCurrentLevel(EventUnit(), null))))) {
libHZAR_gv_heroZaryaCurrentDamagetoEnergyConversionRate[lv_localTriggeringPlayer] = (libHZAR_gv_heroZaryaUnscaledDamagetoEnergyConversionRate * Pow(1.04, UnitXPGetCurrentLevel(EventUnit(), null)));
}
mods/heromods/zuljin.stormmod — base.stormdata/LibHZUL.galaxy:170
if ((lp_life < lv_maxLifePercentage)) {
lv_leadingCoefficient = (lv_maxDamageMultiplier - lv_minDamageMultiplier);
lv_quadraticEquation = (((lv_leadingCoefficient * Pow((lp_life - lv_maxLifePercentage), 2.0)) / Pow((lv_minLifePercentage - lv_maxLifePercentage), 2.0)) + lv_minDamageMultiplier);
return (lp_guillotineBaseDamage * lv_quadraticEquation);
}
mods/heromods/zuljin.stormmod — base.stormdata/LibHZUL.galaxy:170
if ((lp_life < lv_maxLifePercentage)) {
lv_leadingCoefficient = (lv_maxDamageMultiplier - lv_minDamageMultiplier);
lv_quadraticEquation = (((lv_leadingCoefficient * Pow((lp_life - lv_maxLifePercentage), 2.0)) / Pow((lv_minLifePercentage - lv_maxLifePercentage), 2.0)) + lv_minDamageMultiplier);
return (lp_guillotineBaseDamage * lv_quadraticEquation);
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:4637
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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:4637
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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:4637
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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:4637
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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:4637
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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:4637
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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:3541
lv_behaviorplayer = UnitBehaviorEffectPlayer(lp_parent, lv_b, c_effectPlayerOrigin, 0);
lv_totaldmgmultiplier += (libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogBehavior, lv_b, "Modification.DamageDealtFraction[" + IntToString(0) + "]", lv_behaviorplayer) * lv_bstackcount);
lv_totalattackratemultiplier *= Pow(libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogBehavior, lv_b, "Modification.AttackSpeedMultiplier", lv_behaviorplayer), lv_bstackcount);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:25330
lv_cameraPosition[1] = (PointGetY(lv_cameraTargetPoint)-(Cos(CameraGetPitch(lv_player))*CameraGetDistance(lv_player)));
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);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:25330
lv_cameraPosition[1] = (PointGetY(lv_cameraTargetPoint)-(Cos(CameraGetPitch(lv_player))*CameraGetDistance(lv_player)));
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);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:25330
lv_cameraPosition[1] = (PointGetY(lv_cameraTargetPoint)-(Cos(CameraGetPitch(lv_player))*CameraGetDistance(lv_player)));
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);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:29248
lv_effectPosition[1] = PointGetY(lv_effectTargetPoint);
lv_effectPosition[2] = WorldHeight(c_heightMapGround, lv_effectTargetPoint);
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), 2.5, 100.0, 0.1);
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:29248
lv_effectPosition[1] = PointGetY(lv_effectTargetPoint);
lv_effectPosition[2] = WorldHeight(c_heightMapGround, lv_effectTargetPoint);
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), 2.5, 100.0, 0.1);
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:29248
lv_effectPosition[1] = PointGetY(lv_effectTargetPoint);
lv_effectPosition[2] = WorldHeight(c_heightMapGround, lv_effectTargetPoint);
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), 2.5, 100.0, 0.1);
return true;