[L4D/L4D2] Weapon Fire Modes
This plugin enables certain automatic weapons to set their fire mode (Single/Burst/Auto)
Pistol and magnum fire modes are also included (Single/Burst/Semi-Auto/Auto) Desert Rifle is not allowed because of the way it burst fires already. This plugin is a work in progress and any feedback or suggestions are appreciated. Thanks to Lux & Silvers for coding advice. Thanks to TimoCop for his Automatic Pistols plugin which gave me a baseline to work with. PRESS ZOOM KEY TO CHANGE FIRE MODE Compatibility - Fire modes are saved to the weapon entity, so if you use multiple equipment which uses multiple guns switching them will cause the fire modes to reset, because every time you switch it becomes a new entity, eventually i will come up with a fix for this. Automatic Pistols by TimoCop may interfere with this plugins fire modes, if it does let me know and i'll add options to disable fire modes on Pistols/Magnums in this plugin. Eventually I will add options per gun to enable disable specific guns using fire modes. Code:
[ v1.0 ] |
Re: [L4D2] Weapon Fire Modes
Excellent, thank you! This will be fun to play with.
Some suggestions:
PHP Code:
|
Re: [L4D2] Weapon Fire Modes
Quote:
|
Re: [L4D2] Weapon Fire Modes
Nice work!
Confirmed to work on L4D1 after fixing: "m_usingMountedGun" property is not exist at all in L4D1. Noticed: - Single mode: sometimes 2 bullets is shooting, sometimes 1 (50% chance) Suggestions: - add late loading support. Features (for thought): - ConVar to control the number of bullets in bursting - ConVar to control delay between bursting attacks May I ask some questions (for those who knows) ? - What are the benefits of using "PrefetchSound()" - I know it came from timocop's plugin. - What are difference between GetClientButtons() and "m_afButtonPressed" prop? |
Re: [L4D2] Weapon Fire Modes
Quote:
Single mode sometimes shooting more than 1...I will swap this over to onplayerruncmd that may correct the issue...if it does not i will figure out another way. I will add late loading... Although technically most weapons that do burst fire only shoot 2 rounds I will add an option for the number of rounds fired with burst mode. Hmm the delay between burst/single while holding the attack button, I can also add a convar to control that... I have no clue what prefetch sound actually does or the benefit of using it, TimoCop or perhaps even Silvers may have an explanation to its use. The difference between GetClientButtons() and "m_afButtonPressed" prop is... GetClientButtons is for the key simply being used at all...pressed/released/held. m_afButtonPressed prop detects only when the key is pressed. |
Re: [L4D2] Weapon Fire Modes
Thanks for an explanation.
Not very understand about m_afButtonPressed, nah, anyway, another time. Quote:
One more notice, at the moment "[FIRE MODE] \x01Single" etc. messages are displayed for all weapons, not matter is weapon support these mode or not. It is a little bit confusing. |
Re: [L4D2] Weapon Fire Modes
Quote:
|
Re: [L4D2] Weapon Fire Modes
UPDATE
Code:
[ v1.1 ] |
Re: [L4D/L4D2] Weapon Fire Modes
UPDATE
Code:
[ v1.2 ] |
Re: [L4D/L4D2] Weapon Fire Modes
Plugin failed to compile also can you make the desert rifle be full auto could it be possible?
|
All times are GMT -4. The time now is 23:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.