From 5ce3402f8e80a4de670c7a46fcfe2b580e61f1b5 Mon Sep 17 00:00:00 2001 From: D-AIRY <admin@ds-servers.com> Date: Sun, 23 Jun 2019 23:17:45 +0300 Subject: [PATCH] Option to use trimesh or convex for prop_static --- source/game/PropStatic.cpp | 6 ++++++ source/game/PropStatic.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/source/game/PropStatic.cpp b/source/game/PropStatic.cpp index 77f9b234f..5317ded5b 100644 --- a/source/game/PropStatic.cpp +++ b/source/game/PropStatic.cpp @@ -13,6 +13,12 @@ See the license in LICENSE BEGIN_PROPTABLE(CPropStatic) //! Масштаб модели DEFINE_FIELD_FLOATFN(m_fScale, 0, "scale", "Scale", onSetScale, EDITOR_TEXTFIELD) + + + DEFINE_FIELD_BOOL(m_useTrimeshPhysics, 0, "use_trimesh", "Use trimesh physics", EDITOR_COMBOBOX) + COMBO_OPTION("Yes", "1") + COMBO_OPTION("No", "0") + EDITOR_COMBO_END() END_PROPTABLE() REGISTER_ENTITY(CPropStatic, prop_static); diff --git a/source/game/PropStatic.h b/source/game/PropStatic.h index 2bdba86f1..38114fcb3 100644 --- a/source/game/PropStatic.h +++ b/source/game/PropStatic.h @@ -33,7 +33,7 @@ public: protected: void onSetScale(float fScale); float m_fScale = 1.0f; - bool m_useTrimeshPhysics = true; + bool m_useTrimeshPhysics = false; }; #endif -- GitLab