← Back to all addons

(2.0) Real Gear Equip (That's Right!)

Posted by Mr.Titan on Dec 31, 2024 at 7:13 PM

Experimental2.0 VerifiedDeprecated
🔥 8 💡 5

Display “ingame” the quipment you wear. Player, NPCs, Monster, you name it! It means you can mave infinite combinations of NPCs, and Monster You can extend to for eyes, heads, torsos, skin color, you name it!

I made it so that it requires the least changes.

1º: Replace your Character.cs file with the one in attachment.

2º: Add virtual in animation methods in your CharacterBase.cs, and add three methods TryPlayIsMovingAnimation , TryPlayMoveXAnimation , TryPlayMoveYAnimation. Add copy their code from CharacterBase.cs in attachment.

3º: Replace in the code all occorrencies of and for:

//m_animator.SetBool(m_isMovingAnimationParameter ... 
TryPlayIsMovingAnimation()

//m_animator.SetFloat(m_moveXAnimationParamete
TryPlayMoveXAnimation()

//m_animator.SetFloat(m_moveYAnimationParameter
TryPlayMoveYAnimation()

4º: Change from private to protected the following:

m_hitAnimationParameter 
m_deathAnimationParameter 
m_invincibleAnimationParameter 
m_moveXAnimationParameter 
m_moveYAnimationParameter 
m_isMovingAnimationParameter 
m_lastSuccessfullMoveDirection

5º: Change file Hero to call UpdateEquipementEquip (print in attachment):

6º: In the prefab 0_Hero_base create objects that will contain the equipments:

7º: Add the components in image. Change the “EquipmentType” accordingly:

8: Add objs to the 0_Hero_Base:

Now all is ready! Let’s make the libraries for the equipments. I added the sprites in the attachment. 9: Make a copy of any of the characters libraries. Change the library to have the sprites, in all the categories.

10: Add the library to the item in Visual Override:

ALL DONE! Enjoy!

IMPORTANT NOTES:

  • You have to do the step 8º for all the heros.
  • You may need to ajust the “Y” position of the objects. Mine is set to 0.754.

Sprites

💬 Comments (10)

Ravenheart Games Feb 08, 2025 at 05:26 PM
I might just be dumb, but I can’t get this to work for the life of me 😅
Mr.Titan Feb 09, 2025 at 08:24 PM
Mr.Titan Feb 09, 2025 at 08:24 PM
i forgot to post one of the files, sorry for that
👊 1
Ice Cube Mar 29, 2025 at 03:14 AM
is it possible if I can change the sprite to another equipment sprite ?
Mr.Titan Apr 01, 2025 at 10:49 AM
What do you mean?
Mr.Titan Apr 01, 2025 at 10:51 AM
The sprites i provided are just an example, you can put whatever you want the way you want, nothing against it.
Clarches Apr 01, 2025 at 06:15 PM
Hasn’t the new update added this feature natively ?
Mr.Titan Apr 03, 2025 at 11:20 AM
Not sure, i haven’t tried it yet. If it does please let me know so that i can set as deprecated
Mr.Titan Apr 03, 2025 at 11:22 AM
(2.0) Real Gear Equip (That’s Right!)
Ice Cube Apr 04, 2025 at 05:35 AM
No, the new update won’t display the equipment we equip so. It is really cool to try this add-on hope it has a feature to display a weapon equipped too! Thanks to Mr.Titan

Want to continue the conversation?