Port some missing things in c_te_legacytempents.cpp

Hopefully fix most of the smoke issues