View Single Post
Author Message
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-12-2020 , 17: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 - 160 views - 8.9 KB)
__________________

Last edited by Marttt; 07-08-2023 at 12:58.
Marttt is offline