how extract .fgd file of entities from qwprogs.dat MOD folder?

for example i want get all entities from Fortress mega coop.
how doing?

.fgd file - is file where all entities for trenchbroom

I have no knowledge of the team fortress, but it is possible to “read” the qwprogs.dat with an editor. Let’s say Texpad.
You’ll get an large chunk of binary with specification of the used entities. If that is…, the same inventor quake uses.

Another way is to use fteqc to decompile the qwprogs.dat. Then you have (with respect to the authors) all you need to make fgd file.