Jump to content

Custom class problems


Recommended Posts

I got my baron of hell player custom class and i dont want it to be able to grab any weapons

how do i do ?

 

also i want it to be able to grab medikits above 100 health

the class has 1000 hp

Share this post


Link to post

but im in the good subforum ?

i tried in "doom general" and "wads and mods" and i got told i gotta be here

where am i supposed to go then to get help for a wad

Edited by NoNameIdeas784
forgot word

Share this post


Link to post
6 minutes ago, NoNameIdeas784 said:

i tried in "doom general" and "wads and mods" and i got told i gotta be here

where am i supposed to go then to get help for a wad

Mordeth is just saying that you should have posted here in the first place and they had to get rid of the threads that you made in the wrong subforum. Stupid bunny told you you had to post here, but you posted in wads and mods instead. And don't worry about being new here and making mistakes. A lot of people post in the wrong subforum at first :)

Share this post


Link to post

I'm not sure if default weapons can be made impossible to pick up, but you could replace them with custom weapons with a "Inventory.ForbiddenTo" property and the "INVENTORY.RESTRICTABSOLUTELY" flag. Medikits have no default max amount, and should heal your custom player class to whatever their health is... soulspheres and such may need to be modified, though. Make sure to consult the Zdoom wiki's DECORATE reference if you aren't already, lots of useful stuff there. Good luck with your project!

Share this post


Link to post
6 minutes ago, Scypek2 said:

I'm not sure if default weapons can be made impossible to pick up, but you could replace them with custom weapons with a "Inventory.ForbiddenTo" property and the "INVENTORY.RESTRICTABSOLUTELY" flag. Medikits have no default max amount, and should heal your custom player class to whatever their health is... soulspheres and such may need to be modified, though. Make sure to consult the Zdoom wiki's DECORATE reference if you aren't already, lots of useful stuff there. Good luck with your project!

the medikits and stimpacks dont wanna be picked up above 100 hp

Share this post


Link to post

Autoswitch can be turned off in player settings. Any way you could give us the actual DECORATE lump and not just a screenshot of it? You can upload the text file somewhere such as google drive and allow us to download it.

Share this post


Link to post
2 minutes ago, JustAthel said:

Autoswitch can be turned off in player settings. Any way you could give us the actual DECORATE lump and not just a screenshot of it? You can upload the text file somewhere such as google drive and allow us to download it.

https://drive.google.com/file/d/1TXfXLtTdJ4PA0uNizz083OoImGt57lhl/view?usp=share_link

there you go

the only problem now is how do i make the class heal itself above 100 hp

Share this post


Link to post

You need to set MaxHealth as well:

Quote

Player.MaxHealth value

Default is 100.

The maximum health reachable by using normal health items.

Edited by magicsofa

Share this post


Link to post

alright, thanks

i still got more and more questions for the wad im making

so do i open a new thread or ask them all here

Edited by NoNameIdeas784

Share this post


Link to post
14 hours ago, Scypek2 said:

I'm not sure if default weapons can be made impossible to pick up, but you could replace them with custom weapons with a "Inventory.ForbiddenTo" property and the "INVENTORY.RESTRICTABSOLUTELY" flag. Medikits have no default max amount, and should heal your custom player class to whatever their health is... soulspheres and such may need to be modified, though. Make sure to consult the Zdoom wiki's DECORATE reference if you aren't already, lots of useful stuff there. Good luck with your project!

i tried for inventory and i got "INVENTORY.RESTRICTABSOLUTELY is an unkown flag" error

Edited by NoNameIdeas784

Share this post


Link to post
2 hours ago, NoNameIdeas784 said:

alright, thanks

i still got more and more questions for the wad im making

so do i open a new thread or ask them all here

You ask them here if they are related to classes. Else this thread should be renamed to a generic thread.

You also do not have to respond with Ok. When you have your example ready, reply with ''Ok, here is my example''.

Share this post


Link to post
8 hours ago, NoNameIdeas784 said:

i tried for inventory and i got "INVENTORY.RESTRICTABSOLUTELY is an unkown flag" error

What version of ZDoom are you using?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...