Raydan, write please detailed instruction how to build this extension and make a new gamedata, and we will continue your work.
I tried to compile under Linux, but it writes errors:
Code:
mypc@N53Jg:~/sourceSDK/sourcemod-central/extensions/sourcemod-npc-in-css$ make ENGINE=orangebox
if [ "true" = "true" ] && [ "true" = "false" ]; then \
echo "You must supply ENGINE=left4dead or ENGINE=orangebox or ENGINE=original"; \
exit 1; \
fi
mkdir -p Release.orangebox/sdk
ln -sf ../../../hl2sdk-ob/lib/linux/vstdlib_i486.so vstdlib_i486.so;
ln -sf ../../../hl2sdk-ob/lib/linux/tier0_i486.so tier0_i486.so;
make -f Makefile extension
make[1]: Entering directory `/home/mypc/sourceSDK/sourcemod-central/extensions/sourcemod-npc-in-css'
if [ "true" = "true" ] && [ "true" = "false" ]; then \
echo "You must supply ENGINE=left4dead or ENGINE=orangebox or ENGINE=original"; \
exit 1; \
fi
gcc -I../../../hl2sdk-ob/public/tier3 -I../sourcemod-npc-in-css/CEntity -I../../../hl2sdk-ob/public/game/server -I../../../hl2sdk-ob/game/server -I../../../hl2sdk-ob/common -I../../../hl2sdk-ob/game/shared -I../../../hl2sdk-ob/public/toolframework -I. -I.. -Isdk -I../../../hl2sdk-ob/public -I../../../hl2sdk-ob/public/engine -I../../../hl2sdk-ob/public/mathlib -I../../../hl2sdk-ob/public/tier0 -I../../../hl2sdk-ob/public/tier1 -I../../../mmsource-central/core -I../../../mmsource-central/core/sourcehook -I../../public -I../../public/extensions -I../../public/sourcepawn -DSOURCE_ENGINE=3 -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_BLOODYGOODTIME=4 -DSE_EYE=5 -DSE_CSS=6 -DSE_ORANGEBOXVALVE=7 -DSE_LEFT4DEAD=8 -DSE_LEFT4DEAD2=9 -DSE_ALIENSWARM=10 -D_LINUX -DPOSIX -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -DCOMPILER_GCC -Wno-switch -Wall -Werror -Wno-uninitialized -Wno-invalid-offsetof -Wno-unused -mfpmath=sse -msse -DSOURCEMOD_BUILD -DHAVE_STDINT_H -m32 -DNDEBUG -O3 -funroll-loops -pipe -fno-strict-aliasing -fvisibility=hidden -Wno-non-virtual-dtor -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -o Release.orangebox/extension.o -c extension.cpp
In file included from extension.h:18:0,
from extension.cpp:2:
../../../hl2sdk-ob/game/shared/IEffects.h:23:6: error: use of enum ‘ShakeCommand_t’ without previous declaration
In file included from ../../../hl2sdk-ob/game/shared/igamemovement.h:19:0,
from extension.h:22,
from extension.cpp:2:
../../../hl2sdk-ob/game/shared/imovehelper.h:20:6: error: use of enum ‘PLAYER_ANIM’ without previous declaration
In file included from ../../../hl2sdk-ob/game/shared/igamemovement.h:19:0,
from extension.h:22,
from extension.cpp:2:
../../../hl2sdk-ob/game/shared/imovehelper.h:81:35: error: ‘PLAYER_ANIM’ has not been declared
In file included from extension.h:38:0,
from extension.cpp:2:
sign_func.h:22:6: error: use of enum ‘Navigation_t’ without previous declaration
sign_func.h:32:6: error: use of enum ‘FlankType_t’ without previous declaration
In file included from extension.h:38:0,
from extension.cpp:2:
sign_func.h:164:28: error: ‘Navigation_t’ has not been declared
sign_func.h:168:171: error: ‘FlankType_t’ has not been declared
In file included from CEntity/AI/CAI_NetworkManager.h:5:0,
from extension.cpp:3:
CEntity/AI/CAI_Network.h:18:6: error: use of enum ‘Hull_t’ without previous declaration
CEntity/AI/CAI_Network.h:58:28: error: ‘Hull_t’ has not been declared
In file included from CEntity/AI/CAI_NetworkManager.h:5:0,
from extension.cpp:3:
CEntity/AI/CAI_Network.h:96:66: error: ‘Hull_t’ has not been declared
CEntity/AI/CAI_Network.h:97:47: error: ‘Hull_t’ has not been declared
In file included from extension.cpp:3:0:
CEntity/AI/CAI_NetworkManager.h: In member function ‘virtual void CEAI_NetworkManager::m_pNetworkPropTracker::InitProp(CEntity*)’:
CEntity/AI/CAI_NetworkManager.h:22:2: error: ‘dynamic_cast’ not permitted with -fno-rtti
extension.cpp: In member function ‘virtual void __SourceHook_FHCls_IServerGameDLLServerActivate0::CMyDelegateImpl::DeleteThis()’:
extension.cpp:60:1: error: deleting object of polymorphic class type ‘__SourceHook_FHCls_IServerGameDLLServerActivate0::CMyDelegateImpl’ which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor]
extension.cpp: In member function ‘virtual void __SourceHook_FHCls_IServerGameClientsSetCommandClient0::CMyDelegateImpl::DeleteThis()’:
extension.cpp:61:1: error: deleting object of polymorphic class type ‘__SourceHook_FHCls_IServerGameClientsSetCommandClient0::CMyDelegateImpl’ which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor]
extension.cpp: In member function ‘virtual bool Monster::SDK_OnLoad(char*, size_t, bool)’:
extension.cpp:162:66: error: ‘VirtualQuery’ was not declared in this scope
extension.cpp:165:27: error: NULL used in arithmetic [-Werror=pointer-arith]
cc1plus: all warnings being treated as errors
make[1]: *** [Release.orangebox/extension.o] Error 1
make[1]: Leaving directory `/home/mypc/sourceSDK/sourcemod-central/extensions/sourcemod-npc-in-css'
make: *** [all] Error 2
mypc@N53Jg:~/sourceSDK/sourcemod-central/extensions/sourcemod-npc-in-css$
What could I do wrong?