mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-11-19 14:11:15 +00:00
Add combat_ai_name
This commit is contained in:
parent
e0e0db219c
commit
49804a52e6
@ -707,6 +707,24 @@ int combat_ai_num()
|
||||
return gAiPacketsLength;
|
||||
}
|
||||
|
||||
// 0x428060
|
||||
char* combat_ai_name(int packet_num)
|
||||
{
|
||||
int index;
|
||||
|
||||
if (packet_num < 0 || packet_num >= gAiPacketsLength) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (index = 0; index < gAiPacketsLength; index++) {
|
||||
if (gAiPackets[index].packet_num == packet_num) {
|
||||
return gAiPackets[index].name;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Get ai from object
|
||||
//
|
||||
// 0x4280B4
|
||||
|
@ -31,6 +31,7 @@ int aiExit();
|
||||
int aiLoad(File* stream);
|
||||
int aiSave(File* stream);
|
||||
int combat_ai_num();
|
||||
char* combat_ai_name(int packet_num);
|
||||
int aiGetAreaAttackMode(Object* obj);
|
||||
int aiGetRunAwayMode(Object* obj);
|
||||
int aiGetBestWeapon(Object* obj);
|
||||
|
Loading…
Reference in New Issue
Block a user