- changed InventoryItem itemType from InventoryItemType to int to make item type customizable.
InventoryItemType enum is still used for easier handling and new entries ( types) can be added ( or removed )
Only thing you have to do is do is convert from int to InventoryItemType and vice versa.
- added 'staminaReducedOnBlock' field. You can apply amount of stamina that gets reduced on block per weapon.
- added death feature to 'add_damage()' function ( so that character can play death if health reach zero).
- Photon: fixed added missing empty shell ejector
- Photon: fixed dual wielding
- added teams - choose npc targets by assigning teams + team enemies
Choose npc team in NPCScript component and add enemy teams.
Also choose npc disposition ( aggressive or neutral )
Keep in mind that Neutral memeber of team will be switched to aggressive if alerted.
If you want exclude neutral npcs from being alerted, just put 'if(disposition == Neutral) return' ( return early if teammate if neutral) in 'receive_alert(...)' method.
Aggresive npcs will attack non neutral members of enemy teams
- follower npc is logical extension of teams system - will be implemented in one of the next updates