Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

JBAddonRadar2k4.JBAddonRadar2k4

Extends
JBAddon
Modifiers
config cacheexempt

JBAddonRadar2k4 Creation date: 2010-12-26 18:47 Last change: $Id: JBAddonRadar2k4.uc,v 1.2 2011-01-06 16:45:32 wormbo Exp $ Copyright © 2010, Wormbo

Core.Object
|   
+-- Engine.Actor
   |   
   +-- Engine.Info
      |   
      +-- Engine.Mutator
         |   
         +-- Jailbreak.JBAddon
            |   
            +-- JBAddonRadar2k4.JBAddonRadar2k4

Variables Summary
boolbMapDisabled
MaterialBorderMat
floatColorPercent
JBGameReplicationInfoJBGRI
PlayerControllerLocalPlayer
JBTagPlayerLocalTagPlayer
JBPanoramaPanorama
FinalBlendPlayerIcon
JBInteractionRadarRadarInteraction
JBAddonRadar2k4
stringBuild
Inherited Variables from Jailbreak.JBAddon
bIsOverlay, JBGameReplicationInfo, PlayerControllerLocal
Inherited Variables from Engine.Mutator
bAddToServerPackages, bUserAdded, ConfigMenuClassName, DefaultWeapon, DefaultWeaponName, Description, FriendlyName, GroupName, IconMaterialName, NextMutator

Functions Summary
functionvector CalcLocation (Canvas C, vector WorldLocation, float CenterPosX, float CenterPosY, float RadarWidth))
function DrawMapImage (Canvas C, Material Image, float MapX, float MapY, float RadarWidth, float Alpha))
function DrawObjective (Canvas C, JBTagObjective ObjectiveTag, float IconScaling, float CenterPosX, float CenterPosY, float RadarWidth))
function DrawPlayer (Canvas C, JBTagPlayer PlayerTag, float IconScaling, float CenterPosX, float CenterPosY, float RadarWidth))
function DrawRadarMap (Canvas C, float CenterPosX, float CenterPosY, float RadarWidth))
function RenderOverlays (Canvas C))
function Tick (float deltaTime))
Inherited Functions from Jailbreak.JBAddon
Destroyed, GetServerDetails, InitAddon, MutatorIsAllowed, NotifyLevelChange, PlayInfoGroup, PostNetBeginPlay, RenderOverlays
Inherited Functions from Engine.Mutator
AddMutator, AlwaysKeep, CanEnterVehicle, CanLeaveVehicle, CheckRelevance, CheckReplacement, Destroyed, DriverEnteredVehicle, DriverLeftVehicle, GetDefaultWeapon, GetInventoryClass, GetInventoryClassOverride, GetServerDetails, GetServerPlayers, IsRelevant, ModifyLogin, ModifyPlayer, Mutate, MutatorFillPlayInfo, MutatorIsAllowed, MyDefaultWeapon, NewRecommendCombo, NotifyLogout, OverrideDownload, ParseChatPercVar, PlayerChangedClass, PreBeginPlay, RecommendCombo, ReplaceWith, ServerTraveling


Variables Detail

bMapDisabled Source code

var bool bMapDisabled;

BorderMat Source code

var Material BorderMat;

ColorPercent Source code

var float ColorPercent;

JBGRI Source code

var JBGameReplicationInfo JBGRI;

LocalPlayer Source code

var PlayerController LocalPlayer;

LocalTagPlayer Source code

var JBTagPlayer LocalTagPlayer;

Panorama Source code

var JBPanorama Panorama;

PlayerIcon Source code

var FinalBlend PlayerIcon;

RadarInteraction Source code

var JBInteractionRadar RadarInteraction;

JBAddonRadar2k4

Build Source code

var(JBAddonRadar2k4) const editconst string Build;


Functions Detail

CalcLocation Source code

simulated function vector CalcLocation ( Canvas C, vector WorldLocation, float CenterPosX, float CenterPosY, float RadarWidth) )
Wrapper for JBPanorama.CalcLocation() that converts scoreboard minimap coordinates to HUD radar map coordinates.

DrawMapImage Source code

simulated static function DrawMapImage ( Canvas C, Material Image, float MapX, float MapY, float RadarWidth, float Alpha) )
Draws the background panorama image.

DrawObjective Source code

simulated function DrawObjective ( Canvas C, JBTagObjective ObjectiveTag, float IconScaling, float CenterPosX, float CenterPosY, float RadarWidth) )
Draws a lock icon for the specified objective.

DrawPlayer Source code

simulated function DrawPlayer ( Canvas C, JBTagPlayer PlayerTag, float IconScaling, float CenterPosX, float CenterPosY, float RadarWidth) )
Draws a dot icon for the specified player.

DrawRadarMap Source code

simulated function DrawRadarMap ( Canvas C, float CenterPosX, float CenterPosY, float RadarWidth) )
Draws the radar map, consisting of a black background, the panorama image, switch and local player locationa and a border.

RenderOverlays Source code

simulated function RenderOverlays ( Canvas C) )
Positions and draws the HUD minimap, but only if the map has a panorama setup and the player didn't turn it off.

Tick Source code

simulated function Tick ( float deltaTime) )
Ensure the Panorama actor, the JBGRI and the interaction for capturing the ToggleRadarMap command are registered. Update the color pulse percentage.


Defaultproperties

defaultproperties
{
	FriendlyName = "Radar"
	Description = "Adds the minimap from the scoreboard to the HUD as Onslaught-style radar map."
	Build = "%%%%-%%-%% %%:%%"
	bAddToServerPackages = True
	bIsOverlay = True
	BorderMat = Material'ONSInterface-TX.MapBorderTex'
	PlayerIcon = FinalBlend'CurrentPlayerIconFinal'
}



Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Do 14.8.2014 09:58:09.959 - Created with UnCodeX