ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
655 stars 76 forks source link

[TF2] Robots and Giant Robots don't play taunts added after MvM Update #4462

Open Ashetf2 opened 2 years ago

Ashetf2 commented 2 years ago

From Sigsegv in their fix: https://gamebanana.com/mods/206443

"The MvM robot models are lacking many animations that are not normally used by robots in MvM, or which have been added to the game more recently than the Mann vs Machine Update."

"I decompiled the bot model files with the Crowbar tool. Then I made a very simple addition to the main QC file. I'll show an example here with the non-giant soldier model.

bot_soldier.qc (before):

$includemodel "bots/soldier/bot_soldier_animations.mdl"

bot_soldier.qc (after):

$includemodel "bots/soldier/bot_soldier_animations.mdl"

$includemodel "player/soldier_animations.mdl"

For giants, I made them fallback to the non-giant bot animations first, and then fallback to the human animations. It might not make much of a difference, but I believe there are a few animations that are missing in the giant bot models but present in the non-giant bot models.

bot_soldier_boss.qc (before):

$includemodel "bots/soldier_boss/bot_soldier_boss_animations.mdl"

bot_soldier_boss.qc (after):

$includemodel "bots/soldier_boss/bot_soldier_boss_animations.mdl"

$includemodel "bots/soldier/bot_soldier_animations.mdl"

$includemodel "player/soldier_animations.mdl"

After making this small modification, I recompiled the model files with Crowbar."

condor00fr commented 2 years ago

Would do marvelous for community serveurs that lets you play as the robots via custom plugins.

condor00fr commented 2 years ago

Causs right now, instead of playing the animations, they just stay still instead. Wich sucks.

Ashetf2 commented 1 year ago

Workshop submission: https://steamcommunity.com/sharedfiles/filedetails/?id=2988634852

Ashetf2 commented 1 year ago

Engineer bot: https://steamcommunity.com/sharedfiles/filedetails/?id=2997033032