Description
This plugin changes the collision from all weapons or carryables to collide only with the world and static stuff.
Useful on servers where is possible to have many items in almost the same place (e.g. through !buy system), which can cause lag because of the number of items colliding.
Features- Changes the collision for all weapons or carryables to collide only with the world and static stuff.
- Allows disabling motion for all weapons or carryables on hit/shove.
Cvars
A configuration file named "
l4d_remove_item_collision.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_remove_item_collision_enable "1"
// Allow motion when the item is hit.
// 0 = OFF, 1 = ON.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_remove_item_collision_motion "0"
// Allow motion when the item is shoved.
// 0 = OFF, 1 = ON.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_remove_item_collision_shove_motion "1"
Admin Commands
- sm_print_cvars_l4d_remove_item_collision => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- This plugin precache some models.
- Collision Group (m_CollisionGroup) was changed to 2 (COLLISION_GROUP_DEBRIS_TRIGGER).
- BUG: Using m_CollisionGroup = 1 (COLLISION_GROUP_DEBRIS), prevents prop_physics entities from being picked up, but weapon_* entities seems to work normal with m_CollisionGroup = 1.
- Because of the new collision group, some items can be in the same place, looking as if it was just one.
To Do
- Create specific config for each entity class.
Recommended Plugins
Related Plugins
Thank you!
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d_remove_item_collision.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.