Jump to content

Question about making an Utility Item class exclusive.


xdforcezz

Recommended Posts

From what I've seen, this is not a simple change. There doesn't seem to be any default support for class-specific utility items. Primary and secondary weapons can be specified in the config files by adding them as allowed weapons for classes, but the actual script that deals with determining whether an item can be equipped by a soldier doesn't seem to have any such filtering for utility items or grenades.

 

As far as I can tell, you would have to extend the game state for units and override the function "CanAddItemToInventory", which is responsible for making determinations on who can equip what.

 

I'm still not sure how to technically accomplish this type of thing myself. It also wouldn't play well with others, causing conflicts with other mods that try to extend that particular class.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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