View Single Post
Pelee
Member
Join Date: May 2020
Old 09-24-2020 , 16:17   Re: [L4D2] Objects Spawner [2.0 Reloaded] v2.0.6 (Save Objects Supported)
Reply With Quote #201

Quote:
Originally Posted by Spirit_12 View Post
[L4D2] Objects Spawner 3.0

Version 3.0

Video:

http://www.youtube.com/watch?v=6rEponriV_0

*Thanks to superbunny

Installation

Code:
Place l4d2_spawn_props.smx in the sourcemod/plugins folder.
Place l4d2_spawn_props_models.txt in sourcemod/data folder.
Details

This plugin will create all the required directories on its own. It is highly recommended to install stripper source for full functionality. (https://forums.alliedmods.net/showthread.php?t=39439)

For the people interesting in routing functionality. There is a new ConVar "l4d2_spawn_props_routing_dir".

ConVars

Code:
// Enable the plugin to auto load the cache?
// -
// Default: "0"
l4d2_spawn_props_autoload "0"

// Should the paths be different for the teams or not?
// -
// Default: "1"
l4d2_spawn_props_autoload_different "1"

// Enable the Decorative category
// -
// Default: "1"
l4d2_spawn_props_category_decorative "1"

// Enable the Exterior category
// -
// Default: "1"
l4d2_spawn_props_category_exterior "1"

// Enable the Foliage category
// -
// Default: "1"
l4d2_spawn_props_category_foliage "1"

// Enable the Interior category
// -
// Default: "1"
l4d2_spawn_props_category_interior "1"

// Enable the Misc category
// -
// Default: "1"
l4d2_spawn_props_category_misc "1"

// Enable the Vehicles category
// -
// Default: "1"
l4d2_spawn_props_category_vehicles "1"

// Enable the Dynamic (Non-solid) Objects in the menu
// -
// Default: "1"
l4d2_spawn_props_dynamic "1"

// Log if an admin spawns an object?
// -
// Default: "1"
l4d2_spawn_props_log_actions "1"

// Enable the Physics Objects in the menu
// -
// Default: "1"
l4d2_spawn_props_physics "1"

// Enable the Static (Solid) Objects in the menu
// -
// Default: "1"
l4d2_spawn_props_static "1"

// Version of the Plugin
// -
// Default: "3.0"
l4d2_spawn_props_version "3.0"

// Should routing files be kept in its own folder?
// -
// Default: "1"
l4d2_spawn_props_routing_dir "1"
Commands

Code:
 - sm_spawnprop			- Spawns an object with the given information
 - sm_savemap			- Save all the spawned object in a stripper file
 - sm_grabprop			- Grabs the last object to move it
 - sm_grablook			- Grabs the looking object to move it
 - sm_prop_rotate		- Rotates the last spawned object with the desired angles
 - sm_prop_removelast		- Remove last spawned object
 - sm_prop_removelook		- Remove the looking object
 - sm_prop_removeall		- Remove all objects
 - sm_prop_move			- Move an object with the desired movement type
 - sm_prop_setang		- Forces an object angles
 - sm_prop_setpos		- Sets the last object position
 - sm_debugprop			- Enable/Disable Debug
 - sm_spload			- Load specific map
ChangeLog

I've been working on this on and off, so its hard to provide exact change-log, but these are the highlights.

Code:
 - Switched to Transitional Syntax.
 - Auto create the required directories.
 - Fixed menu jump back after spawning each item.
 - Added "grab item" option to the menu for easier editing.
 - Switched the plugin paths to reflect current stripper path.
this crashes with today's last stand update
Pelee is offline