Teleporters are being spawn incorrectly:
You cant use this code this way, because properties below use different values
Code:
SetEntProp(teleporter, Prop_Data, "m_iTeleportType", mode);
SetEntProp(teleporter, Prop_Send, "m_iObjectMode", mode);
Below are the enums from tf2.inc . Your plugin made me pull my hair out because I could figure out why are my teleporters broken after I linked them... an entrance turned into an exit and an exit turned into an entrance, but they started working correctly after first use. All because of your bad code and me being blind.
Code:
enum TFObjectMode
{
TFObjectMode_None = 0,
TFObjectMode_Entrance = 0,
TFObjectMode_Exit = 1
};
Teleporter Type <choices>
Sets whether this teleport is an entrance to another or an exit from another.
1 : Entrance
2 : Exit
__________________