edict_t *pPlayer- Mean Anything to You?

edict_t *pPlayer- Mean Anything to You?

Re: edict_t *pPlayer- Mean Anything to You? Posted by bengreenwood on Wed Nov 7th 2007 at 7:50pm
bengreenwood
63 posts
Posted 2007-11-07 7:50pm
63 posts 26 snarkmarks Registered: Aug 14th 2007 Occupation: Student Location: England
Hi,

I'm taking a look at the HPB bot template, trying to understand and edit a bit of basic stuff in there. You won't need to understand the bot to answer my question though, I think. It's pretty basic.

In the source code file, bot.cpp, there's a function that is declared as follows:

void BotCreate( edict_t *pPlayer, const char *arg1, const char *arg2,const char *arg3, const char *arg4).

Okay. Now within that function there are the following declarations of pointers:


edict_t *BotEnt; bot_t *pBot;

I have this idea that these pointers point to structures in another code file, that contain loads of functions and variables and stuff. Hence:

[size=13]
BotEnt->v.idealpitch = BotEnt->v.v_angle.x;

and other stuff like:

[size=13]
pBot->idle_angle = 0.0;


So what I'm thinking is that in the botcreate function declaration, edict_t *pPlayer is going to basically identify each bot in the same way that each player would be identified in a game. Is this right? Sorry if this sounds dumb, I'm just trying to figure out how this works.

[/size][/size]
Re: edict_t *pPlayer- Mean Anything to You? Posted by tnkqwe on Sat Nov 10th 2007 at 5:28pm
tnkqwe
560 posts
Posted 2007-11-10 5:28pm
tnkqwe
member
560 posts 684 snarkmarks Registered: Mar 31st 2007 Occupation: High school student Location: Bulgaria
Ask somebody else.In the snarkpit there are only mapers.Sorry.
Re: edict_t *pPlayer- Mean Anything to You? Posted by Le Chief on Mon Nov 12th 2007 at 5:28am
Le Chief
2605 posts
Posted 2007-11-12 5:28am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
Hay I'm a coder. But not very good.... yet. Breengreenwood, please ask me this question in 6 months. But from my experiance with coding tutorials, they aren't very reliable and never usually work.

However, give this guy an email sysop_axis@hotmail.com. He is the project lead for arrange mode, ask him, he will know for sure :wink: .
Aaron's Stuff
Re: edict_t *pPlayer- Mean Anything to You? Posted by thehalflifedude on Tue Nov 13th 2007 at 12:47am
thehalflifedude
30 posts
Posted 2007-11-13 12:47am
30 posts 3 snarkmarks Registered: Oct 31st 2007
<DIV class=quote>
<DIV class=quotetitle>? quoting aaron_da_killa</DIV>
<DIV class=quotetext>Hay I'm a coder. But not very good.... yet. Breengreenwood, please ask me this question in 6 months. But from my experiance with coding tutorials, they aren't very reliable and never usually work.

However, give this guy an email sysop_axis@hotmail.com. He is the project lead for arrange mode, ask him, he will know for sure :wink: .</DIV></DIV>
AARON_DA_KILLA SAVES THE DAY AGAIN!
Re: edict_t *pPlayer- Mean Anything to You? Posted by omegaslayer on Tue Nov 13th 2007 at 4:46am
omegaslayer
2481 posts
Posted 2007-11-13 4:46am
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
In the bot.cpp, look at the #include statements to see where 'edict_t' could be included from. Look in the #include cpps.

Another suggestion would be is to open windows search tool search wherever your keeping the source code and type "edict_t" into the 'A word or phrase in the file' feature. This will turn up every file that has the 'edict_t' used in it. You may even go further to look for
Posting And You
Re: edict_t *pPlayer- Mean Anything to You? Posted by tnkqwe on Mon Jun 30th 2008 at 7:53am
tnkqwe
560 posts
Posted 2008-06-30 7:53am
tnkqwe
member
560 posts 684 snarkmarks Registered: Mar 31st 2007 Occupation: High school student Location: Bulgaria
"Ask somebody else.In the snarkpit there are only mapers.Sorry."
I forgot that this is a forum.Sorry!
Never think about bad things!
TNKqwe:The New Killer qwe
[img]http://images.quiz.wegame.com/production/personalities/22/badge.jpg[/img]
I am Engineer - Play Free Online Games
[img]http://media.moddb.com/images/global/moddb_88x31_v12.png[/img]
Citizen Arms
Re: edict_t *pPlayer- Mean Anything to You? Posted by Le Chief on Mon Jun 30th 2008 at 9:53am
Le Chief
2605 posts
Posted 2008-06-30 9:53am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
tnkqwe said:
"Ask somebody else.In the snarkpit there are only mapers.Sorry."
I forgot that this is a forum.Sorry!
:lol: .. :wtf: , there was no need to clarify your post buddy :smile: .
Aaron's Stuff