Page 1 of 1

Weapon Matching Player Skin 1.1

PostPosted: Sat Mar 14, 2020 1:56 pm
by Ivory Duke
I AM NO LONGER INVOLVED IN DOOM MODDING, YOU ARE FREE TO USE THIS A YOU PLEASE (JUST MENTION MY NAME SOMEWHERE IN THE CREDITS OUT OF CURTESY).
I am aware this has been executed through inventory jumps and custom states in other mods but I wanted to accomplish the same result without the need for extensive code editing.
GZDoom 3.0+


Code that switches sprite frame used depending on the selected weapon using ZScript instead of creating custom sub states for each weapon player can use.
You are free to use the code as you please. Although I encourage you to follow the edits suggested in the ZScript.txt file if you are planning to include it in your mod.



DOWNLOAD HERE

Code: Select allExpand view
Changelog 1.1:
- set up proper weapon replacements;
- fixed sprite rotations alignements as much as possible. Berzerk uses very different sprites and a few weapons have full rotations.


Sprites used are taken from Ghastly's Marine Skins pack and a few have been renamed for coding purposes.
Code: Select allExpand view
Sprite credits:
- Fist Marine - Sprite by: Mark Quinn
- Chainsaw Marine - Sprite by: Mark Quinn and Xenaero
- Pistol Marine - Sprite by: Mark Quinn and Grimm
- Shotgun Marine - Sprite by: Mark Quinn
- Super Shotgun Marine - Sprite by: Xim, Xenaero and The Skulltag Team
- Chaingun Marine - Sprite by: Anthony Cole
- Rocket Marine - Sprite by: Xim
- Plasma Marine - Sprite by: CaptainToenail
- BFG9000 Marine - Sprite by: Toke

Re: Weapon Matching Player Skin 1.0

PostPosted: Sun Mar 15, 2020 7:11 am
by PandaDoomer
Nice, though it would've been nice if the sprite offsets were consistent.

Re: Weapon Matching Player Skin 1.0

PostPosted: Sun Mar 15, 2020 9:28 am
by Ivory Duke
Hi, I have merely copy pasted the sprite from the mentioned pack assuming they were consistent since the focus was more on the coding side of things (i have not laid hands on the sprite themselves).
I'll possibly look into adjusting the offsets in the future.
I do not expect you to do it but it would be nice if you could let me know which ones are off, thank you in advance

Re: Weapon Matching Player Skin 1.0

PostPosted: Sun Mar 15, 2020 11:00 am
by Xim
Yeah I don't remember if we aligned all the sprites correctly. Hard to do it automatically because some of the sprites are different width. But the inconsistent ones seem to be the chaingun, chainsaw, supershotgun and fist/berserk.

BTW, this is great stuff. Keep it up.

EDIT: Although I must report that GZDoom froze when I picked up the chainsaw in chasecam mode. Might be an infinite loop or something because I had to open up the task manager.

Re: Weapon Matching Player Skin 1.0

PostPosted: Sun Mar 15, 2020 2:07 pm
by Ivory Duke
Thank you for the report.

Fixing the offsets will take a bit more time but I will fix that crash right away, I have a pretty clear idea of what might be the cause

Re: Weapon Matching Player Skin 1.1

PostPosted: Sun Mar 15, 2020 3:52 pm
by Ivory Duke
I addressed the sprite alignement as much as I could and I should have fixed the crash.
I have looked at the sprites both with chasecam and not, picking up weapons in either scenarios and encountered no freezes or crashes