This picture is showing the fire escape command. It parents all the escapes to the bottom one so they can be moved/rotated as one. (NOTE: fire escapes will only be traversable if you keep them at right angles. use "sm_prop_setang 0 0 0" then adjust the horizontal rotation in 90 degree increments.)
Object Spawner version updated by xio (with huge thanks to honorcode for this great plugin)
Here is what I have so far:
Code:
l4d2_object_spawner_show_count 0 [0|1] Print total object count to all (chat) on every object spawn
l4d2_object_spawner_autoload 1 [0|1] Enable the plugin to auto load the cache
l4d2_object_spawner_autoload_different 0 [0|1] Teams in competitive modes play different paths
l4d2_object_spawner_log_actions 1 [0|1] Log admin spawns to logs/objects_DATE
l4d2_object_spawner_log_plugin 1 [0|1] Log plugin information (debug) to logs/objects_DATE", FCVAR_PLUGIN);
sm_props Displays total object count and type info (if available) in the chat");
sm_spawnitem Spawns an item with the item name ex. !spawnitem smg
sm_spawnlight Spawns a work light (use 0 for unbreakable and 1 for breakable) ex. !spawnlight 1
sm_spawnfe Spawns a fire escape with the specified amount of levels ex. !spawnfe 3
sm_spawntruck Spawns a delivery truck with glass pre-attached
sm_spawnspawn Spawns a 'spawn' with the given type and count ex. !spawnspawn rifle 4
sm_despawn Despawns a map object and can be saved to round start just like props
sm_despawn_clear Delete all despawns in the map (in case you need them removed)
sm_prop_select Selects the (aimed at) object as the last spawned object (to edit)
sm_prop_set Sets the (aimed at) phys object's current position to be saved as spawn location
sm_prop_setlast Sets the last object's current position to be saved as spawn location"
sm_prop_nudge Nudge the last phys object to enable physics
sm_removebyname Remove all props that have a model that contains this string"
//DEV
sm_savemap Save all the spawned objects
sm_osrefresh Refresh Object Spawner admin menu
sm_osload Load object spawn save file
sm_debugprop DEBUG last spawned object
I've been working on this to make editing maps much easier/faster, since i like changing up the default maps on my server.
It will work with your old saves from prop spawner but keep backups just in case.
I have no change log, but various bug fixes have been implemented. For example, you may now grab objects and have their locations/angles be saved rather than discarded.
This version only supports the plugin's save option. I decided to not support stripper or routing files since I didn't need them and it would have been tedious to add all the new features to them (without know much about either of them). If you'd like to add support for that, feel free.
You may also notice that I haven't implemented the new features into the menus yet. This is because I haven't had much experience yet with the menus. If you can add them, feel free :]
Install:
To use this version you will need all the files from the original post. Just remove the original prop spawner plugin and replace it with this one.
This version will work with any previous files you may have saved with the old version (but not stripper/routing files).
NOTE: you also have to rename your /sourcemod/data/l4d2_spawn_props_models.txt file to l4d2_object_spawner_models.txt
or you can use the one i have two posts below.
CFG Keypad binds: I have included my CFG files to make the editing easier for those of you who like binds.
The cfgs have two profiles, Admin and Build-mode, which can be swapped between with the keypad's zero key.
edit them to your liking :]
EDIT: I will not be maintaining this with new features as I originally planned, I apologize. If you like what little I have done with this maybe you can advance it :]