scontext.cfg 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. // define script security contexts to restrict commands to certain contexts
  2. // do NOT modify
  3. // supported contexts: CORE (hardcoded scripts), CFG (known scripts), PROMPT (command prompt),
  4. // MAPCFG (map config files, we don't trust them), MDLCFG (model config files, same)
  5. // set allowed commands for the map config context
  6. looplist [
  7. loadnotexture loadsky fog fogcolour watercolour shadowyaw
  8. mapmodelreset mapmodel texturereset texture mapsoundreset mapsound
  9. ] s [
  10. scriptcontext MAPCFG $s
  11. ]
  12. looplist [
  13. md2anim md2emit md2tag
  14. md3anim md3emit md3link md3load md3skin
  15. mdlalphatest mdlalphablend mdlcachelimit mdlcullface mdlscale mdlshadowdist mdltrans mdltranslucent mdlvertexlight mdlattribute
  16. ] s [
  17. scriptcontext MDLCFG $s
  18. ]
  19. // isolate the map config context
  20. // this disables access from this context to identifiers located in other contexts
  21. // also it removes all aliases created in this context once the running context changes
  22. isolatecontext MAPCFG
  23. isolatecontext MDLCFG
  24. // secure this configuration for the rest of the game
  25. sealcontexts