Re: [hlcoders] Change base class

2009-01-13 Thread John Standish
That is correct where it creates the player class. I have commented out the instance where it links to the player class and have it now pointing at my player class. I looked in sdk_client.cpp and saw the method where it creates one. So change the player class in say, hl2mp_client.cpp? On Tue, Jan

Re: [hlcoders] Change base class

2009-01-13 Thread Tom Leighton
You mean where it creates the player class? comment the LINK_ENTITY_TO_CLASS in the CHL2MP player file, and put one in your player class with the "player" name. You could also find where it creates the player class in the *_client.cpp file, and change it to create your player class instead.

[hlcoders] Change base class

2009-01-13 Thread John Standish
I've tried changing the base class for HL2MP but every time I load sdk_vehicle it keeps changing to HL2SP I think. The way I'll know I'm using my custom player class is I have a devmsg that tells me when the entity has spawned. Any helps on where to change the base class spawn? Thanks in advance _