Pickup weapons depending on class

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
Henderick
Posts: 50
Joined: Sun Mar 08, 2009 9:11 am
Location: Germany

Pickup weapons depending on class

Post by Henderick »

I want to do something like Hexen weapons, that only one playerclass can pickup a weapon who other classes shouldn't be able to pickup. (f.e. fighter is the only one who can pickup the axe)
i would like to create an own class for doom, but the problem is that each playerclass can pickup each weapon (i don't want to use mage, cleric or fighter, only own classes)
is there a way to specify which weapon can be picked up by which playerclass?
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Pickup weapons depending on class

Post by NeuralStunner »

Not easily, no.

If you only want to add three classes, inherit them from the hexen ones anyway and name them what you like. Inherit their specific weapons from the Hexen base weapons for each class.

Otherwise, you're in for a lot of CustomInventory "hacks" and their associated headaches.
Henderick
Posts: 50
Joined: Sun Mar 08, 2009 9:11 am
Location: Germany

Re: Pickup weapons depending on class

Post by Henderick »

Is there an example for this custominventory alternate where I can look at?
Because i don't understand it right now.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Pickup weapons depending on class

Post by NeuralStunner »

I found this thread pretty quickly, so I hope it helps: http://forum.zdoom.org/viewtopic.php?p=476370#p476370
Henderick
Posts: 50
Joined: Sun Mar 08, 2009 9:11 am
Location: Germany

Re: Pickup weapons depending on class

Post by Henderick »

it really helped to figure out, thank you very much!
Locked

Return to “Editing (Archive)”