Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Mission and Weapons - Info Editor (1.25) [25-Oct-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 10-15-2022 , 16:22   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.12) [01-Oct-2020]
Reply With Quote #211

Then something is wrong and it is causing problems on clients.

"all" section of "mission_info"
Code:
"meleeweapons"								"fireaxe;frying_pan;machete;baseball_bat;crowbar;cricket_bat;tonfa;katana;electric_guitar;knife;golfclub;pitchfork;shovel;riotshield"


melee_dump_weapons_server response
Code:
(Server)0: caidao (hash=19) (bf242b0)
(Server)1: onion (hash=18) (bc4f820)
(Server)2: chair (hash=17) (bf87e20)
(Server)3: wrench (hash=16) (fa5c740)
(Server)4: finger (hash=15) (11a54b40)
(Server)5: meleejb (hash=14) (bf86640)
(Server)6: riotshield (hash=13) (eba0310)
(Server)7: shovel (hash=12) (bf7f090)
(Server)8: pitchfork (hash=11) (f405fe0)
(Server)9: golfclub (hash=10) (d732ed0)
(Server)10: knife (hash=9) (f414a70)
(Server)11: electric_guitar (hash=8) (f4138b0)
(Server)12: katana (hash=7) (120efe50)
(Server)13: tonfa (hash=6) (bf8d960)
(Server)14: cricket_bat (hash=5) (bf44be0)
(Server)15: crowbar (hash=4) (d761b90)
(Server)16: baseball_bat (hash=3) (1187ff70)
(Server)17: machete (hash=2) (118822c0)
(Server)18: frying_pan (hash=1) (1188bf80)
(Server)19: fireaxe (hash=0) (120f2930)
When commenting the line the behavior is the expected of the game/campaign



melee_dump_weapons_server response
Code:
(Server)0: knife (hash=15) (112a7a80)
(Server)1: baseball_bat (hash=14) (bbb84f0)
(Server)2: cricket_bat (hash=13) (1182e6c0)
(Server)3: shovel (hash=12) (11ceea20)
(Server)4: tonfa (hash=11) (11cf0030)
(Server)5: fireaxe (hash=10) (bb5d5a0)
(Server)6: crowbar (hash=9) (112a8890)
(Server)7: machete (hash=8) (bbaa980)
(Server)8: katana (hash=7) (11cfc2f0)
(Server)9: frying_pan (hash=6) (11cfd4b0)
(Server)10: caidao (hash=5) (bb69af0)
(Server)11: onion (hash=4) (f7b4190)
(Server)12: chair (hash=3) (114a3f50)
(Server)13: wrench (hash=2) (114a5d90)
(Server)14: finger (hash=1) (114a6d90)
(Server)15: meleejb (hash=0) (114a7c00)
__________________
gabuch2 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-16-2022 , 06:29   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.12) [01-Oct-2020]
Reply With Quote #212

I've sent a new version to your Discord if you can test and let me know. Thanks.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-20-2022 , 16:09   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.13) [20-Oct-2022]
Reply With Quote #213

Code:
1.13 (20-Oct-2022)
    - L4D2: Plugin now prevents setting over 16 melee weapons. Thanks to "gabuch2" for reporting.
    - Compiled .smx plugin is now compiled with SourceMod version 1.11.
__________________
Silvers is offline
Sev
Veteran Member
Join Date: May 2010
Old 11-07-2022 , 09:25   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.14) [21-Oct-2022]
Reply With Quote #214

So is there any way to modify dual pistols?

I searched the vpk and only found weapon_pistol and weapon_pistol_magnum. As a long shot, I tried weapon_pistol_dual but that did nothing. I assume a script for duals doesn't exist, is named something else or would need to be added manually if possible?
Sev is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-07-2022 , 10:09   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.14) [21-Oct-2022]
Reply With Quote #215

Quote:
Originally Posted by Sev View Post
So is there any way to modify dual pistols?

I searched the vpk and only found weapon_pistol and weapon_pistol_magnum. As a long shot, I tried weapon_pistol_dual but that did nothing. I assume a script for duals doesn't exist, is named something else or would need to be added manually if possible?
There is no weapon called weapon_pistol_dual,
only weapon_pistol_magnum and weapon_pistol
__________________
HarryPotter is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 11-11-2022 , 11:48   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.14) [21-Oct-2022]
Reply With Quote #216

Quote:
Originally Posted by Sev View Post
So is there any way to modify dual pistols?

I searched the vpk and only found weapon_pistol and weapon_pistol_magnum. As a long shot, I tried weapon_pistol_dual but that did nothing. I assume a script for duals doesn't exist, is named something else or would need to be added manually if possible?
dual_pistols just available on game event, there is weapon_pistol only.
such as field weapon on event player_death.
you might use [L4D/L4D2]WeaponHandling_API(22/04/2021 - 1.0.6) to make dual pistol work proper
__________________
NoroHime is offline
TypicalType
Member
Join Date: Mar 2020
Location: Brazil
Old 12-06-2022 , 14:46   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.14) [21-Oct-2022]
Reply With Quote #217

Does this plugin lets you add the riotshield melee weapon? when i edit the "l4d_info_editor_mission.cfg" file to unlock other melee weapons it works fine, but when i add the riotshield it doesn't spawn... the riotshield is still locked and i cant even spawn it using commands, am i doing something wrong here?
TypicalType is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 12-07-2022 , 00:52   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.14) [21-Oct-2022]
Reply With Quote #218

Quote:
Originally Posted by TypicalType View Post
Does this plugin lets you add the riotshield melee weapon? when i edit the "l4d_info_editor_mission.cfg" file to unlock other melee weapons it works fine, but when i add the riotshield it doesn't spawn... the riotshield is still locked and i cant even spawn it using commands, am i doing something wrong here?
Need to install mod to unlock riotshield
__________________
HarryPotter is offline
ForTheSakura
Junior Member
Join Date: Dec 2022
Old 12-07-2022 , 02:49   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.14) [21-Oct-2022]
Reply With Quote #219

Silvers Your plugin is fantastic
I only have two questions

1. I was able to change the cycle rate and reload duration of all weapons except shotguns, which did not appear to be affected regardless of cycle rate value (I tried all values). The reload duration is also the same at first, then it speeds up slightly, so how can I fix this and what am I doing wrong?

Code:
"weapon_info"
{
	"all"
	{
		// Shotguns:
		"weapon_autoshotgun"
		{
			"ReloadDuration"			"0.096" // Default 0.396
			"CycleTime"					"0.05" // Default 0.15
		}
		"weapon_pumpshotgun"
		{
			"ReloadDuration"			"0.173" // Default 0.473
			"CycleTime"					"0.05" // Default 0.5
		}
		"weapon_shotgun_chrome"
		{
			"ReloadDuration"			"0.173" // Default 0.473
			"CycleTime"					"0.05" // Default 0.5
		}
		"weapon_shotgun_spas"
		{
			"ReloadDuration"			"0.096" // Default 0.396
			"CycleTime"					"0.05" // Default 0.15
		}
	}
}
2. When you increase the chainsaw clip size beyond the default size, the ammo bar on the hud will stretch and rise higher. I was wondering if you had a solution to this visual annoyance and thank you.
Attached Thumbnails
Click image for larger version

Name:	2022-12-07 07_47_25-Greenshott.jpg
Views:	73
Size:	11.2 KB
ID:	198376  
ForTheSakura is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-11-2022 , 07:18   Re: [L4D & L4D2] Mission and Weapons - Info Editor (1.15) [11-Dec-2022]
Reply With Quote #220

Quote:
Originally Posted by ForTheSakura View Post
1. I was able to change the cycle rate and reload duration of all weapons except shotguns, which did not appear to be affected regardless of cycle rate value (I tried all values). The reload duration is also the same at first, then it speeds up slightly, so how can I fix this and what am I doing wrong?
I recommend using Lux's WeaponHandling_API - There are example plugins in the thread.



Quote:
Originally Posted by ForTheSakura View Post
2. When you increase the chainsaw clip size beyond the default size, the ammo bar on the hud will stretch and rise higher. I was wondering if you had a solution to this visual annoyance and thank you.
Guess that's something client side.




Code:
1.15 (11-Dec-2022)
    - L4D2: Now supports 3rd party melee weapons where the mission.txt file does not contain a "meleeweapons" key. Thanks to "Yabi" for reporting and testing.
    - L4D2: Added command "sm_info_melee" to list the maps currently allowed melee weapons and report any issues.
    - L4D2: GameData file has updated to support these changes.
__________________

Last edited by Silvers; 12-11-2022 at 07:23.
Silvers 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 02:07.


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