1234567891011121314151617181920212223242526272829303132 |
- // define script security contexts to restrict commands to certain contexts
- // do NOT modify
- // supported contexts: CORE (hardcoded scripts), CFG (known scripts), PROMPT (command prompt),
- // MAPCFG (map config files, we don't trust them), MDLCFG (model config files, same)
- // set allowed commands for the map config context
- looplist [
- loadnotexture loadsky fog fogcolour watercolour shadowyaw
- mapmodelreset mapmodel texturereset texture mapsoundreset mapsound
- ] s [
- scriptcontext MAPCFG $s
- ]
- looplist [
- md2anim md2emit md2tag
- md3anim md3emit md3link md3load md3skin
- mdlalphatest mdlalphablend mdlcachelimit mdlcullface mdlscale mdlshadowdist mdltrans mdltranslucent mdlvertexlight mdlattribute
- ] s [
- scriptcontext MDLCFG $s
- ]
- // isolate the map config context
- // this disables access from this context to identifiers located in other contexts
- // also it removes all aliases created in this context once the running context changes
- isolatecontext MAPCFG
- isolatecontext MDLCFG
- // secure this configuration for the rest of the game
- sealcontexts
|