From 17dcdd88a14abdb28596a5bcf3c24fcd2903b29c Mon Sep 17 00:00:00 2001 From: dexy Date: Tue, 26 Nov 2019 13:14:46 +1100 Subject: [PATCH] Cutscene viewer ped variations --- World/CutsceneForm.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/World/CutsceneForm.cs b/World/CutsceneForm.cs index 39a8e86..ad9321b 100644 --- a/World/CutsceneForm.cs +++ b/World/CutsceneForm.cs @@ -880,6 +880,23 @@ namespace CodeWalker.World if (oe == null) { return; } + + CutsceneObject cso = null; + SceneObjects.TryGetValue(oe.iObjectId, out cso); + + if (cso?.Ped != null) + { + int comp = args.iComponent; + int drbl = args.iDrawable; + int texx = args.iTexture; + + Task.Run(() => + { + cso.Ped.SetComponentDrawable(comp, drbl, 0, texx, GameFileCache); + }); + } + + } private void CameraCut(CutEvent e) {