redsunservers / SuperZombieFortress

Custom Team Fortress 2 Gamemode, inspired from Left 4 Dead
GNU General Public License v3.0
36 stars 27 forks source link

Allow disguise as anyone except Spy #141

Closed FortyTwoFortyTwo closed 1 year ago

FortyTwoFortyTwo commented 1 year ago

Previously it only allows to disguise with matching target's class due to default disguise look not having zombie effects, giving an obvious look.

This change makes it so that if disguising as a class that no zombies is playing as, it then changes the look to have zombie skin, zombie cosmetic, and SZF's default melee weapon. This should make it as identical as any other zombies.

Disguising as Spy is disallowed because clientside does not allow to be able to show zombie skin, instead showing as a normal spy with a random mask class.

Disguising as Engineer however does not show it's Gunslinger hand correctly, which I'm not sure if it's possible to fix.