[L4D1 AND L4D2] Machine Gun System(02/22/2021)
[L4D1 AND L4D2] Machine Gun System Sorry, This Plugin has been discontinued About Some time ago i used the Plugin [L4D & L4D2] Intelligent Machine Gun by Panxiaohai, i really liked the idea of an automatic control, but in Left 4 Dead 1 i had problems such as server crash after a while of using said Plugin, among some other errors, since its author has not been active for some years, i decided to make the fixes on my own. So i studied the code and saw that it could be improved more, after correcting the main problems that prevented me from using the Plugin in a correct way, i thought about adding new functions and other types of machine guns, this is how this plugin was created. Description Provides the ability to generate automatic control machine guns of different types through chat commands and menu. Machine guns can be created such as: Simple machine guns They have the ability to use special ammunition if stable, for example incendiary and explosive ammunition, or simply use normal ammunition, they can also be controlled by a player, they have an ammunition counter in case of being used by a user Note: single player control of these machine guns will not always be available, this feature is still in development. Flame It has the ability to inflict burn damage if it has an enemy in its proximity, the damage increases as the enemy is closer (It only affects the main enemy). When it's destroyed, it will spill the fuel it uses for the flare and will burn after the explosion. Laser It has the ability to shoot laser beams at its targets and damage them by energy beam. Tesla It has the ability to create electric arcs that are capable of disintegrating common zombies. When destroyed it can create electric arcs that will damage survivors and special infected in addition to an explosion. Freezing It has the ability to freeze special infected and survivors, the liquid nitrogen it uses is also somewhat unstable, so it must release pressure from time to time, so it can temporarily freeze special infected and survivors in its vicinity. Nauseating Has the ability to fire a bullet with Boomer's bile time to time (Only one target at time), which can fill Survivors and Tanks with vomit (Left 4 Dead 2 only). This machine gun when destroyed, will release all the Boomer's bile it has in its reserves, being able to splash survivors and Tanks (Only in Left 4 Dead 2) Screenshots Type Flame Type Laser Type Tesla Type Freezing Type Nauseating Simple Machine Gun How to create machine guns? !machine Creates a simple machine gun in front of the player. !machinemenu Open the machine gus menu with all types. !removemachine Removes the machine gun in the crosshairs. !resetmachine reloads the settings and remove all the spawned machine guns(Needs Admin Flag Root). Create specified Gatling machine gun quickly !machine 1 flame !machine 1 tesla !machine 1 laser !machine 1 freeze !machine 1 nauseating Create specified 50 Cal machine gun quickly !machine 2 flame !machine 2 tesla !machine 2 laser !machine 2 freeze !machine 2 nauseating Create specified simple machine gun quickly !machine 1 Creates a Gatling machine gun. !machine 2 Creates a 50 Cal machine gun. How to move and put ont floor a machine gun? To move a machine gun (only by its owner by default) press Duck and Shove (Ctrl + Right mouse button) on the machine gun. To put on the floor press Use (E) button for a moments Credits - Panxiaohai for his plugin [L4D & L4D2] Intelligent Machine Gun and his original idea. - Silvers for his code stocks in [L4D & L4D2] Prototype Grenades. - Marttt for his stock of code in his plugins. - Lux for his stock L4D_TE_Create_Particle. - Ah all of them thank you for your stock of code and plugins! :oops::):bacon!: (I've used other code references from the SourceMod forums, credits to their authors) Convars PHP Code:
HTML Code:
* The special ammunition can only be used in automatic mode, a user can only use normal ammunition, still needs test in L4D2. HTML Code:
Version 4.0 [02-18-2021] 1 - Click "Get Plugin" and put the "l4d_machine_gun_system.smx" file into your server or game \addons\sourcemod\plugins\ folder. 2 - Click Get "l4d_machine_gun_system.phrases.txt" file and put in \addons\sourcemod\translations folder. 3 - Only for a full effects display in Left 4 Dead 1. Download and install the Particle posted by Dragokas. (If you have any previous version please delete the file or move from plugins folder and cfg folder) |
Re: [L4D1 AND L4D2] Machine Gun System
The plugin is good already tested but there are errors in the logs
L 02/19/2021 - 00:12:30: Info (map "c5m1_waterfront") (file "/game/left4dead2/addons/sourcemod/logs/errors_20210219.log") L 02/19/2021 - 00:12:30: [SM] Exception reported: Invalid edict (474 - 474) L 02/19/2021 - 00:12:30: [SM] Blaming: l4d_machine_gun_system.smx L 02/19/2021 - 00:12:30: [SM] Call stack trace: L 02/19/2021 - 00:12:30: [SM] [0] GetEdictClassname L 02/19/2021 - 00:12:30: [SM] [1] Line 991, /home/groups/sourcemod/upload_tmp/phphGFJTv.sp::Event_PlayerUses L 02/19/2021 - 00:12:30: [SM] Exception reported: Invalid edict (530 - 530) L 02/19/2021 - 00:12:30: [SM] Blaming: l4d_machine_gun_system.smx L 02/19/2021 - 00:12:30: [SM] Call stack trace: L 02/19/2021 - 00:12:30: [SM] [0] GetEdictClassname L 02/19/2021 - 00:12:30: [SM] [1] Line 991, /home/groups/sourcemod/upload_tmp/phphGFJTv.sp::Event_PlayerUses L 02/19/2021 - 00:12:30: [SM] Exception reported: Invalid edict (507 - 507) L 02/19/2021 - 00:12:30: [SM] Blaming: l4d_machine_gun_system.smx L 02/19/2021 - 00:12:30: [SM] Call stack trace: L 02/19/2021 - 00:12:30: [SM] [0] GetEdictClassname L 02/19/2021 - 00:12:30: [SM] [1] Line 991, /home/groups/sourcemod/upload_tmp/phphGFJTv.sp::Event_PlayerUses L 02/19/2021 - 00:13:23: [SM] Exception reported: Invalid edict (529 - 529) L 02/19/2021 - 00:13:23: [SM] Blaming: l4d_machine_gun_system.smx L 02/19/2021 - 00:13:23: [SM] Call stack trace: L 02/19/2021 - 00:13:23: [SM] [0] GetEdictClassname L 02/19/2021 - 00:13:23: [SM] [1] Line 991, /home/groups/sourcemod/upload_tmp/phphGFJTv.sp::Event_PlayerUses L 02/19/2021 - 00:16:12: [SM] Exception reported: Invalid edict (511 - 511) L 02/19/2021 - 00:16:12: [SM] Blaming: l4d_machine_gun_system.smx L 02/19/2021 - 00:16:12: [SM] Call stack trace: L 02/19/2021 - 00:16:12: [SM] [0] GetEdictClassname L 02/19/2021 - 00:16:12: [SM] [1] Line 991, /home/groups/sourcemod/upload_tmp/phphGFJTv.sp::Event_PlayerUses |
Re: [L4D1 AND L4D2] Machine Gun System
Hey L4D_TE_Create_Particle is kinda old I made specialized tempentity particle stocks below.
https://github.com/LuxLuma/Lux-Libra...brary.inc#L469 |
Re: [L4D1 AND L4D2] Machine Gun System
Great to see continued development on a great idea - been running it on a test server with no issues so far. One question: can you shorten the machine gun placement time? I remember it used to be much shorter having to hold down E but your version takes significantly longer to place the gun down.
|
Re: [L4D1 AND L4D2] Machine Gun System
Just wonderful!
|
Re: [L4D1 AND L4D2] Machine Gun System
Quote:
|
Re: [L4D1 AND L4D2] Machine Gun System(02/22/2021)
Can you learn from the witch guardian, hold down the E button to pick up or put it down, and even the progress bar prompts
|
Re: [L4D1 AND L4D2] Machine Gun System(02/22/2021)
This plugin is great!
You should add a create, position and save option in the data folder, just like the Silvers plugins. PHP Code:
Quote:
If the probability is "100" it will still remain friendly, unless someone gives it the slightest bit of damage. Why not add a cvar to spawn an enemy machine? PHP Code:
|
Re: [L4D1 AND L4D2] Machine Gun System(02/22/2021)
Working well so far and the ability to set the placement timer is great. Is it possible to change the brightness/color of the machine gun outline?
|
Re: [L4D1 AND L4D2] Machine Gun System(02/22/2021)
This loves to crash my server when placed on moving things (like the platform in middle on tank challenge map)
Code:
server_srv.so!CBaseEntity::SetNextThink(int, float) + 0x89 |
All times are GMT -4. The time now is 10:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.