tf2classic / tf2classic-issue-tracker

For reporting bugs in Team Fortress 2 Classic.
11 stars 0 forks source link

Various missing attachments on TF2C characters causing issues with custom maps using SetParentAttachment. (mainly back_lower) #363

Open 111112oo opened 4 months ago

111112oo commented 4 months ago

Many custom maps I want to run on my server use the SetParentAttachment output on players to do various things. Such as custom flag type pickups, trails, transferring the player's aim into an entity, and parenting targets for map based NPCs! However some of the attachments found on players that these maps use are not present in TF2C! This causes major issues on some of these maps, where targets parent from a distance instead of teleporting to the player, things completely break as a result. The "back_lower" attachment is used the most with this technique but it's not in TF2C. Yes, these attachments were intended for cosmetics in live TF2, but mappers have used these to do some wild things and my request is not about cosmetics. I want to be able to run more maps on my server.

Here is a test map .vmf to showcase this: test_tf2cattachments.txt The red square parents to attachments found on all TF2C and live TF2 classes. These are "flag", "head" and "partyhat". The blue square parents to attachments that are on some classes but not on others. The dark blue sprites are for attachments which are on all live TF2 classes but not all TF2C classes. These are "foot_L" and "foot_R" The light blue sprites are for eyes which are the same situation between TF2C and live TF2, where Pyro and Engineer have no eye attachments while Demoman is missing one. These are "eyes", "righteye" and "lefteye" The yellow square parents to attachments found on all live TF2 player models but not on any TF2C classes. These are "back_lower", "effect_hand_L" and "effect_hand_R". The button in the corner clears all parents.

There exist other attachments in the "blue" category I defined, but the ones I listed are the important ones, the rest are too niche or overtly class specific.

I would add the "back_lower", "effect_hand_L", "effect_hand_R", "foot_L" and "foot_R" attachments to all classes to fix this, and maybe also the single "eyes" attachment to Engineer and Pyro. But if you had to add only 3, the back and foot ones would do.

Here's a related more personal way less important request I have nowhere else to put so you can ignore it for the sake of this issue: Having the "taunt_effect" attachment on characters would be nice and allow for Counter Strike style player parenting. This attachment only exists on a few live TF2 characters sadly.