Weapon.PreferredSkin and Player.CrouchSprite with different sprite names?

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
FranckyFox2468
Forum Regular
Posts: 180
Joined: Sat May 07, 2016 8:30 pm

Weapon.PreferredSkin and Player.CrouchSprite with different sprite names?

#1

Post by FranckyFox2468 » Wed Dec 14, 2016 12:21 am

I'm kinda wondering, is it possible to use Weapon.PreferredSkin and Player.CrouchSprite if some frames of animations uses different names?

for instance let's say the walking animation is called DGG1 and the underwater walking animation is called DGS1 and the deaths animations uses different names.

If so how would that work?

It's because i wanna try to make some player classes that has a lot of frames and animations while being able to have distinct different weapon sprites to guide the other players and allowing them to also have crouching sprites

User avatar
Ænima
Addicted to Zandronum
Posts: 3523
Joined: Tue Jun 05, 2012 6:12 pm

Re: Weapon.PreferredSkin and Player.CrouchSprite with different sprite names?

#2

Post by Ænima » Wed Dec 14, 2016 2:18 pm

You gotta put tons of state jumps and custom states in the player actor. That's really the only way to do what you're describing.
­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­
Doom64: Unabsolved: New weapons, monsters, and gameplay features for coop !


ZandroSkins
: a pack made by our community

User avatar
FranckyFox2468
Forum Regular
Posts: 180
Joined: Sat May 07, 2016 8:30 pm

Re: Weapon.PreferredSkin and Player.CrouchSprite with different sprite names?

#3

Post by FranckyFox2468 » Wed Dec 14, 2016 3:13 pm

Guess ill have to go through jump rather than prefered skins then. This is gonna be quite a process .-.

User avatar
Ænima
Addicted to Zandronum
Posts: 3523
Joined: Tue Jun 05, 2012 6:12 pm

Re: Weapon.PreferredSkin and Player.CrouchSprite with different sprite names?

#4

Post by Ænima » Wed Dec 14, 2016 4:25 pm

FranckyFox2468 wrote:Guess ill have to go through jump rather than prefered skins then. This is gonna be quite a process .-.
It's really not a big deal, it just looks messier than it is. Just put your series of jumps at the very beginning of each of the main states like See, Spawn (remember to add a "TNT1 A 0" at the very beginning though since you can't run any actions in the first spawn frame), Pain, Missile, etc. Then just name your "substates" accordingly. SeeSwimming, MissilePistol, MissileShotgun, etc.

The only pain in the ass that I can foresee is that you're gonna have to duplicate all of those new states and make a whole 'nother set for crouching.
­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­
Doom64: Unabsolved: New weapons, monsters, and gameplay features for coop !


ZandroSkins
: a pack made by our community

User avatar
FranckyFox2468
Forum Regular
Posts: 180
Joined: Sat May 07, 2016 8:30 pm

Re: Weapon.PreferredSkin and Player.CrouchSprite with different sprite names?

#5

Post by FranckyFox2468 » Sat Dec 17, 2016 2:49 am

alright, thanks for the help

Post Reply