# Height At Point
Grammar — type height at point
Flags —Native
|Function
Returns the height at a point.
# Arguments
int
<preset::HeightType> — Typepoint
— Point
Returns — fixed
native fixed WorldHeight(int inType, point inPos);
# Related
Category: Environment / Terrain And Water
- Show/Hide Environment —
void
— EnvironmentShow - Height At Point —
fixed
— WorldHeight - Terrain Texture At Point —
string
<gamelink::TerrainTex> — TerrainTexture - Cliff Level Of Point (Integer) —
int
— CliffLevel - Cliff Level Of Point (Real) —
fixed
— PointPathingCliffLevel - Line Crosses Cliff —
bool
— CrossCliff - Terrain Has Custom Attribute —
bool
— HasCustomCellAttribute - Show/Hide Terrain —
void
— TerrainShowRegion - Set Water State —
void
— WaterSetState - Pause/Unpause Water Transition —
void
— WaterPause
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:2971
autoD2B9032B_var = UnitGroupUnitFromEnd(autoD2B9032B_g, autoD2B9032B_u);
if (autoD2B9032B_var == null) { break; }
if ((WorldHeight(c_heightMapGround, UnitGetPosition(autoD2B9032B_var)) <= 8.5)) {
UnitBehaviorAddPlayer(autoD2B9032B_var, "LavaDamage", gv_p03_LAVA, 1);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7921
autoD60EF79C_var = UnitGroupUnitFromEnd(autoD60EF79C_g, autoD60EF79C_u);
if (autoD60EF79C_var == null) { break; }
if ((WorldHeight(c_heightMapGround, UnitGetPosition(autoD60EF79C_var)) <= gv__4HeightOfLava)) {
PlayerCreateEffectUnit(0, "LavaFireDamage", autoD60EF79C_var);
if ((UnitHasBehavior(autoD60EF79C_var, "Incapacitated") == true)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7932
autoDFEF9D84_var = 1;
for ( ; autoDFEF9D84_var <= autoDFEF9D84_ae; autoDFEF9D84_var += 1 ) {
if ((WorldHeight(c_heightMapGround, gv__4LavaDoodadPositions[autoDFEF9D84_var]) <= (gv__4HeightOfLava + 0.25)) && (gv__4LavaDoodadHavePlayedAnim[autoDFEF9D84_var] == false)) {
libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionCircle(gv__4LavaDoodadPositions[autoDFEF9D84_var], 2.0), "TTosh01FlameGeyser", c_animNameDefault, "Stand Work", c_animFlagPlayForever, c_animTimeDefault);
libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionCircle(gv__4LavaDoodadPositions[autoDFEF9D84_var], 2.0), "Spires", c_animNameDefault, "Death", c_animFlagPlayForever, c_animTimeDefault);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7941
autoEB0AC6E5_var = 1;
for ( ; autoEB0AC6E5_var <= autoEB0AC6E5_ae; autoEB0AC6E5_var += 1 ) {
if ((WorldHeight(c_heightMapGround, gv__4LavaNydusPositions[autoEB0AC6E5_var]) <= (gv__4HeightOfLava + 0.25)) && (gv__4LavaNydusHaveSpawned[autoEB0AC6E5_var] == false)) {
gf_SpawnNydusWorm(RegionCircle(gv__4LavaNydusPositions[autoEB0AC6E5_var], 0.5), 5, 1, "InfestedCivilian", 12.0);
gv__4LavaNydusHaveSpawned[autoEB0AC6E5_var] = true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7949
autoEA18677F_var = 1;
for ( ; autoEA18677F_var <= autoEA18677F_ae; autoEA18677F_var += 1 ) {
if ((WorldHeight(c_heightMapGround, gv__4LavaFireNydusPositions[autoEA18677F_var]) <= (gv__4HeightOfLava + 0.25)) && (gv__4LavaFireNydusHaveSpawned[autoEA18677F_var] == false)) {
UnitCreate(1, "NydusWormLavaDeath", 0, gv_p2_ZERG, gv__4LavaFireNydusPositions[autoEA18677F_var], libNtve_gf_RandomAngle());
gv__4LavaFireNydusHaveSpawned[autoEA18677F_var] = true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2map — MapScript.galaxy:2971
autoD2B9032B_var = UnitGroupUnitFromEnd(autoD2B9032B_g, autoD2B9032B_u);
if (autoD2B9032B_var == null) { break; }
if ((WorldHeight(c_heightMapGround, UnitGetPosition(autoD2B9032B_var)) <= 8.5)) {
UnitBehaviorAddPlayer(autoD2B9032B_var, "LavaDamage", gv_p03_LAVA, 1);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7921
autoD60EF79C_var = UnitGroupUnitFromEnd(autoD60EF79C_g, autoD60EF79C_u);
if (autoD60EF79C_var == null) { break; }
if ((WorldHeight(c_heightMapGround, UnitGetPosition(autoD60EF79C_var)) <= gv__4HeightOfLava)) {
PlayerCreateEffectUnit(0, "LavaFireDamage", autoD60EF79C_var);
if ((UnitHasBehavior(autoD60EF79C_var, "Incapacitated") == true)) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7932
autoDFEF9D84_var = 1;
for ( ; autoDFEF9D84_var <= autoDFEF9D84_ae; autoDFEF9D84_var += 1 ) {
if ((WorldHeight(c_heightMapGround, gv__4LavaDoodadPositions[autoDFEF9D84_var]) <= (gv__4HeightOfLava + 0.25)) && (gv__4LavaDoodadHavePlayedAnim[autoDFEF9D84_var] == false)) {
libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionCircle(gv__4LavaDoodadPositions[autoDFEF9D84_var], 2.0), "TTosh01FlameGeyser", c_animNameDefault, "Stand Work", c_animFlagPlayForever, c_animTimeDefault);
libNtve_gf_PlayAnimationOnDoodadsInRegion(RegionCircle(gv__4LavaDoodadPositions[autoDFEF9D84_var], 2.0), "Spires", c_animNameDefault, "Death", c_animFlagPlayForever, c_animTimeDefault);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7941
autoEB0AC6E5_var = 1;
for ( ; autoEB0AC6E5_var <= autoEB0AC6E5_ae; autoEB0AC6E5_var += 1 ) {
if ((WorldHeight(c_heightMapGround, gv__4LavaNydusPositions[autoEB0AC6E5_var]) <= (gv__4HeightOfLava + 0.25)) && (gv__4LavaNydusHaveSpawned[autoEB0AC6E5_var] == false)) {
gf_SpawnNydusWorm(RegionCircle(gv__4LavaNydusPositions[autoEB0AC6E5_var], 0.5), 5, 1, "InfestedCivilian", 12.0);
gv__4LavaNydusHaveSpawned[autoEB0AC6E5_var] = true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7949
autoEA18677F_var = 1;
for ( ; autoEA18677F_var <= autoEA18677F_ae; autoEA18677F_var += 1 ) {
if ((WorldHeight(c_heightMapGround, gv__4LavaFireNydusPositions[autoEA18677F_var]) <= (gv__4HeightOfLava + 0.25)) && (gv__4LavaFireNydusHaveSpawned[autoEA18677F_var] == false)) {
UnitCreate(1, "NydusWormLavaDeath", 0, gv_p2_ZERG, gv__4LavaFireNydusPositions[autoEA18677F_var], libNtve_gf_RandomAngle());
gv__4LavaFireNydusHaveSpawned[autoEA18677F_var] = true;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:1870
UnitGroupLoopBegin(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterAlly) | (1 << c_targetFilterEnemy) | (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((WorldHeight(c_heightMapGround, UnitGetPosition(UnitGroupLoopCurrent())) <= 8.5)) {
UnitBehaviorAddPlayer(UnitGroupLoopCurrent(), "LavaDamage", gv_pLAYER_01_USER, 1);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map — MapScript.galaxy:1870
UnitGroupLoopBegin(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterAlly) | (1 << c_targetFilterEnemy) | (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((WorldHeight(c_heightMapGround, UnitGetPosition(UnitGroupLoopCurrent())) <= 8.5)) {
UnitBehaviorAddPlayer(UnitGroupLoopCurrent(), "LavaDamage", gv_pLAYER_01_USER, 1);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignDataHelperLib.galaxy:98
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignDataHelperLib.galaxy:98
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignDataHelperLib.galaxy:98
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignDataHelperLib.galaxy:98
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:2121
lv_currentAngle = (180.0 + gv_voidCrystals[lv_index].lv_rotation);
for ( ; ( (auto0413FD7D_ai >= 0 && lv_currentAngle <= auto0413FD7D_ae) || (auto0413FD7D_ai < 0 && lv_currentAngle >= auto0413FD7D_ae) ) ; lv_currentAngle += auto0413FD7D_ai ) {
if ((WorldHeight(c_heightMapGround, PointWithOffsetPolar(gv_voidCrystals[lv_index].lv_center, gf_VoidCrystalRadiusatAngle(lv_currentAngle, lv_index), lv_currentAngle)) < 4.0)) {
break;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:2131
lv_currentAngle = (180.0 + gv_voidCrystals[lv_index].lv_rotation);
for ( ; ( (auto7C9B9FD2_ai >= 0 && lv_currentAngle <= auto7C9B9FD2_ae) || (auto7C9B9FD2_ai < 0 && lv_currentAngle >= auto7C9B9FD2_ae) ) ; lv_currentAngle += auto7C9B9FD2_ai ) {
if ((WorldHeight(c_heightMapGround, PointWithOffsetPolar(gv_voidCrystals[lv_index].lv_center, gf_VoidCrystalRadiusatAngle(lv_currentAngle, lv_index), lv_currentAngle)) < 4.0)) {
break;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:2121
lv_currentAngle = (180.0 + gv_voidCrystals[lv_index].lv_rotation);
for ( ; ( (auto0413FD7D_ai >= 0 && lv_currentAngle <= auto0413FD7D_ae) || (auto0413FD7D_ai < 0 && lv_currentAngle >= auto0413FD7D_ae) ) ; lv_currentAngle += auto0413FD7D_ai ) {
if ((WorldHeight(c_heightMapGround, PointWithOffsetPolar(gv_voidCrystals[lv_index].lv_center, gf_VoidCrystalRadiusatAngle(lv_currentAngle, lv_index), lv_currentAngle)) < 4.0)) {
break;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:2131
lv_currentAngle = (180.0 + gv_voidCrystals[lv_index].lv_rotation);
for ( ; ( (auto7C9B9FD2_ai >= 0 && lv_currentAngle <= auto7C9B9FD2_ae) || (auto7C9B9FD2_ai < 0 && lv_currentAngle >= auto7C9B9FD2_ae) ) ; lv_currentAngle += auto7C9B9FD2_ai ) {
if ((WorldHeight(c_heightMapGround, PointWithOffsetPolar(gv_voidCrystals[lv_index].lv_center, gf_VoidCrystalRadiusatAngle(lv_currentAngle, lv_index), lv_currentAngle)) < 4.0)) {
break;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4833
lv_cameraPosition[0] = PointGetX(CameraGetTarget(1));
lv_cameraPosition[1] = (PointGetY(CameraGetTarget(1))-(Cos(CameraGetPitch(1))*CameraGetDistance(1)));
lv_cameraPosition[2] = (WorldHeight(c_heightMapGround, CameraGetTarget(1))+(Sin(CameraGetPitch(1))*CameraGetDistance(1)));
lv_effectPosition[0] = PointGetX(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4836
lv_effectPosition[0] = PointGetX(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5657
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5657
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5657
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5657
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5741
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5741
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5741
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5741
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:585
libNtve_gf_UnitCreateFacingPoint(1, lib6CB3363F_gv_fT_WeaponBulletUnit[lp_gunType], c_unitCreateIgnorePlacement, lp_playerFiring, PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), lib6CB3363F_gv_fT_WeaponBulletYOffset[lp_gunType], ((lv_tAngle + lib6CB3363F_gv_fT_WeaponBulletXOffset[lp_gunType]) + lv_randomSpreadAngle)), PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), 5.0, (lv_tAngle + lv_randomSpreadAngle)));
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("BulletTarget", 0), PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), lib6CB3363F_gv_fT_WeaponRange[lp_gunType], (lv_tAngle + lv_randomSpreadAngle))), c_orderQueueReplace);
UnitSetHeight(UnitLastCreated(), (WorldHeight(c_heightMapGround, UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring])) + lib6CB3363F_gv_fT_WeaponBulletHeight[lp_gunType]), 0.0);
UnitBehaviorAdd(UnitLastCreated(), lib6CB3363F_gv_fT_WeaponBulletBehavior[lp_gunType], UnitLastCreated(), 1);
libNtve_gf_SendActorMessageToUnit(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring], "Signal Attack");
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:600
libNtve_gf_UnitCreateFacingPoint(1, lib6CB3363F_gv_fT_WeaponBulletUnit[lp_gunType], c_unitCreateIgnorePlacement, lp_playerFiring, PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), lib6CB3363F_gv_fT_WeaponBulletYOffset[lp_gunType], (((lv_tAngle + lib6CB3363F_gv_fT_WeaponBulletXOffset[lp_gunType]) + lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType]) + lv_randomSpreadAngle)), PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), 5.0, ((lv_tAngle + lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType]) + lv_randomSpreadAngle)));
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("BulletTarget", 0), PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), lib6CB3363F_gv_fT_WeaponRange[lp_gunType], ((lv_tAngle + lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType]) + lv_randomSpreadAngle))), c_orderQueueReplace);
UnitSetHeight(UnitLastCreated(), (WorldHeight(c_heightMapGround, UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring])) + 0.5), 0.0);
UnitBehaviorAdd(UnitLastCreated(), lib6CB3363F_gv_fT_WeaponBulletBehavior[lp_gunType], UnitLastCreated(), 1);
if ((UnitGetPropertyFixed(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring], c_unitPropMovementSpeedCurrent, c_unitPropCurrent) == 0.0)) {
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:610
libNtve_gf_UnitCreateFacingPoint(1, lib6CB3363F_gv_fT_WeaponBulletUnit[lp_gunType], c_unitCreateIgnorePlacement, lp_playerFiring, PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), lib6CB3363F_gv_fT_WeaponBulletYOffset[lp_gunType], (((lv_tAngle + lib6CB3363F_gv_fT_WeaponBulletXOffset[lp_gunType]) - lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType]) + lv_randomSpreadAngle)), PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), 5.0, ((lv_tAngle - lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType]) + lv_randomSpreadAngle)));
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("BulletTarget", 0), PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), lib6CB3363F_gv_fT_WeaponRange[lp_gunType], ((lv_tAngle - lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType]) + lv_randomSpreadAngle))), c_orderQueueReplace);
UnitSetHeight(UnitLastCreated(), (WorldHeight(c_heightMapGround, UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring])) + 0.5), 0.0);
UnitBehaviorAdd(UnitLastCreated(), lib6CB3363F_gv_fT_WeaponBulletBehavior[lp_gunType], UnitLastCreated(), 1);
}
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:623
libNtve_gf_UnitCreateFacingPoint(1, lib6CB3363F_gv_fT_WeaponBulletUnit[lp_gunType], c_unitCreateIgnorePlacement, lp_playerFiring, PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), lib6CB3363F_gv_fT_WeaponBulletYOffset[lp_gunType], (((lv_tAngle + lib6CB3363F_gv_fT_WeaponBulletXOffset[lp_gunType]) + (lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType] * 2.0)) + lv_randomSpreadAngle)), PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), 5.0, ((lv_tAngle + (lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType] * 2.0)) + lv_randomSpreadAngle)));
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("BulletTarget", 0), PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), lib6CB3363F_gv_fT_WeaponRange[lp_gunType], ((lv_tAngle + (lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType] * 2.0)) + lv_randomSpreadAngle))), c_orderQueueReplace);
UnitSetHeight(UnitLastCreated(), (WorldHeight(c_heightMapGround, UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring])) + 0.5), 0.0);
UnitBehaviorAdd(UnitLastCreated(), lib6CB3363F_gv_fT_WeaponBulletBehavior[lp_gunType], UnitLastCreated(), 1);
if ((UnitGetPropertyFixed(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring], c_unitPropMovementSpeedCurrent, c_unitPropCurrent) == 0.0)) {
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:633
libNtve_gf_UnitCreateFacingPoint(1, lib6CB3363F_gv_fT_WeaponBulletUnit[lp_gunType], c_unitCreateIgnorePlacement, lp_playerFiring, PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), lib6CB3363F_gv_fT_WeaponBulletYOffset[lp_gunType], (((lv_tAngle + lib6CB3363F_gv_fT_WeaponBulletXOffset[lp_gunType]) - (lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType] * 2.0)) + lv_randomSpreadAngle)), PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), 5.0, ((lv_tAngle - (lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType] * 2.0)) + lv_randomSpreadAngle)));
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("BulletTarget", 0), PointWithOffsetPolar(UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]), lib6CB3363F_gv_fT_WeaponRange[lp_gunType], ((lv_tAngle - (lib6CB3363F_gv_fT_WeaponBulletSpreadAngle[lp_gunType] * 2.0)) + lv_randomSpreadAngle))), c_orderQueueReplace);
UnitSetHeight(UnitLastCreated(), (WorldHeight(c_heightMapGround, UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring])) + 0.5), 0.0);
UnitBehaviorAdd(UnitLastCreated(), lib6CB3363F_gv_fT_WeaponBulletBehavior[lp_gunType], UnitLastCreated(), 1);
}
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:1814
libNtve_gf_MakeUnitFacePoint(UnitLastCreated(), PointWithOffsetPolar(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), 20.0, lv_tAngle), 0.0);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("BulletTarget", 0), PointWithOffsetPolar(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)), 20.0, lv_tAngle)), c_orderQueueReplace);
UnitSetHeight(UnitLastCreated(), (WorldHeight(c_heightMapGround, UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster))) + 0.5), 0.0);
UnitBehaviorAdd(UnitLastCreated(), "EnemyHydraliskBulletDamage", UnitLastCreated(), 1);
return true;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4715
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4715
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4715
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:4715
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:557
lv_i = 0;
for ( ; ( (auto26597EAC_ai >= 0 && lv_i <= auto26597EAC_ae) || (auto26597EAC_ai < 0 && lv_i >= auto26597EAC_ae) ) ; lv_i += auto26597EAC_ai ) {
if (((WorldHeight(c_heightMapGround, PointWithOffsetPolar(lp_point, lp_radius, (lv_i * 45.0))) < 6.0) || (RegionContainsPoint(lp_region, PointWithOffsetPolar(lp_point, lp_radius, (lv_i * 45.0))) == false))) {
return false;
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:4633
lv_cameraPosition[0] = PointGetX(CameraGetTarget(1));
lv_cameraPosition[1] = (PointGetY(CameraGetTarget(1))-(Cos(CameraGetPitch(1))*CameraGetDistance(1)));
lv_cameraPosition[2] = (WorldHeight(c_heightMapGround, CameraGetTarget(1))+(Sin(CameraGetPitch(1))*CameraGetDistance(1)));
lv_effectPosition[0] = PointGetX(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:4636
lv_effectPosition[0] = PointGetX(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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);
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2map — MapScript.galaxy:557
lv_i = 0;
for ( ; ( (auto26597EAC_ai >= 0 && lv_i <= auto26597EAC_ae) || (auto26597EAC_ai < 0 && lv_i >= auto26597EAC_ae) ) ; lv_i += auto26597EAC_ai ) {
if (((WorldHeight(c_heightMapGround, PointWithOffsetPolar(lp_point, lp_radius, (lv_i * 45.0))) < 6.0) || (RegionContainsPoint(lp_region, PointWithOffsetPolar(lp_point, lp_radius, (lv_i * 45.0))) == false))) {
return false;
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2map — MapScript.galaxy:4633
lv_cameraPosition[0] = PointGetX(CameraGetTarget(1));
lv_cameraPosition[1] = (PointGetY(CameraGetTarget(1))-(Cos(CameraGetPitch(1))*CameraGetDistance(1)));
lv_cameraPosition[2] = (WorldHeight(c_heightMapGround, CameraGetTarget(1))+(Sin(CameraGetPitch(1))*CameraGetDistance(1)));
lv_effectPosition[0] = PointGetX(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
lv_effectPosition[1] = PointGetY(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2map — MapScript.galaxy:4636
lv_effectPosition[0] = PointGetX(EventPlayerEffectUsedPoint(c_effectLocationTargetPoint));
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);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:20973
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:20973
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:20973
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:20973
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:23336
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:23336
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:23336
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:23336
while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
lv_goodPositionFound = true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:25320
lv_effectPosition[0] = PointGetX(lv_effectTargetPoint);
lv_effectPosition[1] = PointGetY(lv_effectTargetPoint);
lv_effectPosition[2] = WorldHeight(c_heightMapGround, lv_effectTargetPoint);
auto0B345B3A_g = PlayerGroupActive();
lv_itPlayer = -1;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:25329
lv_cameraPosition[0] = PointGetX(lv_cameraTargetPoint);
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);