<SB> Childe Roland wrote:
Ok, so I decided to create my own vehicle class, CPropCGjeep. It
derives from CPropVehicleDriveable on the server side, and
C_PropVehicleDriveable on the client side. I did this using an #ifdef
CLIENT_DLL like is shown many times in the code.
<snip>
However, when I declare this:
IMPLEMENT_NETWORKCLASS_ALIASED( CPropCGjeep, DT_PropCGjeep )
The compiler gives me the error:
error C2653: 'C_CPropCGjeep' : is not a class or namespace name
IMPLEMENT_NETWORKCLASS_ALIASED is defines as follows...
#define IMPLEMENT_NETWORKCLASS_ALIASED(className, dataTable) \
IMPLEMENT_CLIENTCLASS( C_##className, dataTable, C##className )
...so it makes the assumption that the class CWhatever on the server
will be mirrored by the class C_CWhatever on the client (the macro
prepends an additional "C_" to the class name.
If your class on the server is "CPropCGjeep", then your class on the
client had better be "C_CPropCGjeep".
--
Jeffrey "botman" Broome
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders