Wire Gate Variables

I’m confused about how the wired gates are working on the Lua side of things.

I need to find the variable that defines the type of gate that is spawned.

eg.

Logic - Not Or
Comparison - Less than

Can someone explain how this variable is worked out and where it is stored.

Also sorry wrong section.

wire\lua\wire\gates

Would you think it at all possible to take the type variable from that section and place it in the cl_init.lua for the gate model itself.

I’m trying to take the variable and use it as a 3d2d on the chip itself.