Raised This Month: $ Target: $400
 0% 

[L4D1 & L4D2] Remove Weapons/Carryables Collision [v1.0.6 | 17-September-2021]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7365
Plugin Version:
1.0.6
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    326 
    Plugin Description:
    Changes the collision from all weapons or carryables to collide only with the world and static stuff
    Old 11-04-2020 , 17:25   [L4D1 & L4D2] Remove Weapons/Carryables Collision [v1.0.6 | 17-September-2021]
    Reply With Quote #1

    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

    Spoiler


    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_remove_item_collision.sp - 682 views - 15.1 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 12:18.
    Marttt is offline
     


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:29.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode