This extension adds language support for the GSC scripts used in Call of Duty (CoD1, CoD2, CoD3, CoD4, CoD5:WaW, CoD6:MW2, COD7:BO1).
This extension is still under development and is not fully finished. Check the list of the available features in List of features.
Game | Status | Tested with |
---|---|---|
CoD1 | ✅ Tested | raw files |
CoD2 | ✅ Tested | raw files zPAM 3.33 mod - https://github.com/eyza-cod2/zpam3 |
CoD4 | ✅ Tested | raw files Promod 2.20 mod - https://github.com/promod/promod4 OpenWarfare mod - https://github.com/cod4mw/openwarfare |
CoD5 | ❌ Not tested | - |
CoD6:MW2 | ❌ Not tested | - |
CoD7:BO1 | ✅ Tested | Redemption mod - https://github.com/roachnacs/redemption-bo1-gsc Reimagined zombies mod - https://github.com/Jbleezy/BO1-Reimagined |
Other | 🚫 Not supported |
Games released later will not be supported because the GSC syntax changed significantly since then.
Syntax highlighting
Completion items (local functions)
Completion items (included functions)
Completion items (with CoD2 MP functions)
Completion items (variables)
Completion items (variables with recognized variable type)
Completion items (variables from included workspace folders)
Diagnostics
Diagnostics - invalid file for #include
Function definition
Function hover info
Function hover info over CoD2 MP function spawn:
Code actions (include folder for file references)
Code actions (ignore missing files)
Workspace folders
Status bar
/*...*/
, //...
)/# ... #/
)#include
, #using_animtree
, #animtree
)return
, if
, else
, for
, while
, switch
, continue
, break
, case
, default
, thread
, wait
, waittillframeend
, waittill
, waittillmatch
, endon
, notify
, breakpoint
)=
, +=
, -=
, *=
, /=
, %=
, |=
, &=
, ^=
, ++
, --
, +
, -
, *
, /
, %
, |
, &
, ^
, <<
, >>
, ==
, !=
, <
, >
, <=
, >=
, &&
, ||
, !
, ~
)"default"
, &"STRING_LOCALIZED"
, #"sv_cvar_string"
)%xanim_file_name
)maps\mp\gametypes\sd
)level
and game
)funcName()
)maps\mp\gametypes\file::funcName()
)#include
)notify
waittill
waittillmatch
endon
in completion item providerThis extension is available through Visual Studio Marketplace.
Please test this extension in vscode on your GSC files and report bugs / suggestions on the github page or on discord KILLTUBE #vscode-cod-gsc