Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

InventoryManager.ModifyDamage does nothing

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • InventoryManager.ModifyDamage does nothing

    There seem to be a lot of places where hooks for modders to fiddle with the game mechanics are missing, like this in InventoryManager:
    Code:
    /**
     * Damage modifier. Is Pawn carrying items that can modify taken damage?
     * Called from GameInfo.ReduceDamage()
     */
    function int ModifyDamage( int Damage, Controller instigatedBy, vector HitLocation, vector Momentum, class<DamageType> DamageType )
    {
    	return Damage;
    }
    It should ask the inventory to modify the damage, but instead it does nothing. Could this perhaps be fixed in a future patch please?

  • #2
    I think the purpose of this may be as a hook - if you override the class that this is in with your own derrived class then you can create your own "ModifyDamage()" that does what you want.

    Comment


    • #3
      Originally posted by [BIA]DarthMushak View Post
      ...if you override the class that this is in...
      Any mutator that replaces the InventoryManager will automatically be incompatible with any other mutator that does the same. The correct way for it to work is for InventoryManager.ModifyDamage to ask each inventory item in the same way as e.g. InventoryManager.HandlePickupQuery gives a chance for any inventory item to do something when a player picks up an item.

      Comment

      Working...
      X