Raised This Month: $ Target: $400
 0% 

[L4D2] Grenade Launcher World Hit Fix [v1.0.1 | 08-July-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7333
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Makes the grenade launcher projectile explode when hit the worlds min/max instead of vanish
    Old 10-12-2020 , 18:27   [L4D2] Grenade Launcher World Hit Fix [v1.0.1 | 08-July-2023]
    Reply With Quote #1

    L4D2 ONLY

    Description

    By default, if the grenade launcher projectile hits the world min/max it vanishes (more noticeable when hit the "sky"), this plugin makes it explode in these situations as if it has hit the ground.

    Features
    • Makes the grenade launcher projectile explode when hit the world min/max instead of vanishing.

    Preview



    Steps to Reproduce
    • Take a grenade launcher
    • Shoot above aiming to the sky
    • The projectile vanishes
    • Enable the plugin
    • Shoot again
    • Now the projectile explodes

    Cvars

    A configuration file named "l4d2_gl_world_hit_fix.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"
    l4d2_gl_world_hit_fix_enable "1" 
    Admin Commands
    • sm_print_cvars_l4d2_gl_world_hit_fix => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • This plugins sets the m_takedamage netprop to 2 for grenade_launcher_projectile entities.

    Incompatible Plugins

    Related Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d2_gl_world_hit_fix.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_gl_world_hit_fix.sp - 42 views - 8.6 KB)
    __________________

    Last edited by Marttt; 08-09-2024 at 10:20.
    Marttt is offline
    Tank Rush
    Senior Member
    Join Date: May 2019
    Location: Argentina
    Old 10-12-2020 , 19:26   Re: [L4D2] Grenade Launcher World Hit Fix
    Reply With Quote #2

    Great plugin Marttt!
    Is it possible to make the grenade launcher projectile fall instead of exploding?
    __________________
    Sorry i don't speak english very well

    --->My name is Source and I'm on Steam<---
    Discord: Source#9382
    Tank Rush is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 10-12-2020 , 19:34   Re: [L4D2] Grenade Launcher World Hit Fix
    Reply With Quote #3

    I will check, the problem is that the detection mode (the way I did it) for the "sky" and for the "ground" are kindly the same (worldspawn, entity 0) so could fire some false-positives. Thanks for the feedback.

    I was able to make it bounce, but wasn't looking good, I suggest using Silvers [L4D2] Flare Gun plugin, which has this feature, instead of this plugin.
    __________________

    Last edited by Marttt; 03-07-2021 at 16:11.
    Marttt is offline
    Reply


    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 05:37.


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