예제 #1
0
파일: Hooks.cpp 프로젝트: NWNX/nwnx2-linux
static void Local_HideArea()
{
    CGameObject *pPlayerGameObject = CNWSPlayer__GetGameObject((CNWSPlayer *)WGOU_pPlayer);
    CNWSObject *pPlayerObject;

    if (pPlayerGameObject != NULL && pPlayerGameObject->vtable != NULL) {
        pPlayerObject = pPlayerGameObject->vtable->AsNWSObject(pPlayerGameObject);
    }
    //
    if (*((char*)WGOU_pPlayer + 0x74) != 2 && (pPlayerObject == NULL || (pPlayerObject != NULL && pPlayerObject->obj_area_id !=  WGOU_pObject->obj_area_id))) {
        CNWSMessage__WriteOBJECTIDServer((CNWSMessage *)WGOU_pMsg, OBJECT_INVALID);
    } else {
        CNWSMessage__WriteOBJECTIDServer((CNWSMessage *)WGOU_pMsg, WGOU_pObject->obj_area_id);
    }

}
예제 #2
0
int CNWSMessage_s::WriteOBJECTIDServer(nwn_objid_t oID) {
	return CNWSMessage__WriteOBJECTIDServer(this, oID);
}