Menu

Worldspawn

Chase Rayment

Worldspawn is a representation of the Portal 2 worldspawn entity. Worldspawn is represented by "Map Properties" in Hammer.

Class definition:

Weapon_Portalgun(name='', mapDescription='', skybox='sky_black_nofog', chapterTitle='', levelFadeIn=False, displayGameTitle=False, newLevelUnit=False, maxOccludeeArea=0, minOccluderArea=0, maxOccludeeAreaXbox=0, minOccluderAreaXbox=0, startFadePixels=-1, endFadePixels=0, detailVbspFile='detail.vbsp', detailMaterialFile='detail/detailsprites', worldIsCold=False, responseContexts='', paintInMap=False, maxBlobs=250, scriptThinkFunction = '', entityScripts = '')

  • name is the name of the map. Defaults to blank.
  • mapDescription is the description of the map. Defaults to blank.
  • skybox is the skybox texture. Defaults to sky_black_nofog.
  • chapterTitle is the chapter title. Defaults to blank.
  • levelFadeIn indicates whether or not the level should fade in. Defaults to False.
  • displayGameTitle indicates whether or not to display the game title. Defaults to False.
  • newLevelUnit indicates whether or not to create a new level unit. Defaults to False.
  • maxOccludeeArea is the maximum occludee area. Defaults to 0.
  • minOccluderArea is the minimum occluder area. Defaults to 0.
  • maxOccludeeAreaXbox is the maximum occludee area on XBox. Defaults to 0.
  • minOccluderAreaXbox is the minimum occluder area on XBox. Defaults to 0.
  • startFadePixels is the distance at which to start fading. Defaults to -1.
  • endFadePixels is the distance at which to stop fading. Defaults to 0.
  • detailVbspFile is the detail vbsp file. Defaults to detail.vbsp.
  • detailMaterialFile is the detail material file. Defaults to detail/detailsprites.
  • worldIsCold indicates whether or not the world is cold.
  • responseContexts is the response contexts of the map. Defaults to blank.
  • paintInMap indicates whether or not there is paint in the map. Defaults to False.
  • maxBlobs is the maximum number of blobs. Defaults to 250.
  • entityScripts is the name of the entity scripts. Defaults to blank.
  • scriptThinkFunction is the name of the script think function. Defaults to blank.

More info on the entity: https://developer.valvesoftware.com/wiki/Worldspawn


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.