My plugin for HL2DM needs to be ported.
When I got all of the nit picky things changed, I'm getting this error on compiling:
Code:
SH_DECL_MANUALHOOK0(GetBulletSpread_hook, 0, 0, 0, Vector const& );
1>C:\plugins\sourcemm_sdk\core\sourcehook\sourcehook.h(6743) : error C2528: 'abstract declarator' : pointer to reference is illegal
1> ..\main.cpp(85) : see reference to function template instantiation 'void SourceHook::SetOverrideResult<__SourceHook_MFHCls_GetBulletSpread_hook::RetType>(SourceHook::ISourceHook *,RetType)' being compiled
1> with
1> [
1> RetType=__SourceHook_MFHCls_GetBulletSpread_hook::RetType
1> ]
1>C:\plugins\sourcemm_sdk\core\sourcehook\sourcehook.h(6743) : error C2678: binary '=' : no operator found which takes a left-hand operand of type '__SourceHook_MFHCls_GetBulletSpread_hook::RetType ' (or there is no acceptable conversion)
1> c:\plugins\source-sdks\ob\public\mathlib/vector.h(168): could be 'Vector &Vector::operator =(const Vector &)'
1> while trying to match the argument list '(__SourceHook_MFHCls_GetBulletSpread_hook::RetType , const Vector)'
If I remove this hook ( which is probably not needed ), it compiles fine. I just want to know if I'm doing something wrong, or what the issue is.