Beispiel #1
0
        public void SetSettings(ActionCameraConfig settings)
        {
            pluginSettings = settings;
            player.SetOffsets(settings.forwardHorizontalOffset, settings.forwardVerticalOffset, settings.forwardDistance);

            OverShoulderCamera.SetPluginSettings(settings);
            FPSCamera.SetPluginSettings(settings);
            FullBodyActionCamera.SetPluginSettings(settings);
            TacticalCamera.SetPluginSettings(settings);
        }
Beispiel #2
0
        public ActionCameraDirector(ActionCameraConfig pluginSettings, PluginCameraHelper helper, ref TimerHelper timerHelper)
        {
            this.player         = new LivPlayerEntity(helper, ref timerHelper);
            this.timerHelper    = timerHelper;
            this.cameraHelper   = helper;
            this.pluginSettings = pluginSettings;

            randomizer = new System.Random();
            player.SetOffsets(pluginSettings.forwardHorizontalOffset, pluginSettings.forwardVerticalOffset, pluginSettings.forwardDistance);

            OverShoulderCamera   = new ShoulderActionCamera(pluginSettings);
            FullBodyActionCamera = new FullBodyActionCamera(pluginSettings);
            FPSCamera            = new FPSCamera(pluginSettings, 0.2f);
            TacticalCamera       = new TopDownActionCamera(pluginSettings, 0.6f, 6f);

            SetCamera(OverShoulderCamera);
        }