Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CNWNXAreas::DestoryObject(CNWSObject * obj){
- CNWSArea * are = obj->GetArea();
- if (are){
- are->RemoveObjectFromArea(obj->obj_generic.obj_id);
- }
- obj->SetArea(NULL);
- CWorldTimer * time = (*NWN_AppManager)->app_server->GetWorldTimer();
- DWORD seconds = time->GetWorldTimeSecond();
- DWORD days = time->GetCalendarDayFromSeconds(seconds);
- CServerAIMaster * bitch = (*NWN_AppManager)->app_server->GetServerAIMaster();
- DWORD event = *(DWORD *)0x00633990; //CServerAIMaster__EVENT_DESTROY_OBJECT
- bitch->AddEventDeltaTime(seconds, days, obj->obj_generic.obj_id, obj->obj_generic.obj_id, event, 0);
- /*void(__fastcall *pDestructor)(CNWSObject *pTHIS, void *pVOID, int flag) = (void(__fastcall*)(CNWSObject *pTHIS, void *pVOID, int flag))(*(DWORD*)((DWORD*)(obj->obj_generic.obj_type)));
- pDestructor(obj, NULL, 1);*/
- //(**(void(__thiscall ***)(CNWSObject*, DWORD))obj)(obj, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement