From 9738a6a5253d81d4d074cb3699546a073848ff45 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sat, 11 Feb 2023 22:38:23 -0800 Subject: [PATCH] prop_dynamic/static: support for 'sequence' key --- src/gs-entbase/client/prop_static.qc | 4 ++++ src/gs-entbase/server/prop_dynamic.qc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/gs-entbase/client/prop_static.qc b/src/gs-entbase/client/prop_static.qc index c98f90dd..9adeae06 100644 --- a/src/gs-entbase/client/prop_static.qc +++ b/src/gs-entbase/client/prop_static.qc @@ -33,6 +33,10 @@ void prop_static::SpawnKey(string strKey, string strValue) { switch (strKey) { + case "frame": + case "sequence": + frame = stof(strValue); + break; case "modelscale": scale = stof(strValue); break; diff --git a/src/gs-entbase/server/prop_dynamic.qc b/src/gs-entbase/server/prop_dynamic.qc index 01c4f1bc..3745392c 100644 --- a/src/gs-entbase/server/prop_dynamic.qc +++ b/src/gs-entbase/server/prop_dynamic.qc @@ -53,6 +53,10 @@ void prop_dynamic::SpawnKey(string strKey, string strValue) { switch (strKey) { + case "frame": + case "sequence": + frame = stof(strValue); + break; case "solid": float s = stof(strValue);