Post news RSS Mapbase v6.1 released

Mapbase's v6.1 update has been released. This update mainly aims to fix issues introduced in previous updates and generally avoids high-risk changes which could cause regressions.

Posted by on

Mapbase Version 6.1


Mapbase v6.1 Release Build

Mapbase Release Build


Changelist:

Game:

- Added postprocess_controller entity from later versions of Source
- Added env_dof_controller entity from later versions of Source
- Fixed auto-breaking game_text/choreo text not null terminating
- Fixed console groups showing up at the wrong developer levels (reported by Iridium77)
- Added more mesages to console groups, including a new "NPC AI" console group
- Fixed typos and added elaboration in various cvars, console messages, etc.
- Fixed npc_metropolice not using frag grenades correctly when allowed to use them
- Fixed npc_metropolice not registering stitching squad slots in AI
- Fixed SetModel input late precache warning
- Fixed env_global_light angles resetting upon loading a save
- Fixed a crash caused by removing the active weapon of a Combine soldier while it's firing
- Changed the way metrocops deploy their manhacks so they could use their manhack death response properly
- Added new inputs to item_item_crate related to crate contents
- Added spawnflag to npc_helicopter for aiming at enemies even when the gun is off
- Fixed game_convar_mod "Start Activated" flag not working (reported by 1upD)

Files/Scripts:

- Fixed npc_metropolice using the manhack downed line for the regular "man down" context
- Added various flashlight textures intended to be used with env_projectedtexture for more lighting options

VScript:

- Fixed an issue with ScriptKeyValuesRead using the wrong name and having a memory leak (reported by samisalreadytaken)
- Allowed VScript functions which return null strings to actually return null instead of empty strings (contributed by samisalreadytaken)
- Added VScript member variable documentation
- Fixed VScript documentation lines sometimes mixing together
- Fixed VScript singletons having a ! at the beginning of descriptions
- Added Color struct to VScript and allowed color-related inputs to use it
- Added more VScript functions for weapons, ammo, ragdolling, and response contexts
- Added GameRules singleton for VScript
- Exposed AI interaction system to VScript
- Recovered some lost VScript documentation from older revisions of the Mapbase wiki
- Added a way to get the current game's load type in VScript
- Fixed Precache/SpawnEntityFromTable not accounting for a few important field types
- Added VScript functions for getting a player's eye vectors
- Added VScript functions for NPC sleeping/waking
- Added VScript functions for getting sounds from surface data
- Adjusted CAI_Expresser in VScript
- Fixed VScript save/restore crashing under certain circumstances involving Vector (contributed by reductor)

Shaders:

- Added SDK_Engine_Post and DepthOfField shaders from the Momentum repo/Alien Swarm SDK

Compile Tools:

- Fixed excessive amounts of parallax corrected cubemaps messages being printed in VBSP

FGD:

- Fixed some instructor hint icons being missing from the FGD

The main purpose of this update is to fix bugs and include changes which were accidentally omitted in v6.0.


postprocess_controller and env_dof_controller are entities from later Source games which have been heavily requested for Mapbase. I meant to look into them for v6.0, but I didn't remember to until it was too late.

These entities can be used to control a wide variety of new post-processing effects which are designed to enhance a specific scene or art style. postprocess_controller is heavily used in the Left 4 Dead series for "filmic" effects which enhance the art style, such as film grain or vignette blur. env_dof_controller controls a specific depth-of-field blurring effect which can be used to cinematically adjust the focus in a scene.

Post-processing stuff

Aside from VScript changes and the new env_projectedtexture textures, this can be considered the only "new" feature in this update.


This update will also add a few new textures for use in env_projectedtexture.

New textures will include:

  • effects/flashlight_soft001 - A soft, quadratic light with a smoother falloff than the default texture.
  • effects/flashlight_glare001 - A glare-like light which resembles a four-pointed star.
  • effects/flashlight_glare002 - A smaller, diagonal version of `glare001` which looks more like a diamond.
  • effects/flashlight_gradient001 - A linear gradient which fades out of one direction with no soft edges.
  • effects/flashlight_gradient002 (not shown) - A higher-constrast version of `gradient001` which reduces the gradient part and highlights the bright and dark sides.
  • effects/flashlight_gradient003 - A linear reflection gradient which fades out from the center.
  • effects/flashlight_square001 (not shown) - A quadratic, square-shaped light with no soft edges.
  • effects/flashlight_square002 (not shown) - A soft-edged version of `square001`.

Flashlight textures


Various VScript issues will be fixed in this update and a few new classes/functions have been added as well. The script_help command has been slightly refactored to make it more reliable and print more information.

The new `GameRules` singleton allows VScript to see or change game-specific rules, including the player's difficulty level. This will probably be more useful in MP, where mods are more likely to have their own game rules.

This update also adds tons of other VScript functions which seem completely unrelated to each other; this is because I personally have been working on a bunch of new creations with VScript alongside this update (e.g. a script which allows players to possess NPCs, a script which allows players to keep their stuff upon loading a previous save, etc.) and I added new classes/functions/constants as I needed them. I am planning on adding these creations to Mapbase's VScript samples in the future.


If you find any issues with this update, please report them here, on the Discord server, or on the repo's "Issues" page.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.