rPlusLib v0.2Comment: 'HP Full Image'
HP Full Image
Comment: 'Title'
Title
Comment: 'IMPORTANT: Change Library ID ...'
IMPORTANT: Change Library ID to 'RPLL' or you will get syntax errors.
Comment: 'Line 2: Energy'
Line 2: Energy
Comment: ''Draw Traceline' function cre...'
'Draw Traceline' function created from rrowland's Traceline guide @
http://forums.sc2mapster.com/resources/tutorials/1626-trigger-how-to-target-with-mouselook-tracelines/
Modified to allow easy changes of Range and Source Unit for specified players.
Comment: 'Line 3:'
Line 3:
Comment: 'Setup Default UI'
Setup Default UI
Comment: 'Line 5: Damage'
Line 5: Damage
Comment: 'Custom functions have VERY sp...'
Custom functions have VERY specific uses and are created
specificly for maps I am making.
They are only added because someone may find them useful,
and because this way they are easy to export.
Comment: 'Under LGPL 3.0 License'
Under LGPL 3.0 License
Comment: 'Line 4: ID & Name'
Line 4: ID & Name
Comment: 'rPlusLib by Rideanovan.815 @ ...'
rPlusLib by Rideanovan.815 @ Battle.net / Rideanovan @ sc2mapster.com
Comment: 'Line 6: Cost'
Line 6: Cost
Comment: 'HP Label'
HP Label
Comment: 'Line 1: Health'
Line 1: Health
Comment: 'Portrait'
Portrait
Comment: 'HP Current Image'
HP Current Image
Comment: 'HP Border'
HP Border
Comment: 'Setup Player Info Dialog'
Setup Player Info Dialog
WeaponsVariablesControl UnitsTracelineUIBoss BarArithmeticCustomFPS/TPSRegionVariablesMathWeapon InfoUIVariablesCreate FPS/TPS WeaponDebug TracelineSet FPS/TPS Control UnitCycleCycle DownSet Traceline RangeDisplayBossBarDisplay Boss Bar (Modal)Draw TracelineUse FPS/TPS WeaponDisplayBossBar2Set Boss Bar Title and PortraitSetup FPS/TPS UISetup FPS/TPS CrosshairsRefresh FPS/TPS PlayerInfoSet Traceline Source Unit
while(lv_traceDistance < libRPLL_gv_traceline_range[lp_player]) {
if(lv_pitch < 90){
lv_traceHeight = Tan(lv_pitch) * lv_traceDistance * (-1);
} else if(lv_pitch > 270) {
lv_traceHeight = Tan(360 - lv_pitch) * lv_traceDistance;
}
lv_tracePoint = PointWithOffsetPolar(lp_cameraPosition, lv_traceDistance, lv_yaw);
lv_traceWorldHeight = WorldHeight(c_heightMapGround, lv_tracePoint);
lv_traceRegion = RegionCircle(lv_tracePoint, 1.5);
lv_closestUnit = libNtve_gf_ClosestUnitToPoint(lv_tracePoint, UnitGroup(null, lp_targetPlayer, lv_traceRegion, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
lv_unitRegion = RegionCircle(UnitGetPosition(lv_closestUnit), UnitGetPropertyFixed(lv_closestUnit, c_unitPropRadius, true));
lv_unitWorldHeight = WorldHeight(c_heightMapGround, UnitGetPosition(lv_closestUnit));
if(lv_closestUnit != null &&
lv_closestUnit != libRPLL_gv_traceline_sourceUnit[lp_player] &&
RegionContainsPoint(lv_unitRegion, lv_tracePoint) &&
lp_cameraHeight + lv_traceHeight - lv_unitWorldHeight >= 0.0 &&
lp_cameraHeight + lv_traceHeight - lv_unitWorldHeight <= UnitGetPropertyFixed(lv_closestUnit, c_unitPropRadius, true)) {
libRPLL_gv_traceline_currentTarget[lp_player] = lv_closestUnit;
libRPLL_gv_traceline_currentTargetPoint[lp_player] = lv_tracePoint;
libRPLL_gv_traceline_currentTargetHeight[lp_player] = lp_cameraHeight + lv_traceHeight;
return;
}
if(lp_cameraHeight + lv_traceHeight <= lv_traceWorldHeight) {
libRPLL_gv_traceline_currentTarget[lp_player] = null;
libRPLL_gv_traceline_currentTargetPoint[lp_player] = lv_tracePoint;
libRPLL_gv_traceline_currentTargetHeight[lp_player] = lp_cameraHeight + lv_traceHeight;
return;
}
lv_traceDistance += 0.5;
}
libRPLL_gv_traceline_currentTarget[lp_player] = null;
libRPLL_gv_traceline_currentTargetPoint[lp_player] = null;
libRPLL_gv_traceline_currentTargetHeight[lp_player] = 0.0;
0.0Assets\Textures\ui_chatbaricons_terran_individual.dds8Boss"Stand"112<n/>100.0<n/>508<c val="FF0000">Cannot set the Traceline Range for more than 8 players.</c>0.01.011<n/>100.0100.00112501Assets\Textures\cursor-target-enemy.dds500.0111)320
null
818000.021Player <c val="FF0000">0)Boss Energy1001<n/>1Assets\Textures\ui_mission_leaderboard_progressbar_fill.dds<c val="FF0000">Must be used on an existing Boss Bar.</c></c>'s Traceline Unit: <c val="FFFF00">Unit</c>(move00.00Assets\Textures\ui_chatbaricons_terran_individual.dds37508150.050false1-10Assets\Textures\ui_mission_leaderboard_progressbar_frame.dds0Assets\Textures\ui_mission_leaderboard_frame_unit.dds"Attack"1true0.0-;Missile,Dead,HiddenPlayer <c val="FF0000">BossBarHPAssets\Textures\ui_mission_leaderboard_progressbar_fill.dds10101500255,0,255,0) <c val="FFFF00">Y</c>(0.30 Health100 / / move1050.050500.00"Attack"1 Energy1100"Stand"1001<n/>80 boss bars.</c>520"Run"2.00100000 / 0100255,255,0,0BossBarTitle1</c>'s Traceline XYZ: <c val="FFFF00">X</c>(<c val="ff0000">Cannot have more than 0false1<c val="FF0000">Cannot set the Traceline Source Unit for more than 8 players.</c>8) <c val="FFFF00">Z</c>(0.0"Run"081true320.300.02 Damage0.080
null
100.0portraitPortraitbossBarIDBossBarIDTarget FilterbossBarIDBossBarIDtitleTitleIDPlayerTarget AllianceCamera HeightValuePlayertitleTitleTarget PlayerplayersPlayersEnergy UnitAllow SplashPlayerImpact EffectPlayerportraitPortraitMaxTypeCrosshairs YCost (Energy)Source UnitCrosshairs XDebug TracelineImpact SoundplayersPlayersDamagePlayerCamera PositionPlayerInfo YCamera HeightPlayerUnitCrosshairs ImageLaunch SoundControl UnitTransparencyTransparencyPlayerInfo XPlayerPlayerMinPlayerNameSplash RadiusmaxMaxRangeTarget PlayerControl Unit TypeEnergy UnitControl Unittraceline_currentTargetPitchWeaponInfo_SplashAreaWeaponInfo_IDSetDialog_CrosshairsUnit_EnergyDialogItem_PlayerinfoYawtraceline_sourceUnitDialogItem_WeaponinfoWeaponInfo_IDMaxWeaponInfo_NameWeaponInfo_CostWeaponInfo_IDCycleTrace PointTrace World HeightTrace HeightClosest Unittraceline_currentTargetPointWeaponInfo_Effecttraceline_rangeWeaponInfo_SoundLaunchUnit RegionTrace Distancetraceline_currentTargetHeightDialogItem_CrosshairsUnit_ControlDialog_PlayerInfoWeaponInfo_DamageTrace RegionheightHeightWeaponInfo_SoundImpactUnit World HeightWeaponInfo_SplashCheckwidthWidth