Jump to content

Add Context Option to Health Panel


Guest grashwandir

Recommended Posts

Guest grashwandir

Hello,

I'm new to PZ modding and I just want to practice with a mod regrouping some features I like in other mods.

For now, I'm trying to implement a Z-Cure as a syringe you can inject yourself or another player.

But I want it to be fully integrated (it's like a mini-challenge) so if you are infected AND you possess the cure, there will be a context option in the health panel to use it. Just like bandages or alcohol.

 

I know how to add context option : I already try teleport, item spawning, corpse removing...

But the main issue is : I can't find any event/hook related to health panel, so I just don't know how to modify its context options.

 

I don't see any of my code wich can be posted here (because it has nothing to do with the final result I want).

But if there is any, just tell me (fedora)

 

Please excuse my poor English, I'm just a froggy.

 

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...