Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[TF2] Enable death animations for robots in mvm

Open condor00fr opened this issue 3 years ago • 1 comments

robots have a fully working set of death animations (aside from engiebots who use player ones) for backstab and headshots, why where they disabled I have no idea as they don't impact gameplay in any way and adds a comic touch.

Additionally it would be nice to make robots fall back to player animations when there arn't any actual ones in the game files (such as swimming/ jumping, ect) engie bots already does this and is really good for server plugins that lets you play as a robot.

condor00fr avatar Aug 01 '22 11:08 condor00fr

why not, nice idea

JonaMake avatar Aug 02 '22 11:08 JonaMake

There's a condition in CTFPlayerShared::GetSequenceForDeath in tf_player_shared.cpp which checks if the gamemode is MvM.

{
	if ( !pRagdoll )
		return -1;

	if ( TFGameRules() && TFGameRules()->IsMannVsMachineMode() )
	{
		if ( m_pOuter && ( m_pOuter->GetTeamNumber() == TF_TEAM_PVE_INVADERS ) )
			return -1;
	}

Removing the check && ( m_pOuter->GetTeamNumber() == TF_TEAM_PVE_INVADERS ) should enable these animations for the robots.

Ashetf2 avatar Jul 14 '23 14:07 Ashetf2