We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f961b9d commit b94fd63Copy full SHA for b94fd63
src/core/modules/entities/entities_entity.cpp
@@ -75,6 +75,11 @@ boost::shared_ptr<CBaseEntityWrapper> CBaseEntityWrapper::wrap(CBaseEntity* pEnt
75
76
CBaseEntity* CBaseEntityWrapper::create(const char* name)
77
{
78
+#ifdef ENGINE_CSGO
79
+ void *pItem = servertools->CreateItemEntityByName(name);
80
+ if (pItem)
81
+ return (CBaseEntity *)pItem;
82
+#endif
83
IServerNetworkable* pEntity = get_factory(name)->Create(name);
84
if (!pEntity)
85
BOOST_RAISE_EXCEPTION(PyExc_ValueError, "Failed to create entity with class name '%s'.", name)
0 commit comments