Quote:
Originally Posted by jameless
@Damizean: After staring at your code I see why the team color isn't showing properly to other players. When you make it so the player can see a hat using TF2_EquipWearable you assign m_iTeamNum and m_nSkin to the entity. But when you use Attachable_CreateAttachable to create the entity for everyone else to see you never assign it those properties thus forcing TF2 to pick a skin that may not be the client's color. I tried myself to figure out the syntax for adding these values to the entity but have failed to do so. I am just not familiar enough with the programming language to know the proper syntax to change these properties.
I apologize if you already knew this but I didn't see any post indicating that you did. I really hope this helps.
|
It's as Asherkin said, changing either the flags or the skin index for the entity created by voogru's extension is not possible, as it'll make the model invisible again.
Code:
Damizean, you need this in your init code:
Code:
HookEvent("player_changeclass", Event_RemoveItem, EventHookMode_Pre);
This will fix the issue I brought up here:
Thanks jouva, I'll put it in for the next release.
__________________