xensik / gsc-tool

A utility to compile & decompile IW engine game scripts.
GNU General Public License v3.0
230 stars 42 forks source link

feat(preprocessor): add engine name builtin macro #179

Closed ClementDreptin closed 8 months ago

ClementDreptin commented 8 months ago

This PR adds a new builtin macro for the engine name.

The main use case I see is writing scripts for multiple engines. This is particularly useful for functions/methods that were renamed like setPlayerAngles that was renamed to just setAngles in s1.