So first off, I made this custom weapon in Zscript and I want the player to get some feedback while they use it, along with all the other weapons in the mod. But I'm having trouble with 1 thing, I want the weapon to play an animation while the player is Walking, but I can't figure out how to make the gun change states or simply sprites when the player moves. I also want there to be two animations for Walking and Sprinting. The walking animation will only offset the weapon a little bit, kind of like the regular view bob, but different. And for sprinting, it will simply change the weapon sprites. So how exactly do I get the player's input? I've tried the GetPlayerInput (https://zdoom.org/wiki/GetPlayerInput) but I didn't get anywhere with it ¯\_(ツ)_/¯
Question
Player T
So first off, I made this custom weapon in Zscript and I want the player to get some feedback while they use it, along with all the other weapons in the mod. But I'm having trouble with 1 thing, I want the weapon to play an animation while the player is Walking, but I can't figure out how to make the gun change states or simply sprites when the player moves. I also want there to be two animations for Walking and Sprinting. The walking animation will only offset the weapon a little bit, kind of like the regular view bob, but different. And for sprinting, it will simply change the weapon sprites. So how exactly do I get the player's input? I've tried the GetPlayerInput (https://zdoom.org/wiki/GetPlayerInput) but I didn't get anywhere with it ¯\_(ツ)_/¯
Share this post
Link to post
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.