Jump to content

Photo

Changing header files without modifying player_core?


  • Please log in to reply
No replies to this topic

#1
Liaen

Liaen

    Fan

  • Members
  • PipPipPip
  • 304 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?




Page loaded in: 1.300 seconds