[No] Separate sprites with the same name

Moderator: GZDoom Developers

Separate sprites with the same name

Postby cubebert » Wed Aug 18, 2021 9:43 pm

I'm pretty sure this has been brought up by several people before, but I think there should be some way of having separate sprites that share the same name. With large mods or many different mods loaded up, it can be tricky to have actors that don't have conflicting sprite names. I think one method that could be used is to have the ability to use the file path for the sprite name. I would say something like this could be done if a user wanted to make armor for the player:

Code: Select allExpand view
Spawn:
   "sprites/items/armor/BON1" ABCDCB 3
Loop

By doing this, Doom's green armor would still show up in its' default state, but the custom armor would use the sprites from the path directory on the code. I'm sure that there could be other ways of handling this that are cleaner, but I think that there should be some way of preventing sprite conflicts in the event a mod wants to add compatibility with popular mods and total conversions.
User avatar
cubebert
 
Joined: 14 Jun 2020
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: Separate sprites with the same name

Postby Graf Zahl » Wed Aug 18, 2021 11:55 pm

That's not how sprites work. The 4-letter part is not something easily done away unfortunately.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests