MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / osipf_AIIsObjFriend

Function osipf_AIIsObjFriend

Descent3/osiris_predefs.cpp:2958–2966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2956int osipf_SoundFindId(const char *s_name) { return FindSoundName(IGNORE_TABLE(s_name)); }
2957
2958bool osipf_AIIsObjFriend(int obj_handle, int it_handle) {
2959 object *me = ObjGet(obj_handle);
2960 object *it = ObjGet(it_handle);
2961
2962 if (me && it)
2963 return AIObjFriend(me, it);
2964
2965 return false;
2966}
2967
2968bool osipf_AIIsObjEnemy(int obj_handle, int it_handle) {
2969 object *me = ObjGet(obj_handle);

Callers

nothing calls this directly

Calls 2

ObjGetFunction · 0.85
AIObjFriendFunction · 0.85

Tested by

no test coverage detected