Raised This Month: $51 Target: $400
 12% 

[L4D1/2] Shotgun Handler [05-Feb-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Orinuse
Junior Member
Join Date: Aug 2021
Plugin ID:
8379
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Allow modding of a Shotgun's reload speed, firing rate or the reload pumps from L4D1.
Old 02-05-2023 , 12:43   [L4D1/2] Shotgun Handler [05-Feb-2023]
Reply With Quote #1

The Shotguns are stubborn and refuse to let you mod their attributes, so I stubbornly forced their attributes to be moddable with help from Lux's "WeaponHandling" Library. Here's what I ended up making possible:
- Customise the durations for each "state" of a Shotgun reload.
- Change firing rate through changing animation playback rate.
- L4D1: Remove or force reload pumps, with the option to force animation updates

Media



How do I get started?
Edit the file that corresponds to your L4D in the "data" folder, which should either be "data/l4d1_shotgun_handler.cfg" or"data/l4d2_shotgun_handler.cfg".

The contents of the files are as follows:
Configs


Console Commands
PHP Code:
// ++ Cvars ++
// ----------- 
// Prints to chat about the weapons's new stats when shooting or reloading.
/// Not saved to the CFG file.
l4d_shotgun_handler_debug "0"

// ++ ConCmd ++
// ------------
// Reloads the data from the plugin's config.
sm_sh_reload 
Changelog
Code:
> v1.0 (05-Feb-2023)
- Released on Alliedmodders publicly after at least 365 days. Happy birthday my plugin.
Installation
Extract the .ZIP file's contents and drop the folders into addons/sourcemod.

Special Mentions
  • Lux - WeaponHandling library.
Attached Files
File Type: zip l4d_shotgun_handler_02060140.zip (13.1 KB, 348 views)

Last edited by Orinuse; 02-05-2023 at 12:47.
Orinuse is offline
Maur0
Senior Member
Join Date: Aug 2020
Old 02-05-2023 , 22:21   Re: [L4D1/2] Shotgun Handler [05-Feb-2023]
Reply With Quote #2

At last! Now the shotguns can be modified the recharge and firing time. Since I think that the txt file of the weapons does not work well.

Good job!
Maur0 is offline
Nmax0
New Member
Join Date: Oct 2023
Old 10-13-2023 , 04:14   Re: [L4D1/2] Shotgun Handler [05-Feb-2023]
Reply With Quote #3

Hi I'm having some getting the shotgun handler (l4d2_shotgun_handler) to work. I put the files to where it should be but even if I modify the cfg file and try to test it on tumtara it doesn't seem to be working. The ff is what I modified in the cfg file. I'm new to this and I'm just trying to help my bud out any tips or advice? I modified the pumpshotgun and chrome shotgun values but it still didn't increase or decrease their respective shotguns.


// Tier 1s
// >> L4D2WeaponType_Pumpshotgun <<
"weapon_pumpshotgun"
{
"mult_refiretime" "420.00"
"mult_reloadtime_start" "420.00"
"mult_reloadtime_insert" "420.00"
"mult_reloadtime_end" "420.00"

// Don't touch
"base_refiretime" "0.875"
"base_reloadtime_start" "0.475"
"base_reloadtime_insert" "0.500"
"base_reloadtime_end" "0.600"
"weapontype" "17"
}
// >> L4D2WeaponType_PumpshotgunChrome <<
"weapon_shotgun_chrome"
{
"mult_refiretime" "0.50"
"mult_reloadtime_start" "0.00"
"mult_reloadtime_insert" "0.50"
"mult_reloadtime_end" "0.50"

// Don't touch
"base_refiretime" "0.875"
"base_reloadtime_start" "0.475"
"base_reloadtime_insert" "0.500"
"base_reloadtime_end" "0.600"
Nmax0 is offline
Reply



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 15:50.


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