Skip to content

weaponinfo to DH port #2

Description

@elf-alchemist

Given the "reference material" nature of the existing decohack code, perhaps it may prove useful to have ports of the weaponinfo states/info tables as well

For Doom these are fairly simple:
https://github.com/chocolate-doom/chocolate-doom/blob/3e0cd5dc0cd0d5b6788100a2fbc1cdd4ce014b35/src/doom/d_items.h#L27-L37

https://github.com/chocolate-doom/chocolate-doom/blob/3e0cd5dc0cd0d5b6788100a2fbc1cdd4ce014b35/src/doom/d_items.c#L37-L120

Heretic added some extra complexity, introducing the upgraded weapons concept, with different values for each -- not to mention the seeminglynew "holdattackstate".
https://github.com/chocolate-doom/chocolate-doom/blob/3e0cd5dc0cd0d5b6788100a2fbc1cdd4ce014b35/src/heretic/p_pspr.c#L44-L234

Hexen's appears to be a bit simpler than Raven's prior release, but is still a bit numerous due to the class system -- the "holdattackstate" is still present, here.
https://github.com/chocolate-doom/chocolate-doom/blob/3e0cd5dc0cd0d5b6788100a2fbc1cdd4ce014b35/src/hexen/p_pspr.c#L48-L209

Strife's loops back to being on the simpler end, like Doom's, with the only gotcha being a non-issue, whether or not the weapon is available in the demo version of the game:
https://github.com/chocolate-doom/chocolate-doom/blob/3e0cd5dc0cd0d5b6788100a2fbc1cdd4ce014b35/src/strife/d_items.c#L39-L151

https://github.com/chocolate-doom/chocolate-doom/blob/3e0cd5dc0cd0d5b6788100a2fbc1cdd4ce014b35/src/strife/d_items.h#L27-L38

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions