Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*******************************************************************************
- * CamHUD generated by Eliot.UELib using UE Explorer.
- * Eliot.UELib © 2009-2013 Eliot van Uytfanghe. All rights reserved.
- * http://eliotvu.com
- *
- * All rights belong to their respective owners.
- *******************************************************************************/
- class CamHUD extends Interaction
- hidecategories(Object,UIRoot)
- config(RypelCam)
- transient;
- var config float speccamspeed;
- var config bool bStartPaused;
- var bool bact;
- var bool balternativekey;
- var bool bBlendRotation;
- var bool bdumpframes;
- var bool bFirstPersonMovieMode;
- var bool bFollowTarget;
- var bool bfollowtarget_lock_rotation;
- var bool bfovmode;
- var bool bhideweapon;
- var bool bIsPaused;
- var bool waspressed;
- var bool bLockRotation;
- var bool bpathedit;
- var bool bpcam;
- var bool bremovehiteffect;
- var bool bserverdemo;
- var bool bshowcoords;
- var bool bshowhelp;
- var bool bShowHudInfo;
- var bool bTargetnone;
- var bool targetlook;
- var bool btimedpath;
- var bool btpfastforward;
- var bool bViewingdemorec;
- var bool bViewingcam;
- var bool bViewing_last_set_campoint;
- var bool bw;
- var bool ba;
- var bool bs;
- var bool bd;
- var bool bdown;
- var bool bup;
- var bool started;
- var config bool Export_Collada_Cinema4D;
- var config bool Export_Collada_Blender;
- var bool Collada_first_logged;
- var bool bGetCanvasResolution;
- var config float PauseCamMouseSensitivity;
- var config int dumpframes_fps;
- var config int dumpframes_tiledshot_factor;
- var config float TimedPathStartTime;
- var config int TimedPathStartFrame;
- var float currentviewmode;
- var float followdist;
- var float kabstand;
- var float mabstand;
- var float LockViewOldRotationsDiff[9];
- var Rotator LockViewOldRotations[11];
- var float overlayPositions[12];
- var float specfollowdistance;
- var float Speed;
- var float TF;
- var int flagcount;
- var int I;
- var int Z;
- var int MouseX;
- var int MouseY;
- var int seektime;
- var int seekFrame;
- var int targetcount;
- var int targetcount_anz;
- var string followtarget_mode;
- var string watchedname;
- var Color DemoSpeedColor;
- var Rotator rotat;
- var Vector distancemeter_pos;
- var Vector TargetLoc;
- var Actor Target;
- var Actor HackLockedSavedActor;
- var CamControl Other2;
- var CamControl CC;
- var DemoRecSpectator drs;
- var Knoten other3;
- var Knoten kv;
- var Pawn Pawn;
- var PlayerReplicationInfo tpri;
- var Projectile tproj;
- var RCamDecalmanager RCamDecalmanager;
- var UTHUDBase H;
- var UTPlayerController PC;
- var float KeyFrame_Count;
- var array<float> KeyFrame_Time;
- var array<float> KeyFrame_Pos_X;
- var array<float> KeyFrame_Pos_Y;
- var array<float> KeyFrame_Pos_Z;
- var array<float> KeyFrame_Rot_X;
- var array<float> KeyFrame_Rot_Y;
- var array<float> KeyFrame_Rot_Z;
- var float CanvasClipX;
- var float CanvasClipY;
- var const Color GrayColor;
- var const Texture2D AltHudTexture;
- var int lastFlagFrame;
- function SetDemoSpeedColor()
- {
- DemoSpeedColor.R = 0;
- DemoSpeedColor.G = 0;
- DemoSpeedColor.B = 0;
- DemoSpeedColor.A = 255;
- // End:0xD9
- if(PC.WorldInfo.DemoPlayTimeDilation == float(1))
- {
- DemoSpeedColor.G = 255;
- }
- // End:0x3F2
- else
- {
- // End:0x190
- if(PC.WorldInfo.DemoPlayTimeDilation <= 0.60)
- {
- DemoSpeedColor.R = 255;
- DemoSpeedColor.G = byte(float(164) * PC.WorldInfo.DemoPlayTimeDilation);
- }
- // End:0x3F2
- else
- {
- // End:0x250
- if(PC.WorldInfo.DemoPlayTimeDilation < float(1))
- {
- DemoSpeedColor.R = byte(float(175) + (float(200) * (float(1) - PC.WorldInfo.DemoPlayTimeDilation)));
- DemoSpeedColor.G = 252;
- }
- // End:0x3F2
- else
- {
- // End:0x311
- if(PC.WorldInfo.DemoPlayTimeDilation <= float(3))
- {
- DemoSpeedColor.R = byte(float(175) + (float(40) * (PC.WorldInfo.DemoPlayTimeDilation - float(1))));
- DemoSpeedColor.G = 252;
- }
- // End:0x3F2
- else
- {
- // End:0x3D3
- if(PC.WorldInfo.DemoPlayTimeDilation < float(13))
- {
- DemoSpeedColor.R = 255;
- DemoSpeedColor.G = byte(float(250) - (float(25) * (PC.WorldInfo.DemoPlayTimeDilation - float(3))));
- }
- // End:0x3F2
- else
- {
- DemoSpeedColor.R = 255;
- }
- }
- }
- }
- }
- //return;
- }
- static function string FormatTime_likeUT(int Seconds)
- {
- local int Hours, Mins;
- local string NewTimeString;
- Seconds = int(Abs(float(Seconds)));
- Hours = Seconds / 3600;
- Seconds -= (Hours * 3600);
- Mins = Seconds / 60;
- Seconds -= (Mins * 60);
- NewTimeString = "";
- // End:0xDF
- if(Hours > 0)
- {
- NewTimeString = (NewTimeString $ ((Hours > 9) ? string(Hours) : "0" $ string(Hours))) $ ":";
- }
- NewTimeString = (NewTimeString $ ((Mins > 9) ? string(Mins) : "0" $ string(Mins))) $ ":";
- NewTimeString = NewTimeString $ ((Seconds > 9) ? string(Seconds) : "0" $ string(Seconds));
- return NewTimeString;
- //return ReturnValue;
- }
- function CustomDrawGraph(float X, float Y, float Width, float MaxWidth, float Height, Canvas DrawCanvas, optional byte Alpha)
- {
- local Color DrawColor, BackColor;
- Alpha = 255;
- DrawColor = DemoSpeedColor;
- DrawColor.A = Alpha;
- BackColor = default.GrayColor;
- BackColor.A = Alpha;
- DrawBarGraph(X, Y, Width, MaxWidth, Height, DrawCanvas, DrawColor, BackColor);
- //return;
- }
- static simulated function DrawBarGraph(float X, float Y, float Width, float MaxWidth, float Height, Canvas DrawCanvas, Color BarColor, Color BackColor)
- {
- // End:0xC9
- if(MaxWidth > 24.0)
- {
- DrawCanvas.DrawColor = BackColor;
- DrawCanvas.SetPos(X, Y);
- DrawCanvas.DrawTile(default.AltHudTexture, MaxWidth, Height, 407.0, 479.0, FMin(MaxWidth, 118.0), 16.0);
- }
- DrawCanvas.DrawColor = BarColor;
- DrawCanvas.SetPos(X, Y);
- DrawCanvas.DrawTile(default.AltHudTexture, Width, Height, 277.0, 494.0, 4.0, 13.0);
- //return;
- }
- exec function seekTo(int Mins, int secs, float fastforwardspeed, optional int FragCount)
- {
- seektime = (Mins * 60) + secs;
- PC.WorldInfo.DemoPlayTimeDilation = fastforwardspeed;
- //return;
- }
- exec function seekToFrame(int frame, float fastforwardspeed)
- {
- seekFrame = frame;
- PC.WorldInfo.DemoPlayTimeDilation = fastforwardspeed;
- //return;
- }
- exec function CurrentDemoFrame()
- {
- local int CurrentFrame, TotalFrames;
- PC.WorldInfo.GetDemoFrameInfo(CurrentFrame, TotalFrames);
- LogInternal("Demo CurrentFrame:" @ string(CurrentFrame));
- LogInternal("Demo TotalFrames :" @ string(TotalFrames));
- //return;
- }
- exec function DemoRewindPoints()
- {
- local array<int> OutRewindPoints;
- PC.WorldInfo.GetDemoRewindPoints(OutRewindPoints);
- I = 0;
- J0x48:
- // End:0x9F [Loop If]
- if(I < (OutRewindPoints.Length - 1))
- {
- LogInternal("Demo RewindPoints:" @ string(OutRewindPoints[I]));
- ++ I;
- // [Loop Continue]
- goto J0x48;
- }
- //return;
- }
- exec function toggleMovieMode()
- {
- bFirstPersonMovieMode = !bFirstPersonMovieMode;
- //return;
- }
- function LoadRCamConfig()
- {
- // End:0x27
- if(CC != none)
- {
- CC.Destroy();
- }
- // End:0x94
- foreach PC.DynamicActors(class'Knoten', other3)
- {
- // End:0x7B
- if(other3.bForC130)
- {
- continue;
- }
- other3.Destroy();
- }
- CC = PC.Spawn(class'CamControl');
- CC.Init();
- flagcount = CC.Z;
- kabstand = CC.kabstand;
- mabstand = CC.mabstand;
- //return;
- }
- function startCam()
- {
- local Knoten ksc;
- local RotKnoten rksc;
- drs.SetViewTarget(CC);
- drs.SetBehindView(false);
- PC.bDebugFreeCam = true;
- // End:0x17A
- if(CC.drawcount == 0)
- {
- // End:0x103
- foreach PC.DynamicActors(class'Knoten', ksc)
- {
- // End:0xE2
- if(ksc.bForC130)
- {
- continue;
- }
- ksc.SetHidden(false);
- }
- // End:0x179
- foreach PC.DynamicActors(class'RotKnoten', rksc)
- {
- // End:0x158
- if(rksc.bForC130)
- {
- continue;
- }
- rksc.SetHidden(true);
- }
- }
- CC.startCam = true;
- bViewingcam = true;
- bViewingdemorec = false;
- //return;
- }
- exec function beep()
- {
- H.bMessageBeep = !H.bMessageBeep;
- // End:0x84
- if(H.bMessageBeep)
- {
- H.bMessageBeep = true;
- }
- // End:0xC9
- if(!H.bMessageBeep)
- {
- H.bMessageBeep = false;
- }
- //return;
- }
- function reset_clientdemo_rotation_roll()
- {
- local Rotator temp_pc_rotation;
- // End:0x9E
- if(PC.Rotation.Roll != 0)
- {
- temp_pc_rotation = PC.Rotation;
- temp_pc_rotation.Roll = 0;
- PC.SetRotation(temp_pc_rotation);
- }
- //return;
- }
- exec function Render(string Flag)
- {
- // End:0xE4
- if(PC.WorldInfo.NetMode == NM_Client)
- {
- PC.WorldInfo.NetMode = NM_Standalone;
- PC.ConsoleCommand("show" @ Flag);
- PC.WorldInfo.NetMode = NM_Client;
- //return;
- }
- }
- function CycleRenderViewMode()
- {
- // End:0x4DD
- if(PC.WorldInfo.NetMode == NM_Client)
- {
- PC.WorldInfo.NetMode = NM_Standalone;
- currentviewmode += float(1);
- // End:0x93
- if(currentviewmode == float(0))
- {
- }
- // End:0xDD
- if(currentviewmode == float(1))
- {
- PC.ConsoleCommand("show meshedges");
- // End:0x12E
- if(currentviewmode == float(2))
- {
- }
- PC.ConsoleCommand("show levelcoloration");
- // End:0x179
- if(currentviewmode == float(3))
- {
- }
- PC.ConsoleCommand("show meshedges");
- // End:0x238
- if(currentviewmode == float(4))
- {
- }
- PC.ConsoleCommand("show levelcoloration");
- PC.ConsoleCommand("show fog");
- PC.ConsoleCommand("show postprocess");
- // End:0x39F
- if(currentviewmode == float(5))
- {
- PC.ConsoleCommand("show fog");
- }
- PC.ConsoleCommand("show postprocess");
- PC.ConsoleCommand("show bsp");
- PC.ConsoleCommand("show staticmeshes");
- PC.ConsoleCommand("show terrain");
- PC.ConsoleCommand("show unlittranslucency");
- // End:0x4A7
- if(currentviewmode == float(6))
- {
- PC.ConsoleCommand("show bsp");
- }
- PC.ConsoleCommand("show staticmeshes");
- PC.ConsoleCommand("show terrain");
- PC.ConsoleCommand("show unlittranslucency");
- currentviewmode = 0.0;
- PC.WorldInfo.NetMode = NM_Client;
- //return;
- }
- }
- }
- exec function dumpfps(int fps)
- {
- dumpframes_fps = fps;
- PC.ClientMessage("dumpframes fps =" @ string(fps));
- //return;
- }
- exec function dumpres(int res)
- {
- dumpframes_tiledshot_factor = res;
- PC.ClientMessage("dumpframes resolution factor =" @ string(res));
- //return;
- }
- exec function Mouse(int MouseSensitivity)
- {
- PauseCamMouseSensitivity = float(MouseSensitivity);
- //return;
- }
- exec function StartPaused()
- {
- // End:0x1C
- if(bStartPaused)
- {
- bStartPaused = false;
- }
- // End:0x37
- else
- {
- // End:0x37
- if(!bStartPaused)
- {
- bStartPaused = true;
- }
- }
- //return;
- }
- exec function tpstart(optional float fastforwardspeed)
- {
- // End:0x58
- if(flagcount < 1)
- {
- LoadRCamConfig();
- drs.SetViewTarget(CC.viewer01);
- }
- started = false;
- PC.bDebugFreeCam = true;
- // End:0xE5
- if(btimedpath == false)
- {
- btimedpath = !btimedpath;
- // End:0xE5
- if(CC != none)
- {
- CC.btimedpath = btimedpath;
- }
- }
- // End:0x128
- if(H.bMessageBeep)
- {
- H.bMessageBeep = false;
- }
- // End:0x195
- if(PC.myHUD.bShowHUD)
- {
- PC.myHUD.bShowHUD = false;
- }
- btpfastforward = true;
- // End:0x1EE
- if(fastforwardspeed < float(1))
- {
- PC.WorldInfo.DemoPlayTimeDilation = 2.0;
- }
- // End:0x23C
- else
- {
- // End:0x23C
- if(fastforwardspeed >= float(1))
- {
- PC.WorldInfo.DemoPlayTimeDilation = fastforwardspeed;
- }
- }
- //return;
- }
- function ColladaExport()
- {
- local Vector Temp_Pos;
- local Rotator Temp_Rot;
- // End:0xCF
- if(drs.ViewTarget != none)
- {
- Temp_Pos = drs.ViewTarget.Location;
- Temp_Rot = drs.ViewTarget.Rotation;
- drs.GetPlayerViewPoint(Temp_Pos, Temp_Rot);
- }
- KeyFrame_Count += float(1);
- KeyFrame_Time.AddItem(Abs(1.0 / float(dumpframes_fps)) * KeyFrame_Count);
- KeyFrame_Pos_X.AddItem(Temp_Pos.X);
- KeyFrame_Pos_Y.AddItem(Temp_Pos.Y);
- KeyFrame_Pos_Z.AddItem(Temp_Pos.Z);
- KeyFrame_Rot_X.AddItem(float(Temp_Rot.Yaw));
- KeyFrame_Rot_Y.AddItem(float(Temp_Rot.Pitch));
- KeyFrame_Rot_Z.AddItem(float(Temp_Rot.Roll));
- // End:0x2E6
- if(!Collada_first_logged)
- {
- LogInternal("RypelCam Dump START FILE FORMAT OUTPUT");
- LogInternal("RypelCam Dump Config FPS=" $ string(dumpframes_fps));
- LogInternal("RypelCam Dump Start Time (PC.WorldInfo.TimeSeconds)=" $ string(PC.WorldInfo.TimeSeconds));
- Collada_first_logged = true;
- }
- LogInternal((((((("RypelCam Dump " $ string(Temp_Pos)) $ "|") $ string(Temp_Rot)) $ "|") $ string(PC.GetFOVAngle())) $ "|") $ string(Abs(1.0 / float(dumpframes_fps)) * KeyFrame_Count));
- //return;
- }
- exec function WriteColladaFile(optional bool C4D, optional bool Blender)
- {
- local FileWriter fw;
- fw = PC.WorldInfo.Spawn(class'FileWriter');
- // End:0x8D
- if(C4D)
- {
- fw.OpenFile("C4D", 3, ".dae");
- }
- // End:0xCC
- else
- {
- // End:0xCC
- if(Blender)
- {
- fw.OpenFile("Blender", 3, ".dae");
- }
- }
- fw.Logf("<?xml version=\\"1.0\\"?>");
- fw.Logf("<COLLADA xmlns=\\"http://www.collada.org/2005/11/COLLADASchema\\" version=\\"1.4.1\\">");
- fw.Logf(" <asset>");
- fw.Logf(" <contributor>");
- fw.Logf(" <authoring_tool>RypelCam</authoring_tool>");
- fw.Logf(" </contributor>");
- fw.Logf(" <created>2012-01-01T00:00:00</created>");
- fw.Logf(" <modified>2012-01-01T00:00:00</modified>");
- fw.Logf(" <unit name=\\"meter\\" meter=\\"1\\"/>");
- fw.Logf(" <up_axis>Z_UP</up_axis>");
- fw.Logf(" </asset>");
- fw.Logf(" <library_cameras>");
- fw.Logf(" <camera id=\\"Camera1\\" name=\\"Camera\\">");
- fw.Logf(" <optics>");
- fw.Logf(" <technique_common>");
- fw.Logf(" <perspective>");
- fw.Logf((" <xfov>" $ string(PC.GetFOVAngle())) $ "</xfov>");
- // End:0x5D4
- if((CanvasClipX != float(0)) && CanvasClipY != float(0))
- {
- fw.Logf((" <aspect_ratio>" $ string(CanvasClipX / CanvasClipY)) $ "</aspect_ratio>");
- }
- // End:0x632
- else
- {
- fw.Logf(" <aspect_ratio>1.777778</aspect_ratio>");
- }
- fw.Logf(" <znear>0.1</znear>");
- fw.Logf(" <zfar>10000</zfar>");
- fw.Logf(" </perspective>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </optics>");
- fw.Logf(" </camera>");
- fw.Logf(" </library_cameras>");
- fw.Logf(" <library_animations>");
- fw.Logf(" <animation>");
- fw.Logf(" <animation>");
- fw.Logf(" <source id=\\"Pos_X_Keyframes\\">");
- fw.Logf((" <float_array id=\\"array_Pos_X_Keyframes\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x963:
- // End:0x9BE [Loop If]
- if(float(I) < KeyFrame_Count)
- {
- fw.Logf(string(KeyFrame_Time[I]));
- ++ I;
- // [Loop Continue]
- goto J0x963;
- }
- fw.Logf(" </float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Pos_X_Keyframes\\">");
- fw.Logf(" <param name=\\"TIME\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <source id=\\"Pos_X\\">");
- fw.Logf((" <float_array id=\\"array_Pos_X\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0xCA5:
- // End:0xD02 [Loop If]
- if(I < (KeyFrame_Pos_X.Length - 1))
- {
- fw.Logf(string(KeyFrame_Pos_X[I]));
- ++ I;
- // [Loop Continue]
- goto J0xCA5;
- }
- fw.Logf(" </float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Pos_X\\">");
- fw.Logf(" <param name=\\"X\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <sampler id=\\"apply_Pos_X\\">");
- fw.Logf(" <input semantic=\\"INPUT\\" source=\\"#Pos_X_Keyframes\\"/>");
- fw.Logf(" <input semantic=\\"OUTPUT\\" source=\\"#Pos_X\\"/>");
- fw.Logf(" </sampler>");
- fw.Logf(" <channel source=\\"#apply_Pos_X\\" target=\\"Scene_Camera/translate.X\\"/>");
- fw.Logf(" </animation>");
- fw.Logf(" <animation>");
- fw.Logf(" <source id=\\"Pos_Y_Keyframes\\">");
- fw.Logf((" <float_array id=\\"array_Pos_Y_Keyframes\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x1221:
- // End:0x127C [Loop If]
- if(float(I) < KeyFrame_Count)
- {
- fw.Logf(string(KeyFrame_Time[I]));
- ++ I;
- // [Loop Continue]
- goto J0x1221;
- }
- fw.Logf(" </float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Pos_Y_Keyframes\\">");
- fw.Logf(" <param name=\\"TIME\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <source id=\\"Pos_Y\\">");
- fw.Logf((" <float_array id=\\"array_Pos_Y\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x1563:
- // End:0x1613 [Loop If]
- if(I < (KeyFrame_Pos_Y.Length - 1))
- {
- // End:0x15C2
- if(C4D)
- {
- fw.Logf(string(KeyFrame_Pos_Z[I]));
- }
- // End:0x1605
- else
- {
- // End:0x1605
- if(Blender)
- {
- fw.Logf(string(-KeyFrame_Pos_Y[I]));
- }
- }
- ++ I;
- // [Loop Continue]
- goto J0x1563;
- }
- fw.Logf(" </float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Pos_Y\\">");
- fw.Logf(" <param name=\\"Y\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <sampler id=\\"apply_Pos_Y\\">");
- fw.Logf(" <input semantic=\\"INPUT\\" source=\\"#Pos_Y_Keyframes\\"/>");
- fw.Logf(" <input semantic=\\"OUTPUT\\" source=\\"#Pos_Y\\"/>");
- fw.Logf(" </sampler>");
- fw.Logf(" <channel source=\\"#apply_Pos_Y\\" target=\\"Scene_Camera/translate.Y\\"/>");
- fw.Logf(" </animation>");
- fw.Logf(" <animation>");
- fw.Logf(" <source id=\\"Pos_Z_Keyframes\\">");
- fw.Logf((" <float_array id=\\"array_Pos_Z_Keyframes\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x1B32:
- // End:0x1B8D [Loop If]
- if(float(I) < KeyFrame_Count)
- {
- fw.Logf(string(KeyFrame_Time[I]));
- ++ I;
- // [Loop Continue]
- goto J0x1B32;
- }
- fw.Logf(" </float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Pos_Z_Keyframes\\">");
- fw.Logf(" <param name=\\"TIME\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <source id=\\"Pos_Z\\">");
- fw.Logf((" <float_array id=\\"array_Pos_Z\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x1E74:
- // End:0x1F22 [Loop If]
- if(I < (KeyFrame_Pos_Z.Length - 1))
- {
- // End:0x1ED3
- if(C4D)
- {
- fw.Logf(string(KeyFrame_Pos_Y[I]));
- }
- // End:0x1F14
- else
- {
- // End:0x1F14
- if(Blender)
- {
- fw.Logf(string(KeyFrame_Pos_Z[I]));
- }
- }
- ++ I;
- // [Loop Continue]
- goto J0x1E74;
- }
- fw.Logf(" </float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Pos_Z\\">");
- fw.Logf(" <param name=\\"Z\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <sampler id=\\"apply_Pos_Z\\">");
- fw.Logf(" <input semantic=\\"INPUT\\" source=\\"#Pos_Z_Keyframes\\"/>");
- fw.Logf(" <input semantic=\\"OUTPUT\\" source=\\"#Pos_Z\\"/>");
- fw.Logf(" </sampler>");
- fw.Logf(" <channel source=\\"#apply_Pos_Z\\" target=\\"Scene_Camera/translate.Z\\"/>");
- fw.Logf(" </animation>");
- fw.Logf(" <animation>");
- fw.Logf(" <source id=\\"Rot_Y_Keyframes\\">");
- fw.Logf((" <float_array id=\\"array_Rot_Y_Keyframes\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x2441:
- // End:0x249C [Loop If]
- if(float(I) < KeyFrame_Count)
- {
- fw.Logf(string(KeyFrame_Time[I]));
- ++ I;
- // [Loop Continue]
- goto J0x2441;
- }
- fw.Logf(" </float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Rot_Y_Keyframes\\">");
- fw.Logf(" <param name=\\"TIME\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <source id=\\"Rot_Y\\">");
- fw.Logf((" <float_array id=\\"array_Rot_Y\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x2783:
- // End:0x27F6 [Loop If]
- if(I < (KeyFrame_Rot_X.Length - 1))
- {
- fw.Logf(string(((-KeyFrame_Rot_X[I] / 65536.0) * 360.0) - float(90)));
- ++ I;
- // [Loop Continue]
- goto J0x2783;
- }
- fw.Logf(" </float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Rot_Y\\">");
- fw.Logf(" <param name=\\"ANGLE\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <sampler id=\\"apply_Rot_Y\\">");
- fw.Logf(" <input semantic=\\"INPUT\\" source=\\"#Rot_Y_Keyframes\\"/>");
- fw.Logf(" <input semantic=\\"OUTPUT\\" source=\\"#Rot_Y\\"/>");
- fw.Logf(" </sampler>");
- fw.Logf(" <channel source=\\"#apply_Rot_Y\\" target=\\"Scene_Camera/rotateY.ANGLE\\"/>");
- fw.Logf(" </animation>");
- fw.Logf(" <animation>");
- fw.Logf(" <source id=\\"Rot_X_Keyframes\\">");
- fw.Logf((" <float_array id=\\"array_Rot_X_Keyframes\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x2D1B:
- // End:0x2D76 [Loop If]
- if(float(I) < KeyFrame_Count)
- {
- fw.Logf(string(KeyFrame_Time[I]));
- ++ I;
- // [Loop Continue]
- goto J0x2D1B;
- }
- fw.Logf("</float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Rot_X_Keyframes\\">");
- fw.Logf(" <param name=\\"TIME\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <source id=\\"Rot_X\\">");
- fw.Logf((" <float_array id=\\"array_Rot_X\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x3049:
- // End:0x30B4 [Loop If]
- if(I < (KeyFrame_Rot_Y.Length - 1))
- {
- fw.Logf(string((KeyFrame_Rot_Y[I] / 65536.0) * 360.0));
- ++ I;
- // [Loop Continue]
- goto J0x3049;
- }
- fw.Logf("</float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Rot_X\\">");
- fw.Logf(" <param name=\\"ANGLE\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <sampler id=\\"apply_Rot_X\\">");
- fw.Logf(" <input semantic=\\"INPUT\\" source=\\"#Rot_X_Keyframes\\"/>");
- fw.Logf(" <input semantic=\\"OUTPUT\\" source=\\"#Rot_X\\"/>");
- fw.Logf(" </sampler>");
- fw.Logf(" <channel source=\\"#apply_Rot_X\\" target=\\"Scene_Camera/rotateX.ANGLE\\"/>");
- fw.Logf(" </animation>");
- fw.Logf(" <animation>");
- fw.Logf(" <source id=\\"Rot_Z_Keyframes\\">");
- fw.Logf((" <float_array id=\\"array_Rot_Z_Keyframes\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x35C5:
- // End:0x3620 [Loop If]
- if(float(I) < KeyFrame_Count)
- {
- fw.Logf(string(KeyFrame_Time[I]));
- ++ I;
- // [Loop Continue]
- goto J0x35C5;
- }
- fw.Logf("</float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Rot_Z_Keyframes\\">");
- fw.Logf(" <param name=\\"TIME\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <source id=\\"Rot_Z\\">");
- fw.Logf((" <float_array id=\\"array_Rot_Z\\" count=\\"" $ string(KeyFrame_Count)) $ "\\">");
- I = 0;
- J0x38F3:
- // End:0x399F [Loop If]
- if(I < (KeyFrame_Rot_Z.Length - 1))
- {
- // End:0x3962
- if(C4D)
- {
- fw.Logf(string((-KeyFrame_Rot_Z[I] / 65536.0) * 360.0));
- }
- // End:0x3991
- else
- {
- // End:0x3991
- if(Blender)
- {
- fw.Logf(string(0));
- }
- }
- ++ I;
- // [Loop Continue]
- goto J0x38F3;
- }
- fw.Logf("</float_array>");
- fw.Logf(" <technique_common>");
- fw.Logf((" <accessor count=\\"" $ string(KeyFrame_Count)) $ "\\" source=\\"#array_Rot_Z\\">");
- fw.Logf(" <param name=\\"ANGLE\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <sampler id=\\"apply_Rot_Z\\">");
- fw.Logf(" <input semantic=\\"INPUT\\" source=\\"#Rot_Z_Keyframes\\"/>");
- fw.Logf(" <input semantic=\\"OUTPUT\\" source=\\"#Rot_Z\\"/>");
- fw.Logf(" </sampler>");
- fw.Logf(" <channel source=\\"#apply_Rot_Z\\" target=\\"Scene_Camera/rotateZ.ANGLE\\"/>");
- fw.Logf(" </animation>");
- fw.Logf(" <animation>");
- fw.Logf(" <source id=\\"Scale_X_Keyframes\\">");
- fw.Logf(" <float_array id=\\"array_Scale_X_Keyframes\\" count=\\"0\\"/>");
- fw.Logf(" <technique_common>");
- fw.Logf(" <accessor count=\\"0\\" source=\\"#array_Scale_X_Keyframes\\">");
- fw.Logf(" <param name=\\"TIME\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <source id=\\"Scale_X\\">");
- fw.Logf(" <float_array id=\\"array_Scale_X\\" count=\\"0\\"/>");
- fw.Logf(" <technique_common>");
- fw.Logf(" <accessor count=\\"0\\" source=\\"#array_Scale_X\\">");
- fw.Logf(" <param name=\\"X\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <sampler id=\\"apply_Scale_X\\">");
- fw.Logf(" <input semantic=\\"INPUT\\" source=\\"#Scale_X_Keyframes\\"/>");
- fw.Logf(" <input semantic=\\"OUTPUT\\" source=\\"#Scale_X\\"/>");
- fw.Logf(" </sampler>");
- fw.Logf(" <channel source=\\"#apply_Scale_X\\" target=\\"Scene_Camera/scale.X\\"/>");
- fw.Logf(" </animation>");
- fw.Logf(" <animation>");
- fw.Logf(" <source id=\\"Scale_Y_Keyframes\\">");
- fw.Logf(" <float_array id=\\"array_Scale_Y_Keyframes\\" count=\\"0\\"/>");
- fw.Logf(" <technique_common>");
- fw.Logf(" <accessor count=\\"0\\" source=\\"#array_Scale_Y_Keyframes\\">");
- fw.Logf(" <param name=\\"TIME\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <source id=\\"Scale_Y\\">");
- fw.Logf(" <float_array id=\\"array_Scale_Y\\" count=\\"0\\"/>");
- fw.Logf(" <technique_common>");
- fw.Logf(" <accessor count=\\"0\\" source=\\"#array_Scale_Y\\">");
- fw.Logf(" <param name=\\"Y\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <sampler id=\\"apply_Scale_Y\\">");
- fw.Logf(" <input semantic=\\"INPUT\\" source=\\"#Scale_Y_Keyframes\\"/>");
- fw.Logf(" <input semantic=\\"OUTPUT\\" source=\\"#Scale_Y\\"/>");
- fw.Logf(" </sampler>");
- fw.Logf(" <channel source=\\"#apply_Scale_Y\\" target=\\"Scene_Camera/scale.Y\\"/>");
- fw.Logf(" </animation>");
- fw.Logf(" <animation>");
- fw.Logf(" <source id=\\"Scale_Z_Keyframes\\">");
- fw.Logf(" <float_array id=\\"array_Scale_Z_Keyframes\\" count=\\"0\\"/>");
- fw.Logf(" <technique_common>");
- fw.Logf(" <accessor count=\\"0\\" source=\\"#array_Scale_Z_Keyframes\\">");
- fw.Logf(" <param name=\\"TIME\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <source id=\\"Scale_Z\\">");
- fw.Logf(" <float_array id=\\"array_Scale_Z\\" count=\\"0\\"/>");
- fw.Logf(" <technique_common>");
- fw.Logf(" <accessor count=\\"0\\" source=\\"#array_Scale_Z\\">");
- fw.Logf(" <param name=\\"Z\\" type=\\"float\\"/>");
- fw.Logf(" </accessor>");
- fw.Logf(" </technique_common>");
- fw.Logf(" </source>");
- fw.Logf(" <sampler id=\\"apply_Scale_Z\\">");
- fw.Logf(" <input semantic=\\"INPUT\\" source=\\"#Scale_Z_Keyframes\\"/>");
- fw.Logf(" <input semantic=\\"OUTPUT\\" source=\\"#Scale_Z\\"/>");
- fw.Logf(" </sampler>");
- fw.Logf(" <channel source=\\"#apply_Scale_Z\\" target=\\"Scene_Camera/scale.Z\\"/>");
- fw.Logf(" </animation>");
- fw.Logf(" </animation>");
- fw.Logf(" </library_animations>");
- fw.Logf(" <library_visual_scenes>");
- fw.Logf(" <visual_scene id=\\"ID5\\">");
- fw.Logf(" <node id=\\"Scene_Camera\\" name=\\"Camera\\">");
- fw.Logf(" <translate sid=\\"translate\\">0 0 0</translate>");
- fw.Logf(" <rotate sid=\\"rotateY\\">0 1 0 0</rotate>");
- fw.Logf(" <rotate sid=\\"rotateX\\">1 0 0 0</rotate>");
- fw.Logf(" <rotate sid=\\"rotateZ\\">0 0 1 0</rotate>");
- fw.Logf(" <scale sid=\\"scale\\">1 1 1</scale>");
- fw.Logf(" <instance_camera url=\\"#Camera1\\"/>");
- fw.Logf(" </node>");
- fw.Logf(" </visual_scene>");
- fw.Logf(" </library_visual_scenes>");
- fw.Logf(" <scene>");
- fw.Logf(" <instance_visual_scene url=\\"#ID5\\"/>");
- fw.Logf(" </scene>");
- fw.Logf("</COLLADA>");
- fw.CloseFile();
- //return;
- }
- function followtarget(int followmode)
- {
- local bool b_set_target;
- I = 0;
- watchedname = "not available";
- // End:0x42
- if(followmode == 1)
- {
- bfollowtarget_lock_rotation = true;
- }
- // End:0x4E
- else
- {
- bfollowtarget_lock_rotation = false;
- }
- // End:0x26B
- if((followmode == 1) || followmode == 2)
- {
- // End:0x267
- foreach PC.DynamicActors(class'Projectile', tproj)
- {
- // End:0x25B
- if(targetcount == I)
- {
- PC.SetViewTarget(PC.Pawn);
- specfollowdistance = 100.0;
- drs.SetLocation(tproj.Location - (vector(tproj.Rotation) * float(60)));
- drs.SetRotation(rotator(tproj.Location - drs.Location));
- Target = tproj;
- // End:0x1F2
- if(followmode == 1)
- {
- followtarget_mode = "center_target";
- }
- // End:0x211
- if(followmode == 2)
- {
- followtarget_mode = "loc";
- }
- watchedname = tproj.GetHumanReadableName();
- watchedname = Repl(watchedname, "UTProj_", "");
- }
- ++ I;
- }
- }
- // End:0x7D1
- else
- {
- // End:0x7D1
- if(followmode == 3)
- {
- // End:0x7D0
- foreach PC.DynamicActors(class'Pawn', Pawn)
- {
- // End:0x2D1
- if(Pawn.PlayerReplicationInfo == none)
- {
- continue;
- }
- // End:0x3BC
- if((drs.ViewTarget != none) && Pawn(PC.ViewTarget) != none)
- {
- // End:0x3B9
- if(Pawn(PC.ViewTarget).PlayerReplicationInfo.PlayerName == Pawn.PlayerReplicationInfo.PlayerName)
- {
- b_set_target = true;
- }
- }
- // End:0x3DF
- else
- {
- // End:0x3DF
- if(targetcount == I)
- {
- b_set_target = true;
- }
- }
- // End:0x7C4
- if(b_set_target == true)
- {
- specfollowdistance = 100.0;
- drs.SetViewTarget(none);
- // End:0x68F
- if(Vehicle(Pawn) != none)
- {
- // End:0x498
- if(Vehicle(Pawn).Driver != none)
- {
- Target = Vehicle(Pawn).Driver;
- }
- // End:0x4AB
- else
- {
- Target = Pawn;
- }
- // End:0x5C3
- if(Vehicle(Pawn).GetHumanReadableName() == "Hoverboard")
- {
- drs.SetLocation((Pawn.Location - (vector(Pawn.Rotation - rot(16384, 0, 0)) * float(30))) - (vector(Pawn.Rotation - rot(2048, 0, 0)) * float(100)));
- drs.SetRotation(Pawn.Rotation);
- }
- // End:0x68C
- else
- {
- drs.SetLocation(Pawn.Location - (vector(Pawn.Rotation - rot(4096, 0, 0)) * float(600)));
- drs.SetRotation(rotator(Pawn.Location - drs.Location));
- }
- }
- // End:0x768
- else
- {
- Target = Pawn;
- drs.SetLocation(Pawn.Location - (vector(Pawn.Rotation - rot(2048, 0, 0)) * float(100)));
- drs.SetRotation(rotator(Pawn.Location - drs.Location));
- }
- watchedname = Pawn.PlayerReplicationInfo.PlayerName;
- followtarget_mode = "loc_rot";
- b_set_target = false;
- }
- ++ I;
- }
- }
- }
- // End:0x879
- if(I != 0)
- {
- ++ targetcount;
- targetcount_anz = I;
- targetcount = targetcount % targetcount_anz;
- drs.bCollideWorld = false;
- bViewingcam = true;
- bViewingdemorec = false;
- bTargetnone = false;
- bFollowTarget = true;
- waspressed = true;
- }
- //return;
- }
- function TimeDilation(float percentage)
- {
- // End:0xB1
- if(PC.WorldInfo.DemoPlayTimeDilation >= float(1))
- {
- PC.WorldInfo.DemoPlayTimeDilation += (PC.WorldInfo.DemoPlayTimeDilation * percentage);
- }
- // End:0x19F
- else
- {
- // End:0x19F
- if((PC.WorldInfo.DemoPlayTimeDilation + (PC.WorldInfo.DemoPlayTimeDilation * percentage)) > float(0))
- {
- PC.WorldInfo.DemoPlayTimeDilation += (PC.WorldInfo.DemoPlayTimeDilation * percentage);
- }
- }
- //return;
- }
- function viewpreviousplayer(int N)
- {
- local int Index, CurrentIndex, IndexLength;
- // End:0x235
- if(PC.RealViewTarget != none)
- {
- Index = 0;
- // End:0xE1
- foreach PC.DynamicActors(class'Pawn', Pawn)
- {
- // End:0xE0
- if(Pawn.PlayerReplicationInfo != none)
- {
- ++ Index;
- // End:0xE0
- if(PC.RealViewTarget == Pawn.PlayerReplicationInfo)
- {
- CurrentIndex = Index;
- }
- }
- }
- IndexLength = Index;
- // End:0x129
- if((N == 2) && CurrentIndex == IndexLength)
- {
- CurrentIndex = 0;
- }
- I = 0;
- // End:0x231
- foreach PC.DynamicActors(class'Pawn', Pawn)
- {
- // End:0x230
- if(Pawn.PlayerReplicationInfo != none)
- {
- ++ I;
- // End:0x1E2
- if(IndexLength < (CurrentIndex + N))
- {
- PC.SetViewTarget(Pawn);
- // End:0x231
- break;
- // End:0x230
- continue;
- }
- // End:0x230
- if(I == (CurrentIndex + N))
- {
- PC.SetViewTarget(Pawn);
- // End:0x231
- break;
- }
- }
- }
- }
- // End:0x254
- else
- {
- drs.DemoViewNextPlayer();
- }
- //return;
- }
- function bool InputAxis(int ControllerId, name Key, float Delta, float DeltaTime, optional bool bGamepad)
- {
- local Rotator tr;
- bGamepad = false;
- switch(Key)
- {
- // End:0xC3
- case 'MouseX':
- tr = drs.Rotation;
- tr.Yaw = int(float(tr.Yaw) + (Delta * PauseCamMouseSensitivity));
- drs.SetRotation(tr);
- // End:0x171
- break;
- // End:0x16E
- case 'MouseY':
- tr = drs.Rotation;
- tr.Pitch = int(float(tr.Pitch) + (Delta * PauseCamMouseSensitivity));
- drs.SetRotation(tr);
- // End:0x171
- break;
- // End:0xFFFF
- default:
- return false;
- }
- //return ReturnValue;
- }
- function bool InputKey(int ControllerId, name Key, Core.Object.EInputEvent Event, optional float AmountDepressed, optional bool bGamepad)
- {
- local Vector V;
- local RotKnoten rk2;
- local Vector tvect;
- local bool ballowedflag;
- AmountDepressed = 1.0;
- bGamepad = false;
- // End:0x7D
- if(LocalPlayer(PC.Player).ViewportClient.ViewportConsole.IsInState('Typing'))
- {
- return false;
- }
- bact = true;
- // End:0x45D6
- if(Event == 0)
- {
- // End:0x1A7
- if(CC == none)
- {
- // End:0x1A6
- foreach PC.DynamicActors(class'CamControl', Other2)
- {
- // End:0x100
- if(Other2.bForC130)
- {
- continue;
- }
- CC = Other2;
- Speed = CC.basic_speed2;
- Other2.FOV = PC.DefaultFOV;
- CC.btimedpath = btimedpath;
- // End:0x1A6
- break;
- }
- }
- switch(Key)
- {
- // End:0x1D5
- case 'X':
- balternativekey = true;
- // End:0x45D3
- break;
- // End:0x278
- case 'J':
- // End:0x225
- if(!btimedpath)
- {
- PC.ConsoleCommand("tpstart");
- goto J0x275;
- btimedpath = !btimedpath;
- }
- // End:0x275
- if(CC != none)
- {
- CC.btimedpath = btimedpath;
- goto J0x45D3;
- J0x275:
- // End:0x2AB
- case 'L':
- }
- // End:0x2A8
- if(bserverdemo)
- {
- bLockRotation = !bLockRotation;
- goto J0x45D3;
- // End:0x2D1
- case 'M':
- }
- bShowHudInfo = !bShowHudInfo;
- goto J0x45D3;
- // End:0x31E
- case 'MouseScrollDown':
- // End:0x30C
- if(balternativekey)
- {
- drs.DemoViewNextPlayer();
- goto J0x31B;
- TimeDilation(-0.050);
- }
- goto J0x45D3;
- J0x31B:
- // End:0x357
- case 'MouseScrollUp':
- // End:0x345
- if(balternativekey)
- {
- viewpreviousplayer(1);
- goto J0x354;
- TimeDilation(0.050);
- }
- goto J0x45D3;
- J0x354:
- // End:0x39F
- case 'Up':
- PC.WorldInfo.DemoPlayTimeDilation = 1.0;
- goto J0x45D3;
- // End:0x3BD
- case 'Left':
- TimeDilation(-0.20);
- goto J0x45D3;
- // End:0x3DB
- case 'Right':
- TimeDilation(0.20);
- goto J0x45D3;
- // End:0x574
- case 'Down':
- bIsPaused = !bIsPaused;
- // End:0x47D
- if(PC.PlayerReplicationInfo == none)
- {
- // End:0x47C
- foreach PC.DynamicActors(class'PlayerReplicationInfo', tpri)
- {
- PC.PlayerReplicationInfo = tpri;
- goto J0x47C;
- J0x47C:
- // End:0x4DF
- if(bIsPaused)
- {
- }
- }
- PC.WorldInfo.Pauser = PC.PlayerReplicationInfo;
- goto J0x514;
- PC.WorldInfo.Pauser = none;
- }
- // End:0x571
- if(bpcam)
- {
- J0x514:
- // End:0x571
- if(CC != none)
- {
- CC.bpcam = !CC.bpcam;
- goto J0x45D3;
- // End:0x5E8
- case 'F2':
- }
- }
- // End:0x5C2
- if(bdumpframes)
- {
- // End:0x5A6
- if(Export_Collada_Cinema4D)
- {
- WriteColladaFile(true, false);
- // End:0x5BF
- if(Export_Collada_Blender)
- {
- }
- WriteColladaFile(false, true);
- goto J0x5CE;
- bGetCanvasResolution = true;
- }
- }
- bdumpframes = !bdumpframes;
- J0x5CE:
- goto J0x45D3;
- // End:0x60E
- case 'F3':
- bpathedit = !bpathedit;
- goto J0x45D3;
- // End:0x659
- case 'F4':
- CC.conf = true;
- SaveConfig();
- CC.SaveConfig();
- goto J0x45D3;
- // End:0x672
- case 'F5':
- LoadRCamConfig();
- goto J0x45D3;
- // End:0x68B
- case 'F7':
- toggleMovieMode();
- goto J0x45D3;
- // End:0x6B1
- case 'F1':
- bshowhelp = !bshowhelp;
- goto J0x45D3;
- // End:0x6D7
- case 'R':
- // End:0x6D4
- if(balternativekey)
- {
- CycleRenderViewMode();
- goto J0x45D3;
- // End:0x6F2
- case 'W':
- }
- bw = true;
- goto J0x45D3;
- // End:0x70D
- case 'S':
- bs = true;
- goto J0x45D3;
- // End:0x728
- case 'A':
- ba = true;
- goto J0x45D3;
- // End:0x743
- case 'D':
- bd = true;
- goto J0x45D3;
- // End:0x75E
- case 'LeftShift':
- bdown = true;
- goto J0x45D3;
- // End:0x779
- case 'LeftAlt':
- bup = true;
- goto J0x45D3;
- // End:0x7E7
- case 'SpaceBar':
- // End:0x7E4
- if(bIsPaused && PC.WorldInfo.Pauser != none)
- {
- bIsPaused = !bIsPaused;
- goto J0x45D3;
- // End:0xAF6
- case 'Add':
- }
- // End:0xAF3
- if((CC != none) && flagcount > 2)
- {
- // End:0x882
- if((btimedpath && started) && drs.ViewTarget == CC)
- {
- CC.dif_tpstart_add = true;
- goto J0x45D3;
- CC.FOV = drs.DefaultFOV;
- }
- drs.SetFOV(drs.DefaultFOV);
- drs.SetViewTarget(CC.viewer01);
- CC.ssw = false;
- PC.bDebugFreeCam = true;
- // End:0xA9A
- if(bpathedit)
- {
- CC.viewer01.changeView(CC.Viewing, CC.Z - 1, true, false);
- // End:0xA97
- if(CC.Viewing == 0)
- {
- CC.viewer01.changeView(CC.Viewing, CC.Z - 1, true, false);
- goto J0xAF3;
- CC.updateViewer(false);
- }
- }
- drs.bBehindView = false;
- bViewingcam = true;
- bViewingdemorec = false;
- goto J0x45D3;
- J0xAF3:
- // End:0xE05
- case 'Subtract':
- }
- // End:0xE02
- if((CC != none) && flagcount > 2)
- {
- // End:0xB91
- if((btimedpath && started) && drs.ViewTarget == CC)
- {
- CC.dif_tpstart_subtract = true;
- goto J0x45D3;
- CC.FOV = drs.DefaultFOV;
- }
- drs.SetFOV(drs.DefaultFOV);
- drs.SetViewTarget(CC.viewer01);
- CC.ssw = false;
- PC.bDebugFreeCam = true;
- // End:0xDA9
- if(bpathedit)
- {
- CC.viewer01.changeView(CC.Viewing, CC.Z - 1, false, true);
- // End:0xDA6
- if(CC.Viewing == 0)
- {
- CC.viewer01.changeView(CC.Viewing, CC.Z - 1, false, true);
- goto J0xE02;
- CC.updateViewer(true);
- }
- }
- drs.bBehindView = false;
- bViewingcam = true;
- bViewingdemorec = false;
- goto J0x45D3;
- J0xE02:
- // End:0xE2B
- case 'O':
- }
- bfovmode = !bfovmode;
- goto J0x45D3;
- // End:0x12DB
- case 'Z':
- // End:0x12D8
- if(CC != none)
- {
- Z = 0;
- CC.set_Flag_Locations(drs.ViewTarget.Location, CC.Viewing);
- CC.set_Flag_Rotations(drs.ViewTarget.Rotation, CC.Viewing);
- // End:0x10F9
- foreach PC.DynamicActors(class'Knoten', kv)
- {
- // End:0xF85
- if(kv.bForC130)
- {
- continue;
- goto J0x10F9;
- CC.get_Flag_Locations(Z, V);
- }
- // End:0x10ED
- if(kv.Location != V)
- {
- CC.get_Flag_Rotations(Z, rotat);
- kv.SetLocation(V);
- kv.SetRotation(rotat);
- // End:0x10ED
- if(CC.Viewing == Z)
- {
- CC.viewer01.SetLocation(V);
- CC.viewer01.SetRotation(rotat);
- ++ Z;
- }
- }
- CC.updateSplinef(true);
- }
- J0x10F9:
- kabstand = CC.kabstand;
- mabstand = CC.mabstand;
- // End:0x12D8
- if(CC != none)
- {
- // End:0x121C
- if(PC.WorldInfo.Pauser == none)
- {
- PC.WorldInfo.Pauser = PC.PlayerReplicationInfo;
- bIsPaused = true;
- waspressed = true;
- CC.viewer01.changeView(CC.Viewing, CC.Z, false, false);
- }
- drs.SetViewTarget(CC.viewer01);
- bViewing_last_set_campoint = true;
- goto J0x45D3;
- // End:0x132B
- case 'U':
- }
- }
- drs.bCollideWorld = !drs.bCollideWorld;
- goto J0x45D3;
- // End:0x13A5
- case 'H':
- PC.myHUD.bShowHUD = !PC.myHUD.bShowHUD;
- goto J0x45D3;
- // End:0x153E
- case 'F':
- bIsPaused = !bIsPaused;
- // End:0x1447
- if(PC.PlayerReplicationInfo == none)
- {
- // End:0x1446
- foreach PC.DynamicActors(class'PlayerReplicationInfo', tpri)
- {
- PC.PlayerReplicationInfo = tpri;
- goto J0x1446;
- J0x1446:
- // End:0x14A9
- if(bIsPaused)
- {
- }
- }
- PC.WorldInfo.Pauser = PC.PlayerReplicationInfo;
- goto J0x14DE;
- PC.WorldInfo.Pauser = none;
- }
- // End:0x153B
- if(bpcam)
- {
- J0x14DE:
- // End:0x153B
- if(CC != none)
- {
- CC.bpcam = !CC.bpcam;
- goto J0x45D3;
- // End:0x15EA
- case 'one':
- }
- }
- // End:0x15AC
- if(drs.ViewTarget == CC)
- {
- CC.basic_speed2 = 0.0;
- Speed = 0.0;
- goto J0x15E7;
- // End:0x15E7
- if(drs.ViewTarget == drs)
- {
- }
- speccamspeed = 0.0;
- goto J0x45D3;
- J0x15E7:
- // End:0x1696
- case 'two':
- }
- // End:0x1658
- if(drs.ViewTarget == CC)
- {
- CC.basic_speed2 = 2.0;
- Speed = 2.0;
- goto J0x1693;
- // End:0x1693
- if(PC.ViewTarget == drs)
- {
- }
- speccamspeed = 2.0;
- goto J0x45D3;
- J0x1693:
- // End:0x1742
- case 'three':
- }
- // End:0x1704
- if(drs.ViewTarget == CC)
- {
- CC.basic_speed2 = 4.0;
- Speed = 4.0;
- goto J0x173F;
- // End:0x173F
- if(PC.ViewTarget == drs)
- {
- }
- speccamspeed = 4.0;
- goto J0x45D3;
- J0x173F:
- // End:0x17EE
- case 'four':
- }
- // End:0x17B0
- if(drs.ViewTarget == CC)
- {
- CC.basic_speed2 = 7.0;
- Speed = 7.0;
- goto J0x17EB;
- // End:0x17EB
- if(PC.ViewTarget == drs)
- {
- }
- speccamspeed = 7.0;
- goto J0x45D3;
- J0x17EB:
- // End:0x189A
- case 'five':
- }
- // End:0x185C
- if(drs.ViewTarget == CC)
- {
- CC.basic_speed2 = 12.0;
- Speed = 12.0;
- goto J0x1897;
- // End:0x1897
- if(PC.ViewTarget == drs)
- {
- }
- speccamspeed = 12.0;
- goto J0x45D3;
- J0x1897:
- // End:0x1946
- case 'six':
- }
- // End:0x1908
- if(drs.ViewTarget == CC)
- {
- CC.basic_speed2 = 18.0;
- Speed = 18.0;
- goto J0x1943;
- // End:0x1943
- if(drs.ViewTarget == drs)
- {
- }
- speccamspeed = 18.0;
- goto J0x45D3;
- J0x1943:
- // End:0x19F2
- case 'seven':
- }
- // End:0x19B4
- if(drs.ViewTarget == CC)
- {
- CC.basic_speed2 = 26.0;
- Speed = 26.0;
- goto J0x19EF;
- // End:0x19EF
- if(PC.ViewTarget == drs)
- {
- }
- speccamspeed = 26.0;
- goto J0x45D3;
- J0x19EF:
- // End:0x1A9E
- case 'eight':
- }
- // End:0x1A60
- if(drs.ViewTarget == CC)
- {
- CC.basic_speed2 = 34.0;
- Speed = 34.0;
- goto J0x1A9B;
- // End:0x1A9B
- if(PC.ViewTarget == drs)
- {
- }
- speccamspeed = 34.0;
- goto J0x45D3;
- J0x1A9B:
- // End:0x1B4A
- case 'nine':
- }
- // End:0x1B0C
- if(drs.ViewTarget == CC)
- {
- CC.basic_speed2 = 40.0;
- Speed = 40.0;
- goto J0x1B47;
- // End:0x1B47
- if(PC.ViewTarget == drs)
- {
- }
- speccamspeed = 40.0;
- goto J0x45D3;
- J0x1B47:
- // End:0x238D
- case 'MiddleMouseButton':
- }
- ballowedflag = true;
- // End:0x1D31
- if(flagcount >= 2)
- {
- // End:0x1BC1
- if(distancemeter_pos == vect(0.0, 0.0, 0.0))
- {
- CC.get_Flag_Locations(flagcount - 1, distancemeter_pos);
- tvect = distancemeter_pos;
- }
- // End:0x1D31
- if(((VSize(drs.ViewTarget.Location - tvect) / kabstand) > float(15)) || (mabstand / VSize(drs.ViewTarget.Location - tvect)) > float(15))
- {
- ballowedflag = false;
- PC.ClientMessage("RypelCam Error: desired Campointlocation too far or too near to last Campoint!");
- PC.myHUD.bShowHUD = true;
- // End:0x1E34
- if((drs.ViewTarget.Location - tvect) == vect(0.0, 0.0, 0.0))
- {
- }
- }
- ballowedflag = false;
- PC.ClientMessage("RypelCam Error: desired Campointlocation too far or too near to last Campoint!");
- PC.myHUD.bShowHUD = true;
- // End:0x238A
- if(ballowedflag)
- {
- }
- // End:0x2036
- if(flagcount >= 1)
- {
- tvect = distancemeter_pos;
- // End:0x1F06
- if(flagcount == 1)
- {
- kabstand = VSize(drs.ViewTarget.Location - tvect);
- mabstand = VSize(drs.ViewTarget.Location - tvect);
- // End:0x1F9E
- if(VSize(drs.ViewTarget.Location - tvect) < kabstand)
- {
- }
- kabstand = VSize(drs.ViewTarget.Location - tvect);
- // End:0x2036
- if(VSize(drs.ViewTarget.Location - tvect) > mabstand)
- {
- }
- mabstand = VSize(drs.ViewTarget.Location - tvect);
- PC.Spawn(class'Knoten', drs.ViewTarget.Location).FOV = drs.DefaultFOV;
- }
- }
- ++ flagcount;
- // End:0x2243
- if(CC != none)
- {
- // End:0x2187
- if(PC.WorldInfo.Pauser == none)
- {
- PC.WorldInfo.Pauser = PC.PlayerReplicationInfo;
- bIsPaused = true;
- waspressed = true;
- CC.viewer01.changeView(CC.Z, CC.Z, false, false);
- }
- drs.SetViewTarget(CC.viewer01);
- bViewing_last_set_campoint = true;
- // End:0x22ED
- if(flagcount >= 4)
- {
- }
- // End:0x22EC
- foreach PC.DynamicActors(class'Knoten', other3)
- {
- // End:0x22A7
- if(other3.bForC130)
- {
- continue;
- goto J0x22EC;
- // End:0x22EB
- if(other3.zeichner == true)
- {
- }
- other3.updateSpline();
- distancemeter_pos = drs.ViewTarget.Location;
- }
- }
- }
- J0x22EC:
- // End:0x238A
- if(flagcount == 1)
- {
- TimedPathStartTime = PC.WorldInfo.TimeSeconds;
- TimedPathStartFrame = GetCurrentFrame();
- goto J0x45D3;
- // End:0x2BE4
- case 'NumPadFive':
- }
- }
- ballowedflag = true;
- // End:0x2574
- if(flagcount >= 2)
- {
- // End:0x2404
- if(distancemeter_pos == vect(0.0, 0.0, 0.0))
- {
- CC.get_Flag_Locations(flagcount - 1, distancemeter_pos);
- tvect = distancemeter_pos;
- }
- // End:0x2574
- if(((VSize(drs.ViewTarget.Location - tvect) / kabstand) > float(15)) || (mabstand / VSize(drs.ViewTarget.Location - tvect)) > float(15))
- {
- ballowedflag = false;
- PC.ClientMessage("RypelCam Error: desired Campointlocation too far or too near to last Campoint!");
- PC.myHUD.bShowHUD = true;
- // End:0x2677
- if((drs.ViewTarget.Location - tvect) == vect(0.0, 0.0, 0.0))
- {
- }
- }
- ballowedflag = false;
- PC.ClientMessage("RypelCam Error: desired Campointlocation too far or too near to last Campoint!");
- PC.myHUD.bShowHUD = true;
- // End:0x2BE1
- if(ballowedflag)
- {
- }
- // End:0x2879
- if(flagcount >= 1)
- {
- tvect = distancemeter_pos;
- // End:0x2749
- if(flagcount == 1)
- {
- kabstand = VSize(drs.ViewTarget.Location - tvect);
- mabstand = VSize(drs.ViewTarget.Location - tvect);
- // End:0x27E1
- if(VSize(drs.ViewTarget.Location - tvect) < kabstand)
- {
- }
- kabstand = VSize(drs.ViewTarget.Location - tvect);
- // End:0x2879
- if(VSize(drs.ViewTarget.Location - tvect) > mabstand)
- {
- }
- mabstand = VSize(drs.ViewTarget.Location - tvect);
- PC.Spawn(class'Knoten', drs.ViewTarget.Location).FOV = drs.DefaultFOV;
- }
- }
- ++ flagcount;
- // End:0x2A86
- if(CC != none)
- {
- // End:0x29CA
- if(PC.WorldInfo.Pauser == none)
- {
- PC.WorldInfo.Pauser = PC.PlayerReplicationInfo;
- bIsPaused = true;
- waspressed = true;
- CC.viewer01.changeView(CC.Z, CC.Z, false, false);
- }
- drs.SetViewTarget(CC.viewer01);
- bViewing_last_set_campoint = true;
- // End:0x2B30
- if(flagcount >= 4)
- {
- }
- // End:0x2B2F
- foreach PC.DynamicActors(class'Knoten', other3)
- {
- // End:0x2AEA
- if(other3.bForC130)
- {
- continue;
- goto J0x2B2F;
- // End:0x2B2E
- if(other3.zeichner == true)
- {
- }
- other3.updateSpline();
- distancemeter_pos = drs.ViewTarget.Location;
- }
- }
- }
- J0x2B2F:
- lastFlagFrame = GetCurrentFrame();
- // End:0x2BE1
- if(flagcount == 1)
- {
- TimedPathStartTime = PC.WorldInfo.TimeSeconds;
- TimedPathStartFrame = GetCurrentFrame();
- goto J0x45D3;
- // End:0x2D50
- case 'LeftMouseButton':
- }
- }
- bViewingdemorec = true;
- bViewingcam = false;
- PC.ResetCameraMode();
- PC.bDebugFreeCam = false;
- // End:0x2C78
- if(CC != none)
- {
- CC.ssw = false;
- // End:0x2D1B
- if(!bserverdemo)
- {
- }
- PC.SetBehindView(false);
- PC.SetViewTarget(PC.Pawn);
- PC.myHUD.bShowHUD = true;
- // End:0x2D34
- if(bFollowTarget)
- {
- }
- bFollowTarget = false;
- // End:0x2D4D
- if(balternativekey)
- {
- }
- viewpreviousplayer(2);
- goto J0x45D3;
- // End:0x3350
- case 'RightMouseButton':
- }
- PC.bDebugFreeCam = true;
- PC.DebugFreeCamRot = PC.Rotation;
- // End:0x2DD3
- if(bFollowTarget)
- {
- bFollowTarget = false;
- // End:0x2E03
- if(CC != none)
- {
- }
- CC.ssw = false;
- drs.bLockRotationToViewTarget = false;
- }
- PC.myHUD.bShowHUD = false;
- PC.StopViewShaking();
- // End:0x3175
- if(drs.ViewTarget != drs)
- {
- // End:0x3002
- if((CC != none) && drs.ViewTarget == CC.viewer01)
- {
- CC.viewer01.changeView(CC.Viewing, CC.Z, false, false);
- drs.SetRotation(CC.viewer01.Rotation);
- drs.SetLocation(CC.viewer01.Location);
- goto J0x3175;
- // End:0x30AE
- if((CC != none) && drs.ViewTarget == CC)
- {
- }
- drs.SetRotation(CC.Rotation);
- drs.SetLocation(CC.Location);
- goto J0x3175;
- // End:0x3175
- if(bserverdemo && drs.ViewTarget != none)
- {
- }
- drs.bCollideWorld = false;
- drs.SetLocation(drs.ViewTarget.Location - (vector(drs.Rotation) * float(200)));
- drs.SetViewTarget(drs);
- }
- }
- J0x3175:
- PC.SetViewTarget(drs);
- bViewingcam = true;
- bViewingdemorec = false;
- drs.SetBehindView(false);
- drs.SetFOV(drs.DefaultFOV);
- PC.SetFOV(PC.DefaultFOV);
- // End:0x334D
- if(CC != none)
- {
- CC.FOV = PC.DefaultFOV;
- // End:0x334D
- if(CC.drawcount != 3)
- {
- CC.draw_Spline = true;
- CC.drawSplineWasFalse = true;
- CC.drawcount = 3;
- goto J0x45D3;
- // End:0x342F
- case 'NumPadThree':
- }
- }
- // End:0x342C
- if((CC != none) && flagcount > 2)
- {
- // End:0x33C0
- if(CC.bisdrawing)
- {
- CC.bisdrawing = false;
- CC.draw_Spline = false;
- }
- CC.drawSplineWasFalse = false;
- CC.drawcount = 0;
- startCam();
- goto J0x45D3;
- // End:0x35D4
- case 'RightControl':
- }
- PC.bBehindView = !PC.bBehindView;
- drs.bBehindView = PC.bBehindView;
- PC.SetBehindView(PC.bBehindView);
- drs.SetBehindView(PC.bBehindView);
- PC.ClientSetBehindView(PC.bBehindView);
- UTPawn(PC.ViewTarget).SetThirdPersonCamera(PC.bBehindView);
- goto J0x45D3;
- // End:0x3697
- case 'P':
- bpcam = !bpcam;
- // End:0x3646
- if(bpcam && bIsPaused)
- {
- // End:0x3643
- if(CC != none)
- {
- CC.bpcam = true;
- goto J0x3694;
- // End:0x3694
- if(!bpcam && bIsPaused)
- {
- }
- }
- // End:0x3694
- if(CC != none)
- {
- CC.bpcam = false;
- goto J0x45D3;
- J0x3694:
- // End:0x36E3
- case 'NumPadNine':
- }
- }
- // End:0x36E0
- if(CC != none)
- {
- CC.Spawn(class'drawkey');
- goto J0x45D3;
- // End:0x3709
- case 'Decimal':
- }
- bshowcoords = !bshowcoords;
- goto J0x45D3;
- // End:0x38DC
- case 'NumPadOne':
- // End:0x3763
- if(bpathedit)
- {
- CC.edit_x(CC.Viewing, true);
- goto J0x38D9;
- // End:0x3869
- if(drs.ViewTarget == CC)
- {
- }
- // End:0x3866
- if((CC.basic_speed2 - (CC.basic_speed2 / float(5))) > float(0))
- {
- CC.basic_speed2 = CC.basic_speed2 - (CC.basic_speed2 / float(5));
- Speed = CC.basic_speed2;
- goto J0x38D9;
- // End:0x38D9
- if(drs.ViewTarget == PC)
- {
- }
- }
- speccamspeed = speccamspeed - (speccamspeed / float(5));
- // End:0x38D9
- if(speccamspeed < float(0))
- {
- speccamspeed = 0.0;
- goto J0x45D3;
- J0x38D9:
- // End:0x3A43
- case 'NumPadTwo':
- }
- }
- // End:0x3936
- if(bpathedit)
- {
- CC.edit_x(CC.Viewing, false);
- goto J0x3A40;
- // End:0x39F0
- if(drs.ViewTarget == CC)
- {
- }
- CC.basic_speed2 = CC.basic_speed2 + (CC.basic_speed2 / float(5));
- Speed = CC.basic_speed2;
- goto J0x3A40;
- // End:0x3A40
- if(drs.ViewTarget == drs)
- {
- }
- speccamspeed = speccamspeed + (speccamspeed / float(5));
- goto J0x45D3;
- J0x3A40:
- // End:0x3ABB
- case 'NumPadZero':
- }
- // End:0x3AAC
- if(balternativekey)
- {
- Target = drs.ViewTarget;
- bTargetnone = false;
- // End:0x3AA9
- if(bFollowTarget)
- {
- bFollowTarget = false;
- goto J0x3AB8;
- followtarget(3);
- }
- }
- goto J0x45D3;
- J0x3AB8:
- // End:0x3BB3
- case 'Multiply':
- targetlook = !targetlook;
- PC.ClientMessage("targetlook:" @ string(targetlook));
- // End:0x3B8F
- if(!bTargetnone)
- {
- // End:0x3B6B
- if(targetlook && Target != none)
- {
- CC.enable2 = true;
- goto J0x3B8C;
- CC.enable2 = false;
- }
- goto J0x3BB0;
- J0x3B8C:
- CC.enable2 = false;
- }
- goto J0x45D3;
- J0x3BB0:
- // End:0x3C36
- case 'Pause':
- bIsPaused = !bIsPaused;
- // End:0x3C33
- if(bpcam)
- {
- // End:0x3C33
- if(CC != none)
- {
- CC.bpcam = !CC.bpcam;
- goto J0x45D3;
- // End:0x3C6C
- case 'NumPadSix':
- }
- }
- // End:0x3C5D
- if(balternativekey)
- {
- followtarget(1);
- goto J0x3C69;
- followtarget(2);
- }
- goto J0x45D3;
- J0x3C69:
- // End:0x3DEE
- case 'NumPadSeven':
- // End:0x3DEB
- if(CC != none)
- {
- // End:0x3D64
- if(bfovmode)
- {
- // End:0x3CFA
- if(CC.fovplus)
- {
- CC.fovplus = false;
- CC.updateSplinef(true);
- goto J0x3D1B;
- CC.fovplus = true;
- }
- CC.get_Flag_Fovs(CC.Viewing, TF);
- J0x3D1B:
- goto J0x3DEB;
- // End:0x3DCA
- if(CC.rollplus)
- {
- }
- CC.rollplus = false;
- CC.updateSplinef(true);
- goto J0x3DEB;
- CC.rollplus = true;
- }
- goto J0x45D3;
- J0x3DEB:
- // End:0x3F2A
- case 'NumPadEight':
- }
- // End:0x3F27
- if(CC != none)
- {
- // End:0x3EA0
- if(bfovmode)
- {
- // End:0x3E7C
- if(CC.fovminus)
- {
- CC.fovminus = false;
- CC.updateSplinef(true);
- goto J0x3E9D;
- CC.fovminus = true;
- }
- goto J0x3F27;
- J0x3E9D:
- // End:0x3F06
- if(CC.rollminus)
- {
- }
- CC.rollminus = false;
- CC.updateSplinef(true);
- goto J0x3F27;
- CC.rollminus = true;
- }
- goto J0x45D3;
- J0x3F27:
- // End:0x4106
- case 'I':
- }
- bhideweapon = !bhideweapon;
- // End:0x4103
- if(((UTPawn(PC.ViewTarget) != none) && UTPawn(PC.ViewTarget).Weapon != none) && UTPawn(PC.ViewTarget).DrivenVehicle == none)
- {
- // End:0x40B0
- if(UTPawn(PC.ViewTarget).Weapon.bHidden == false)
- {
- UTPawn(drs.ViewTarget).Weapon.SetHidden(true);
- goto J0x4103;
- UTPawn(drs.ViewTarget).Weapon.SetHidden(false);
- }
- goto J0x45D3;
- J0x4103:
- // End:0x45D0
- case 'NumPadFour':
- }
- // End:0x412C
- if(flagcount > 0)
- {
- -- flagcount;
- Z = 0;
- }
- // End:0x4197
- foreach PC.DynamicActors(class'Knoten', other3)
- {
- // End:0x418B
- if(other3.bForC130)
- {
- continue;
- goto J0x4197;
- ++ Z;
- }
- I = 1;
- }
- J0x4197:
- // End:0x41D9
- if(Z == 4)
- {
- CC.Destroy();
- CC = none;
- goto J0x4249;
- // End:0x4249
- if(Z > 4)
- {
- }
- CC.SetTimer(0.0, false);
- CC.Z = CC.Z - 1;
- // End:0x4303
- foreach PC.DynamicActors(class'Knoten', other3)
- {
- }
- J0x4249:
- // End:0x429D
- if(other3.bForC130)
- {
- continue;
- goto J0x4303;
- // End:0x42CF
- if(I == Z)
- {
- }
- other3.Destroy();
- goto J0x42F7;
- distancemeter_pos = other3.Location;
- }
- ++ I;
- J0x42F7:
- J0x4303:
- // End:0x4387
- if(Z > 4)
- {
- }
- CC.updateSplinef(true);
- kabstand = CC.kabstand;
- mabstand = CC.mabstand;
- goto J0x45CD;
- // End:0x43FC
- foreach PC.DynamicActors(class'RotKnoten', rk2)
- {
- }
- // End:0x43DB
- if(rk2.bForC130)
- {
- continue;
- goto J0x43FC;
- rk2.SetHidden(true);
- }
- tvect = vect(0.0, 0.0, 0.0);
- }
- J0x43FC:
- kabstand = 0.0;
- mabstand = 0.0;
- // End:0x45CC
- foreach PC.DynamicActors(class'Knoten', other3)
- {
- // End:0x4486
- if(other3.bForC130)
- {
- continue;
- goto J0x45CC;
- // End:0x45A3
- if(tvect != vect(0.0, 0.0, 0.0))
- {
- }
- // End:0x4522
- if((VSize(other3.Location - tvect) < kabstand) || kabstand == float(0))
- {
- kabstand = VSize(other3.Location - tvect);
- // End:0x45A3
- if((VSize(other3.Location - tvect) > mabstand) || mabstand == float(0))
- {
- }
- mabstand = VSize(other3.Location - tvect);
- tvect = other3.Location;
- }
- }
- J0x45CC:
- goto J0x45D3;
- }
- J0x45CD:
- // End:0xFFFF
- default:
- // End:0x4989
- break;
- }
- // End:0x4989
- if(Event == 1)
- {
- }
- switch(Key)
- {
- // End:0x4618
- case 'W':
- bw = false;
- // End:0x4989
- break;
- // End:0x4633
- case 'S':
- bs = false;
- goto J0x4989;
- // End:0x464E
- case 'A':
- ba = false;
- goto J0x4989;
- // End:0x4669
- case 'D':
- bd = false;
- goto J0x4989;
- // End:0x4684
- case 'LeftShift':
- bdown = false;
- goto J0x4989;
- // End:0x469F
- case 'LeftAlt':
- bup = false;
- goto J0x4989;
- // End:0x46BA
- case 'X':
- balternativekey = false;
- goto J0x4989;
- // End:0x472C
- case 'Add':
- // End:0x472C
- if((CC != none) && flagcount > 2)
- {
- CC.dif_tpstart_temp = 0.0;
- CC.dif_tpstart_add = false;
- // End:0x479E
- case 'Subtract':
- }
- // End:0x479E
- if((CC != none) && flagcount > 2)
- {
- CC.dif_tpstart_temp = 0.0;
- CC.dif_tpstart_subtract = false;
- // End:0x4892
- case 'NumPadSeven':
- }
- // End:0x488F
- if(CC != none)
- {
- // End:0x482C
- if(bfovmode)
- {
- // End:0x4829
- if(CC.fovplus)
- {
- CC.fovplus = false;
- CC.updateSplinef(true);
- goto J0x488F;
- // End:0x488F
- if(CC.rollplus)
- {
- }
- }
- CC.rollplus = false;
- CC.updateSplinef(true);
- goto J0x4989;
- J0x488F:
- // End:0x4986
- case 'NumPadEight':
- }
- }
- // End:0x4983
- if(CC != none)
- {
- // End:0x4920
- if(bfovmode)
- {
- // End:0x491D
- if(CC.fovminus)
- {
- CC.fovminus = false;
- CC.updateSplinef(true);
- goto J0x4983;
- // End:0x4983
- if(CC.rollminus)
- {
- }
- }
- CC.rollminus = false;
- CC.updateSplinef(true);
- goto J0x4989;
- J0x4983:
- // End:0xFFFF
- default:
- }
- }
- return false;
- //return ReturnValue;
- }
- }
- function NotifyworldinfoChange()
- {
- PC.Interactions[0] = none;
- PC = none;
- CC.Destroy();
- //return;
- }
- function Rotator BlendView(Rotator Rot)
- {
- local int Count;
- local float adiff;
- local Rotator mean;
- // End:0x1C9
- if(LockViewOldRotations[0] != rot(0, 0, 0))
- {
- I = 10;
- J0x29:
- // End:0x70 [Loop If]
- if(I > 1)
- {
- LockViewOldRotations[I] = LockViewOldRotations[I - 1];
- -- I;
- // [Loop Continue]
- goto J0x29;
- }
- LockViewOldRotations[1] = Rot;
- I = 9;
- J0x91:
- // End:0x151 [Loop If]
- if(I >= 1)
- {
- LockViewOldRotations[I + 1] = LockViewOldRotations[I];
- adiff = RDiff(LockViewOldRotations[0], LockViewOldRotations[I]);
- // End:0x143
- if(adiff < float(40))
- {
- Count += 1;
- mean += Normalize(LockViewOldRotations[I]);
- }
- -- I;
- // [Loop Continue]
- goto J0x91;
- }
- // End:0x1A3
- if(Count > 0)
- {
- mean = Normalize(mean / float(Count));
- LockViewOldRotations[0] = mean;
- }
- // End:0x1BA
- else
- {
- LockViewOldRotations[0] = LockViewOldRotations[1];
- }
- return LockViewOldRotations[0];
- }
- // End:0x1E8
- else
- {
- LockViewOldRotations[0] = Rot;
- return Rot;
- }
- //return ReturnValue;
- }
- event Tick(float DeltaTime)
- {
- local Rotator _rot;
- // End:0x352
- if(bLockRotation)
- {
- // End:0xFE
- if(Vehicle(PC.ViewTarget) != none)
- {
- _rot = Vehicle(PC.ViewTarget).GetViewRotation();
- _rot.Roll = 0;
- // End:0xDA
- if(bBlendRotation)
- {
- drs.SetRotation(BlendView(_rot));
- }
- // End:0xFB
- else
- {
- drs.SetRotation(_rot);
- }
- }
- // End:0x352
- else
- {
- // End:0x164
- if(UTPawn(PC.ViewTarget) != none)
- {
- drs.SetRotation(PC.BlendedTargetViewRotation);
- }
- // End:0x352
- else
- {
- // End:0x255
- if(Pawn(PC.ViewTarget) != none)
- {
- _rot = Pawn(PC.ViewTarget).GetViewRotation();
- _rot.Roll = 0;
- // End:0x231
- if(bBlendRotation)
- {
- drs.SetRotation(BlendView(_rot));
- }
- // End:0x252
- else
- {
- drs.SetRotation(_rot);
- }
- }
- // End:0x352
- else
- {
- // End:0x29B
- if(HackLockedSavedActor != none)
- {
- drs.SetViewTarget(HackLockedSavedActor);
- HackLockedSavedActor = none;
- }
- // End:0x352
- else
- {
- _rot = PC.ViewTarget.Rotation;
- _rot.Roll = 0;
- // End:0x331
- if(bBlendRotation)
- {
- drs.SetRotation(BlendView(_rot));
- }
- // End:0x352
- else
- {
- drs.SetRotation(_rot);
- }
- }
- }
- }
- }
- }
- // End:0x4C1
- if(bhideweapon)
- {
- // End:0x4C1
- if((((UTPawn(PC.ViewTarget) != none) && UTPawn(PC.ViewTarget).Weapon != none) && UTPawn(PC.ViewTarget).DrivenVehicle == none) && UTPawn(PC.ViewTarget).Weapon.bHidden == false)
- {
- UTPawn(PC.ViewTarget).Weapon.SetHidden(true);
- }
- }
- // End:0x5C8
- if(seektime != 0)
- {
- // End:0x5C8
- if(PC.WorldInfo.GRI.RemainingTime <= seektime)
- {
- PC.WorldInfo.Pauser = PC.PlayerReplicationInfo;
- PC.WorldInfo.DemoPlayTimeDilation = 1.0;
- bIsPaused = true;
- seektime = 0;
- }
- }
- // End:0x693
- if((seekFrame != 0) && (GetCurrentFrame()) >= seekFrame)
- {
- PC.WorldInfo.Pauser = PC.PlayerReplicationInfo;
- PC.WorldInfo.DemoPlayTimeDilation = 1.0;
- bIsPaused = true;
- seekFrame = 0;
- }
- // End:0x6BD
- if(!bserverdemo && CC == none)
- {
- reset_clientdemo_rotation_roll();
- }
- // End:0x99F
- if(CC != none)
- {
- // End:0x768
- if(btpfastforward == true)
- {
- // End:0x768
- if(PC.WorldInfo.TimeSeconds >= (TimedPathStartTime - float(2)))
- {
- PC.WorldInfo.DemoPlayTimeDilation = 1.0;
- btpfastforward = false;
- }
- }
- // End:0x99F
- if(((PC.WorldInfo.DemoPlayTimeDilation == 1.0) && btimedpath) && !started)
- {
- // End:0x99F
- if((GetCurrentFrame()) >= TimedPathStartFrame)
- {
- bIsPaused = true;
- // End:0x868
- if(PC.PlayerReplicationInfo == none)
- {
- // End:0x867
- foreach PC.DynamicActors(class'PlayerReplicationInfo', tpri)
- {
- PC.PlayerReplicationInfo = tpri;
- // End:0x867
- break;
- }
- }
- PC.WorldInfo.Pauser = PC.PlayerReplicationInfo;
- seektime = 0;
- seekFrame = 0;
- CC.timesangleichen();
- CC.inittimespline();
- startCam();
- started = true;
- CC.draw_Spline = false;
- CC.drawSplineWasFalse = false;
- CC.drawcount = 0;
- // End:0x99F
- if(bShowHudInfo)
- {
- bShowHudInfo = false;
- }
- }
- }
- }
- //return;
- }
- event PostRender(Canvas Canvas)
- {
- local Vector2D TextSize;
- local string TimeLeft, viewing_mode_name;
- local float Scale;
- local int CurrentFrame, TotalFrames;
- // End:0x37E8
- if(bShowHudInfo)
- {
- // End:0x6E
- if(Canvas.ClipY > float(0))
- {
- Scale = (0.80 * float(720)) / Canvas.ClipY;
- }
- // End:0x7D
- else
- {
- Scale = 0.80;
- }
- Canvas.SetDrawColor(255, 255, 0);
- Canvas.Font = class'Engine'.static.GetTinyFont();
- Canvas.SetPos(30.0, 70.0);
- Canvas.SetPos(30.0, 85.0);
- // End:0x192
- if(!H.bMessageBeep)
- {
- Canvas.DrawText("Message beep removed");
- }
- Canvas.SetPos(30.0, 100.0);
- // End:0x200
- if(bpathedit)
- {
- Canvas.DrawText("Path edit: enabled");
- }
- Canvas.SetPos(30.0, 115.0);
- // End:0x28A
- if(balternativekey)
- {
- Canvas.DrawText("'X' pressed: alternative key functions enabled");
- }
- Canvas.SetDrawColor(0, 255, 0);
- Canvas.Font = class'Engine'.static.GetMediumFont();
- Canvas.SetPos(40.0, 285.0);
- Canvas.DrawText("RypelCam 3.13", Scale * 1.250, Scale * 1.250);
- Canvas.Font = class'Engine'.static.GetTinyFont();
- Canvas.SetPos(55.0, 305.0);
- PC.WorldInfo.GetDemoFrameInfo(CurrentFrame, TotalFrames);
- Canvas.Font = class'Engine'.static.GetLargeFont();
- Canvas.DrawText(((("Hide Info: M Help: F1" $ ", Frame: ") $ string(CurrentFrame)) $ "TotalFrames: ") $ string(TotalFrames));
- Canvas.SetPos(20.0, 324.0);
- Canvas.Font = class'Engine'.static.GetMediumFont();
- Canvas.DrawText("Playback speed:", Scale, Scale);
- Canvas.SetPos(140.0, 324.0);
- SetDemoSpeedColor();
- Canvas.SetDrawColor(DemoSpeedColor.R, DemoSpeedColor.G, DemoSpeedColor.B);
- Canvas.DrawText(string(PC.WorldInfo.DemoPlayTimeDilation), Scale, Scale);
- // End:0x723
- if(PC.WorldInfo.DemoPlayTimeDilation < float(1))
- {
- CustomDrawGraph(25.0, 340.0, PC.WorldInfo.DemoPlayTimeDilation * float(150), 150.0, 8.0, Canvas, 180);
- }
- // End:0x751
- else
- {
- CustomDrawGraph(25.0, 340.0, 150.0, 150.0, 8.0, Canvas, 180);
- }
- Canvas.SetDrawColor(0, 255, 0, 255);
- // End:0x887
- if(Pawn(PC.ViewTarget) != none)
- {
- // End:0x86B
- if(Pawn(PC.ViewTarget).PlayerReplicationInfo != none)
- {
- Canvas.SetDrawColor(255, 255, 255);
- viewing_mode_name = Pawn(PC.ViewTarget).PlayerReplicationInfo.PlayerName;
- }
- // End:0x884
- else
- {
- viewing_mode_name = "not available";
- }
- }
- // End:0xB54
- else
- {
- // End:0x9D1
- if((CC != none) && CC.ssw)
- {
- // End:0x907
- if(btimedpath || CC.pathlenght == float(0))
- {
- viewing_mode_name = "rcam mode";
- }
- // End:0x9CE
- else
- {
- // End:0x9B2
- if(CC.Dist < CC.pathlenght)
- {
- viewing_mode_name = ("rcam mode (" $ string(int((CC.Dist / CC.pathlenght) * float(100)))) $ "%)";
- }
- // End:0x9CE
- else
- {
- viewing_mode_name = "rcam mode (100%)";
- }
- }
- }
- // End:0xB54
- else
- {
- // End:0xA2B
- if(bFollowTarget && Target != none)
- {
- Canvas.SetDrawColor(255, 255, 255);
- viewing_mode_name = watchedname;
- }
- // End:0xB54
- else
- {
- // End:0xA73
- if(PC.ViewTarget == drs)
- {
- viewing_mode_name = "free cam mode";
- }
- // End:0xB54
- else
- {
- // End:0xB14
- if((CC != none) && PC.ViewTarget == CC.viewer01)
- {
- viewing_mode_name = (("cam point" @ string(CC.Viewing + 1)) $ "/") $ string(flagcount);
- }
- // End:0xB54
- else
- {
- Canvas.SetDrawColor(0, 255, 0, 60);
- viewing_mode_name = "Demorec Spec.";
- }
- }
- }
- }
- }
- Canvas.Font = class'Engine'.static.GetMediumFont();
- // End:0xDA5
- if(viewing_mode_name != "")
- {
- Canvas.SetPos(15.0, 355.0);
- Canvas.TextSize(viewing_mode_name, TextSize.X, TextSize.Y);
- // End:0xD10
- if(TextSize.X > (float(140) / Scale))
- {
- Canvas.SetPos(50.0, 360.0);
- Canvas.DrawText(viewing_mode_name, (Scale * float(140)) / TextSize.X, (140.0 / Scale) * TextSize.X);
- }
- // End:0xDA5
- else
- {
- Canvas.SetPos(105.0 - ((TextSize.X / float(2)) * Scale), 360.0);
- Canvas.DrawText(viewing_mode_name, Scale, Scale);
- }
- }
- Canvas.SetPos(60.0, 382.0);
- Canvas.SetPos(70.0, 390.0);
- Canvas.SetDrawColor(240, 240, 240);
- Canvas.Font = class'Engine'.static.GetLargeFont();
- TimeLeft = FormatTime_likeUT(((PC.WorldInfo.GRI.TimeLimit != 0) ? PC.WorldInfo.GRI.RemainingTime : PC.WorldInfo.GRI.ElapsedTime));
- Canvas.DrawText(TimeLeft, Scale * 1.250, Scale * 1.250);
- Canvas.SetPos(25.0, 430.0);
- Canvas.SetDrawColor(0, 255, 0);
- Canvas.Font = class'Engine'.static.GetMediumFont();
- // End:0x1C1E
- if(CC != none)
- {
- // End:0x1234
- if(CC.FOV > float(0))
- {
- // End:0x11EC
- if(btimedpath)
- {
- // End:0x114C
- if(PC.WorldInfo.TimeSeconds < TimedPathStartTime)
- {
- Canvas.DrawText("Timedpath: enabled, start: -" $ (FormatTime_likeUT(int(TimedPathStartTime - PC.WorldInfo.TimeSeconds))), Scale, Scale);
- }
- // End:0x11E9
- else
- {
- Canvas.DrawText("Timedpath: enabled, start: +" $ (FormatTime_likeUT(int(TimedPathStartTime - PC.WorldInfo.TimeSeconds))), Scale, Scale);
- }
- }
- // End:0x1234
- else
- {
- Canvas.DrawText("Timedpath: disabled", Scale, Scale);
- }
- }
- // End:0x1592
- if(PC.ViewTarget == CC.viewer01)
- {
- Canvas.DrawText(((("Viewing cam point" @ string(CC.Viewing + 1)) $ "/") $ string(flagcount)) $ ":", Scale, Scale);
- // End:0x144B
- if(bfovmode)
- {
- Canvas.DrawText(" FOV:" @ string(CC.FOV), Scale, Scale);
- Canvas.SetDrawColor(0, 255, 0, 90);
- Canvas.DrawText(" Roll:" @ string((360.0 * float(PC.ViewTarget.Rotation.Roll)) / float(65536)), Scale, Scale);
- Canvas.SetDrawColor(0, 255, 0);
- }
- // End:0x158F
- else
- {
- Canvas.SetDrawColor(0, 255, 0, 90);
- Canvas.DrawText(" FOV:" @ string(CC.FOV), Scale, Scale);
- Canvas.SetDrawColor(0, 255, 0);
- Canvas.DrawText(" Roll:" @ string((360.0 * float(PC.ViewTarget.Rotation.Roll)) / float(65536)), Scale, Scale);
- }
- }
- // End:0x15E0
- else
- {
- Canvas.DrawText("Cam points: " @ string(flagcount), Scale, Scale);
- }
- // End:0x1C1E
- if(((((CC != none) && !CC.ssw) && PC.ViewTarget == drs) && !bFollowTarget) && CC.pathlenght != float(0))
- {
- // End:0x1757
- if(VSize(PC.ViewTarget.Location) == VSize(distancemeter_pos))
- {
- Canvas.SetDrawColor(204, 51, 51, 222);
- Canvas.DrawText("range: too close", Scale, Scale);
- Canvas.SetDrawColor(0, 255, 0, 255);
- }
- // End:0x1C1E
- else
- {
- // End:0x198F
- if(VSize(PC.ViewTarget.Location - distancemeter_pos) < (CC.pathlenght / float(CC.Z)))
- {
- // End:0x18C6
- if((mabstand / VSize(PC.ViewTarget.Location - distancemeter_pos)) > float(15))
- {
- Canvas.SetDrawColor(204, 51, 51, 222);
- Canvas.DrawText("range: too close", Scale, Scale);
- Canvas.SetDrawColor(0, 255, 0, 255);
- }
- // End:0x198C
- else
- {
- Canvas.DrawText("range: " $ string(VSize(PC.ViewTarget.Location - distancemeter_pos) / float(int(CC.pathlenght / float(CC.Z)))), Scale, Scale);
- }
- }
- // End:0x1C1E
- else
- {
- // End:0x1C1E
- if(VSize(PC.ViewTarget.Location - distancemeter_pos) > (CC.pathlenght / float(CC.Z)))
- {
- // End:0x1B00
- if((VSize(PC.ViewTarget.Location - distancemeter_pos) / kabstand) > float(15))
- {
- Canvas.SetDrawColor(204, 51, 51, 222);
- Canvas.DrawText("range: too distant", Scale, Scale);
- Canvas.SetDrawColor(0, 255, 0, 255);
- }
- // End:0x1C1E
- else
- {
- Canvas.DrawText("range: " $ string(float(1) - (float(int(VSize(PC.ViewTarget.Location - distancemeter_pos) - (CC.pathlenght / float(CC.Z)))) / ((float(15) * kabstand) - (CC.pathlenght / float(CC.Z))))), Scale, Scale);
- }
- }
- }
- }
- }
- }
- // End:0x1CBB
- if(distancemeter_pos != vect(0.0, 0.0, 0.0))
- {
- Canvas.DrawText("posdiff: " $ string(VSize(PC.ViewTarget.Location - distancemeter_pos)), Scale, Scale);
- }
- // End:0x1D23
- if(lastFlagFrame > 0)
- {
- Canvas.DrawText("framediff: " $ string((GetCurrentFrame()) - lastFlagFrame), Scale, Scale);
- }
- // End:0x2124
- if(bshowcoords)
- {
- Canvas.SetDrawColor(0, 255, 0, 255);
- Canvas.Font = class'Engine'.static.GetMediumFont();
- Canvas.DrawText("Spectator Coordinates", Scale, Scale);
- Canvas.DrawText("X =" @ string(drs.ViewTarget.Location.X), Scale, Scale);
- Canvas.DrawText("Y =" @ string(drs.ViewTarget.Location.Y), Scale, Scale);
- Canvas.DrawText("Z =" @ string(drs.ViewTarget.Location.Z), Scale, Scale);
- Canvas.DrawText("Yaw =" @ string((float(drs.ViewTarget.Rotation.Yaw) / 65536.0) * 360.0), Scale, Scale);
- Canvas.DrawText("Pitch =" @ string((float(drs.ViewTarget.Rotation.Pitch) / 65536.0) * 360.0), Scale, Scale);
- Canvas.DrawText("Roll =" @ string((float(PC.ViewTarget.Rotation.Roll) / 65536.0) * 360.0), Scale, Scale);
- }
- // End:0x37E8
- if(bshowhelp && !H.bShowScores)
- {
- Canvas.SetDrawColor(255, 255, 0, 200);
- Canvas.Font = class'Engine'.static.GetSmallFont();
- Canvas.SetPos(305.0, 60.0);
- Canvas.DrawText("Console Commands");
- Canvas.DrawText("Console Commands");
- Canvas.SetPos(305.0, 90.0);
- Canvas.DrawText("[hit]");
- Canvas.DrawText("[beep]");
- Canvas.DrawText("[Mouse x]");
- Canvas.DrawText("[seekTo x y z]");
- Canvas.DrawText("[startpaused]");
- Canvas.DrawText("[tpstart]");
- Canvas.DrawText("[dumpfps]");
- Canvas.DrawText("[dumpres]");
- Canvas.SetPos(405.0, 90.0);
- Canvas.DrawText("Remove red hit damage effects");
- Canvas.DrawText("Mute console message sound");
- Canvas.DrawText("Set mouse sensitivity to X");
- Canvas.DrawText("Fast forward until X minutes and Y seconds are reached, at z speed. (seekTo 12 30 4)");
- Canvas.DrawText("Start demos paused");
- Canvas.DrawText("Load a timed path scene. ");
- Canvas.DrawText(("Frames per second for dumpframes (currently: 'dumpfps " $ string(dumpframes_fps)) $ "')");
- Canvas.DrawText(("Tiledshot (combine multiple screenshots) for dumpframes (currently: 'dumpres " $ string(dumpframes_tiledshot_factor)) $ "')");
- Canvas.SetPos(305.0, 250.0);
- Canvas.DrawText("Key Setup");
- Canvas.SetPos(305.0, 270.0);
- Canvas.DrawText("[M]");
- Canvas.DrawText("[H]");
- Canvas.DrawText("[F1]");
- Canvas.DrawText("[F2]");
- Canvas.DrawText("[F3]");
- Canvas.DrawText("[F4]");
- Canvas.DrawText("[F5]");
- Canvas.DrawText("[F7]");
- Canvas.DrawText("[W], [A], [S], [D]");
- Canvas.DrawText("[Spacebar], [C], [Shift], [Alt]");
- Canvas.DrawText("[Left Mousebutton]");
- Canvas.DrawText("[Right Mousebutton]");
- Canvas.DrawText("[Right Control]");
- Canvas.DrawText("[L]");
- Canvas.DrawText("[left], [right], [Mouse Scrollwheel]");
- Canvas.DrawText("[up]");
- Canvas.DrawText("[down], [F]");
- Canvas.DrawText("[P]");
- Canvas.DrawText("[1-9keys]");
- Canvas.DrawText("[numpad 0]");
- Canvas.DrawText("[numpad 0]+[X]");
- Canvas.DrawText("[numpad 1], [numpad 2]");
- Canvas.DrawText("[numpad 3]");
- Canvas.DrawText("[numpad 4]");
- Canvas.DrawText("[numpad 5], [Middle Mousebutton]");
- Canvas.DrawText("[numpad 6]");
- Canvas.DrawText("[numpad 7], [numpad 8]");
- Canvas.DrawText("[numpad 9]");
- Canvas.DrawText("[numpad +], [numpad -]");
- Canvas.DrawText("[numpad multiply]");
- Canvas.DrawText("[numpad decimal]");
- Canvas.DrawText("[I]");
- Canvas.DrawText("[U]");
- Canvas.DrawText("[Z]");
- Canvas.DrawText("[o]");
- Canvas.DrawText("[J]");
- Canvas.DrawText("[X]+[R]");
- Canvas.SetPos(405.0, 270.0);
- Canvas.DrawText("Show RCam HUD");
- Canvas.DrawText("Show UT3 HUD");
- Canvas.DrawText("Help");
- Canvas.DrawText("Dumpframes");
- Canvas.DrawText(("Path Edit mode (" $ string(bpathedit)) $ ")");
- Canvas.DrawText("Save Camera Path");
- Canvas.DrawText("Load Camera Path");
- Canvas.DrawText(("Toggle MovieMode (" $ string(bFirstPersonMovieMode)) $ ")");
- Canvas.DrawText("Movement");
- Canvas.DrawText("Altitude");
- Canvas.DrawText("Spectate Player");
- Canvas.DrawText("Free camera");
- Canvas.DrawText("1st person view / behindview");
- Canvas.DrawText("Lock behindview rotation");
- Canvas.DrawText(("Demo playback speed (" $ string(PC.WorldInfo.DemoPlayTimeDilation)) $ ")");
- Canvas.DrawText("Reset demo playback speed");
- Canvas.DrawText(("Pause Demo (" $ string(bIsPaused)) $ ")");
- Canvas.DrawText(("Pause affects RCam (" $ string(bpcam)) $ ")");
- Canvas.DrawText("Camera speed presets");
- Canvas.DrawText("Follow target with relative camera");
- Canvas.DrawText("Viewtarget becomes camera target (targetlook)");
- Canvas.DrawText("Smoothly change camera speed / bend path (Path Edit))");
- Canvas.DrawText("Start RCam camera");
- Canvas.DrawText("Delete final cam point");
- Canvas.DrawText("Set cam points");
- Canvas.DrawText("Follow projectiles");
- Canvas.DrawText("Edit Roll/FOV");
- Canvas.DrawText("Show/hide camera path");
- Canvas.DrawText("Select cam points / during a timed path scene: synchronize camera");
- Canvas.DrawText("Toggle targetlook");
- Canvas.DrawText("Show Spectator Coordinates");
- Canvas.DrawText("Show weapon in 1st person view");
- Canvas.DrawText(("Fly through obstacles (" $ string(!drs.bCollideWorld)) $ ")");
- Canvas.DrawText("Reposition a selected cam point to the free camera location");
- Canvas.DrawText("Cycle render mode presets");
- // End:0x3775
- if(bfovmode)
- {
- Canvas.DrawText("Toggle Roll/FOV mode (FOV)");
- }
- // End:0x37B5
- else
- {
- Canvas.DrawText("Toggle Roll/FOV mode (Roll)");
- }
- Canvas.DrawText("Timedpath mode");
- }
- }
- // End:0x3851
- if(bGetCanvasResolution)
- {
- CanvasClipX = Canvas.ClipX;
- CanvasClipY = Canvas.ClipY;
- bGetCanvasResolution = false;
- }
- //return;
- }
- function int GetCurrentFrame()
- {
- local int CurrentFrame;
- PC.WorldInfo.GetDemoFrameInfo(CurrentFrame);
- return CurrentFrame;
- //return ReturnValue;
- }
- defaultproperties
- {
- bBlendRotation=true
- bShowHudInfo=true
- specfollowdistance=100.0
- KeyFrame_Count=-1.0
- GrayColor=(R=160,G=160,B=160,A=192)
- AltHudTexture=Texture2D'UI_HUD.HUD.UI_HUD_BaseA'
- OnReceivedNativeInputKey=InputKey
- OnReceivedNativeInputAxis=InputAxis
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement