public SystemCamStudio(ClientMain game) : base(game) { _game = game; _capi = (ICoreClientAPI)game.Api; InitModel(); _platform = game.GetField <ClientPlatformAbstract>("Platform"); _capi.UnregisterCommand("cam"); _capi.RegisterCommand("cam", "Cinematic Camera Studio", "", CmdCam); var eventManager = game.GetField <ClientEventManager>("eventManager"); eventManager.CallMethod("RegisterRenderer", new DummyRenderer { action = OnRenderFrame3D }, EnumRenderStage.Opaque, "cinecam", 0.7f); eventManager.CallMethod("RegisterRenderer", new DummyRenderer { action = OnFinalizeFrame }, EnumRenderStage.Done, "cinecam-done", 0.98f); }