Page 1 of 1

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

Posted: Wed Dec 14, 2016 12:21 am
by FranckyFox2468
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

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

Posted: Wed Dec 14, 2016 2:18 pm
by Ænima
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.

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

Posted: Wed Dec 14, 2016 3:13 pm
by FranckyFox2468
Guess ill have to go through jump rather than prefered skins then. This is gonna be quite a process .-.

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

Posted: Wed Dec 14, 2016 4:25 pm
by Ænima
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.

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

Posted: Sat Dec 17, 2016 2:49 am
by FranckyFox2468
alright, thanks for the help