Following the advice of Ku2zoff, I grabbed the vehicle mechanic from the CS1.6 rev-eng dll source code. I have already fixed the save-restore mechanics and edited some of the stuff that I think needs editing. Now comes the part where I have to ask again. (I'm getting a little repetitive, am I?)
I compiled the thing hoping that the code is incorporated, but it looks like I missed something here:
Apparently the code couldn't find the entity, but as you can see also, func_vehicle.cpp (where the code for the entity is) compiled just fine.
I checked out the codes from the player cpp and multiplay rules cpp since I edited them as well to incorporate the vehicle cpp to the code. All are ripped directly from the player code of the CS dll source.
I placed the source down here in hopes that someone would see where the problem stems from. I suspected that I missed something there during my editing.
BTW, the code originally had a header, but I merged it in the cpp file because it gave errors.
Okay, so I'll unmerge what was supposed to be from the header, then I'll place includes on all what I wanted to affect? I couldn't believe I would forget something like that. Sorry bout that. I'll be going ahead and put it then. I'll edit the post if it works or not.
You see? This means that these files are not aware of CFuncVehicle class. When you place an include at the beginning, the class definition becomes known to them, and this error will be fixed.
Tried the code out, didn't work unfortunately. The vehicle is there, the controls is there, but when I press use, there is no hud display, it didn't gain control, didn't work. I wonder why it didn't carry over?
I edited player.cpp appropriately, added now the header file from vehicle code.