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 all
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.
Code: Select all
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