![]() |
![]() |
HeavyDelta |
![]()
Post
#1
|
Member ![]() ![]() Group: Members Posts: 12 Joined: 23-October 06 Member No.: 909 ![]() |
I'm kind of a programming newbie, but how can I instantiate a CBasePlayer object under bot_waypoints.cpp, (I need to use the GetMoveType() function of that class or whatever parent class).
I've noticed several instances of "#include cbase.h" and "#include cbaseentity.h" and others commented out in the code, but when I uncomment them or include any other seemingly important header, I get tons of error messages on compiling. Any help is appreciated. |
![]() ![]() |
Cheeseh |
![]()
Post
#2
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
I'm kind of a programming newbie, but how can I instantiate a CBasePlayer object under bot_waypoints.cpp, (I need to use the GetMoveType() function of that class or whatever parent class). I've noticed several instances of "#include cbase.h" and "#include cbaseentity.h" and others commented out in the code, but when I uncomment them or include any other seemingly important header, I get tons of error messages on compiling. Any help is appreciated. you need to define GAME_DLL to use CBasePLayer, but I think its useless I've tried before and if you want to get good functionality you will end up with a load of compile errors again :/ |
HeavyDelta |
![]()
Post
#3
|
Member ![]() ![]() Group: Members Posts: 12 Joined: 23-October 06 Member No.: 909 ![]() |
Thanks, it worked. But you're right, I ran into several other problems. I think I'll forget about ladders for now and try to add a 'Goal' type waypoint for use in other mods.
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 21st August 2025 - 01:23 PM |