TF2_DisguisePlayer Function

Disguises a client to the given model and team. Only has an effect on spies.

Note: This only starts the disguise process and a delay occurs before the spy is fully disguised

void TF2_DisguisePlayer(int client, TFTeam team, TFClassType classType, int target)


int client

Player's index.

TFTeam team

Team to disguise the player as (only TFTeam_Red and TFTeam_Blue have an effect)

TFClassType classType

TFClassType class to disguise the player as

int target

Specific target player to disguise as (0 for any)


Invalid client index, client not in game, or no mod support.