Jump to content
  • 0

How to add custom player class with custom weapon replacement.


JohnCook1994

Question

Hello guys,

 

I know this title sounds kinda stupid and confusing; furthermore, how do I DECORATE weapons that are assigned for different player class (like Samsara). I have already added a custom class with Terror Billy (BJ) and I have no clue on how to make him pick up a certain weapon instead of the DOOM Super Shotgun. Is there a way in like DECORATE to only pick up a weapon assigned only to that class. Is there more to this? Let me know, if you want.

 

Thank you,

 

JohnCook1994

CookAGK9000

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

I looked at how Samsara does it, and it uses ACS to determine what class the player is and give the right weapon. In retardcm5.0mp.pk3, they used a different, DECCORATE-only approach that might be easier to use. Basically, each class is given a different custom inventory item at spawn, and the inventory item that replaces the weapon pickup looks at which class-specific item the player has to decide which weapon to give. Look at the code to see how it is done, and ask questions if you still need to.

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
Answer this question...

×   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...