Jump to content

Changing header files without modifying player_core?


Liaen

Recommended Posts

I'm writing on a no helmet hack replacement working the same way by moving items into the cloak slot and this breaks certain sets that require a helmet.

One workaround of the author was to modify sets to no longer require a helmet through the .gda files.

 

When I was looking around the game resources I found the sys_itemsets_h header file and I changed it from

 

oItems[3] = GetItemInEquipSlot(INVENTORY_SLOT_HEAD, oCreature);

 

to

 

if (IsObjectValid(GetItemInEquipSlot(INVENTORY_SLOT_CLOAK, oCreature)) == TRUE)
{
   oItems[3] = GetItemInEquipSlot(INVENTORY_SLOT_CLOAK, oCreature);
} else
{
   oItems[3] = GetItemInEquipSlot(INVENTORY_SLOT_HEAD, oCreature);
}

 

this change works, but it only works if I recompile player_core.ncs and since this breaks a lot of other mods I wonder if there is a way around this.

I tried #include "sys_itemsets_h" it into my mod but that did not work. Any suggestions?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...