Prop Spawner

Published: Jan 19, 2024

Improving the Object Spawner for L4D2, redesigned from scratch. The model list was taken and improved upon, separating them into separate files and re-organized/renamed. The prop spawner is built into my L4D2 Hats plugin, which also includes a wall builder (that has been extended as the editor for previews)

.smx file Source Code (.sp) Usage Tutorial

Improvements

  • Each category has its own file, to allow easier editing
  • Dynamically loading of categories, no hardcoded lists
  • Nested category supported
  • Searching props
  • Recents & Favorites lists
  • Reorganized & renamed some categories/items
  • Spawn previews

Spawn Previews

The biggest improvement is that the item you select is shown as a preview, and not just spawned a certain distance in front of you. This way you can see the model, to confirm it’s what you want, and choose precisely where you want to place it and how. The preview lets you rotate the object, or switch to a different model, and allows you to still spawn them in quick succession.

Saving & Loading

The object spawner was hardcoded to 20 positions, but the new prop spawner dynamically loads the files from disk, no more guess work remembering how many saves there are. The new spawner now supports unlimited different saves, and lets you easily rename saves to make it easier to remember what save has what.