IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> CBasePlayer
HeavyDelta
post May 11 2007, 12:01 AM
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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post May 11 2007, 04:57 PM
Post #2


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(HeavyDelta @ May 11 2007, 01:01 AM) *

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 :/
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
HeavyDelta
post May 11 2007, 08:39 PM
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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st August 2025 - 05:17 PM