Quote:
Originally Posted by Dogen
The Hawaiian hunter hat puts the unusual effect at the chest, is there a way to fix that?
|
Yes, there is! You have to add an attribute (specifically attribute id 520) to the new tf_wearable entity so that it knows to use the player head as the origin point for the particle.
You can append the following line of code inside Items_CreateNamedItem() after line 1598 in the current version.
Code:
TF2Attrib_SetByDefIndex(newitem, 520, 1.0); // FIXES HEAD ORIGIN POINT
I'll attach the modified SP with this line appended as well.
Please note that this may stop some Unusual effects from working. I think the Halloween bats (Poisoned Shadows) are one such example. I don't know the full list but you would have to go through them and check to see what breaks yourself and create some conditional statements as a result