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:
Quote:
Originally Posted by jouva
Found a bug: When you change classes in spawn where "suicide after class change" is unchecked, world view still has the hat from the previous class even if it's not available for that class.
My guess is that it's related to Item_RetrieveSlotCookie only checking the current class. player_death unequips so a suicide before the class change unequips before the respawn.
|