Re: "LINK_ENTITY_TO_FUNC" Help -
28-07-2005
I cant find what im supposed to edit in the h_export.cpp =/
But in the bot_start.cpp ive re-edited the following code, and its found 5 errors, it originally found 12 errors altohugh i found and fixed 7, but i cant find the remaining 5, if anyone can help heres the code:
" else if ((mod_id == FP_DLL)
{
// handle Final Power stuff here...
if (pBot->start_action == MSG_FP_TEAM_SELECT)
{
pBot->start_action = MSG_FP_IDLE; // switch back to idle
if ((pBot->bot_team != 1) && (pBot->bot_team != 2))
pBot->bot_team = -1;
if (pBot->bot_team == -1)
pBot->bot_team = RANDOM_LONG(1, 2);
// select the team the bot wishes to join...
if (pBot->bot_team == 1)
strcpy(c_team, "Z-Fighter");
else if (pBot->bot_team == 2)
strcpy(c_team, "Evil Guys");
FakeClientCommand(pEdict, "jointeam", c_team, NULL);
return;
}
if (pBot->start_action == MSG_FP_CLASS_SELECT)
{
pBot->start_action = MSG_FP_IDLE; // switch back to idle
if ((pBot->bot_class < 0) || (pBot->bot_class > 7))
pBot->bot_class = -1;
if (pBot->bot_class == -1)
pBot->bot_class = RANDOM_LONG(1, 7);
// select the class the bot wishes to use...
if (pBot->bot_class == 1)
strcpy(c_class, "Goku");
else if (pBot->bot_class == 2)
strcpy(c_class, "Gohan");
else if (pBot->bot_class == 3)
strcpy(c_class, "Goten");
else if (pBot->bot_class == 4)
strcpy(c_class, "Vegeta");
else if (pBot->bot_class == 5)
strcpy(c_class, "Brolly");
else if (pBot->bot_class == 6)
strcpy(c_class, "Buu");
FakeClientCommand(pEdict, "selectchar", c_class, NULL);
// bot has now joined the game (doesn't need to be started)
pBot->not_started = 0;
return;
}"
|