Raised This Month: $ Target: $400
 0% 

[L4D1 & L4D2] Laser that never sucks (useful upgrades)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
6434
Plugin Version:
1.7.8
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    25 
    Plugin Description:
    Laser that doesn't crash the server + reload + silent + night
    Old 03-24-2019 , 11:31   Re: [L4D1] Laser that never sucks (useful upgrades)
    Reply With Quote #1

    Thanks again.
    It looks like no more crahes happen since resolving disconnect/afk/FakeClient ClientId leak of upgrade reset .

    Plugin is updated
    Some servers crashed due to the lack of reset upgrades for some clients.
    This update is required.

    1.6.1 (23-Mar-2019)
    - Removed FakeClient check when we reset upgrades (for safe). Thanks to AlexMy.
    - Added "Bot Replace Player" and "Player Disconnect" events to reset upgrades (for safe). Thanks to SilverShot.

    1.6 (15-Mar-2019)
    - Added laser to the list of upgrades to be reset on round end (if not, it's possibly could cause server crash sometimes).
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 03-24-2019 at 11:35.
    Dragokas is offline
    Sunyata
    Senior Member
    Join Date: Nov 2017
    Location: Wherever I am
    Old 12-13-2019 , 07:18   Re: [L4D1] Laser that never sucks (useful upgrades)
    Reply With Quote #2

    Another nice plugin, Dragokas.

    This is one of the better plugins Ive been recently using on my server, and it does a good job with fast reloads. However, I was wondering would it be possible to also include incremental values on the reload speed in your config file using a few more Cvars?

    Currently it's either 'off' (normal speed) - or 'on' (the fastest speed - at 100%)

    Is it possible to have additional incremental speeds between 'on' and 'off'? - IE: 25% speed increase, 50% speed increase and 75% speed increase.

    I would like to try out other reload speeds to see what incremental values would balance the best to suit the game-play mechanics on my hardcore server.

    Sunyata
    Sunyata is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 12-13-2019 , 19:19   Re: [L4D1] Laser that never sucks (useful upgrades)
    Reply With Quote #3

    Thank you for the feedback!

    It's a completed plugin. I don't want to complicate it with such things.
    Why you may need to change speed in steps?
    Usually admins:
    1) hold 1 specific speed they required for their gameplay balance.
    2) or use perks system where upgrades available as awards for some events.

    In first case, change speed required in server's scripts for each weapon or use Silver's Mission and weapons editor.
    In second case, you may want much more complicated plugin something like perks from Marcus101RR or KrX.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 12-14-2019 , 13:32   Re: [L4D1] Laser that never sucks (useful upgrades)
    Reply With Quote #4

    Quote:
    Originally Posted by Sunyata View Post
    If I knew how to modify the reload_bit value in your script myself - to be even half the speed it currently is when 'on', then I would just make my own personalized version of your script for my own personal use.
    Use

    survivor_upgrade_reload_shotgun_duration
    survivor_upgrade_reload_duration

    ConVars.

    Quote:
    Originally Posted by Sunyata View Post
    The only reason I asked for the increments in reload speed was for me to experiment with it, to see what reload speeds would work best against the many infected that spawn very rapidly on my server.
    So, as I suspected, you don't need incremental speed at all in production.
    So, why bother with plugin nobody will use in full power.

    Use above cvars or use: https://forums.alliedmods.net/showthread.php?p=2614689
    Personally, I never used, so I can't say anything about settings desired for you, however many people use. Ask them.

    or change server's: .../left4dead/scripts/weapon_autoshotgun.txt
    Quote:
    "ReloadDuration" "0.396"
    "CycleTime" "0.15"
    to what you want experiment with.
    Each change require full server restart.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Sunyata
    Senior Member
    Join Date: Nov 2017
    Location: Wherever I am
    Old 12-14-2019 , 12:41   Re: [L4D1] Laser that never sucks (useful upgrades)
    Reply With Quote #5

    I respect your wish to keep your plugin as it is. If it's going to complicate things for you, then I would not expect you to change it.

    I'm not really a big fan of having many upgrades on my server, and although you suggested those other author plugins for all those other overly-complicated multi-upgrades which also include reload speeds etc - those are not the kind of plugins I want to use on my server, mostly because I wouldn't use those other rather overly-complex upgrade features anyway.

    If I knew how to modify the reload_bit value in your script myself - to be even half the speed it currently is when 'on', then I would just make my own personalized version of your script for my own personal use. The only reason I asked for the increments in reload speed was for me to experiment with it, to see what reload speeds would work best against the many infected that spawn very rapidly on my server.

    I'll take a look at those other plugins you've suggested anyway, to see if they may help me out in some way or other, but I would have much preferred to use your plugin - mainly for its compact simplicity and how well it's been optimization.

    Last edited by Sunyata; 12-14-2019 at 12:44.
    Sunyata is offline
    Sunyata
    Senior Member
    Join Date: Nov 2017
    Location: Wherever I am
    Old 12-15-2019 , 08:03   Re: [L4D1] Laser that never sucks (useful upgrades)
    Reply With Quote #6

    Hey thanks Dragokas,

    I never even knew those upgrade Cvars would work with your script, but they have really helped me out. That Cvar information alone was well worth knowing about! I've finally managed to find the right reload speeds that I wanted for my server while still using your script to control the reload on/off.

    I've now added them to my 'sourcemod.cfg' - the best values I found that works best on my server are:

    sm_cvar survivor_upgrade_reload_shotgun_duration 0.7
    sm_cvar survivor_upgrade_reload_duration 0.6

    They are not too far off from the default 0.5 values, but it's just enough to give my members the right kind of balance when dealing with the infected spawn system I use, and it gives a very subtle change to reload speed, just enough I hope that the members that play my servers wont perceive these newly adjusted reload speeds of mine.

    Thanks for all your help, it's much appreciated
    Sunyata is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 12-15-2019 , 09:47   Re: [L4D1] Laser that never sucks (useful upgrades)
    Reply With Quote #7

    I am pleased that you succeeded.

    The only problem with this method you may want to know, it's very rarely happen that reload speed of individual weapon entity become default, the walkaround is - to drop that weapon and pick it up again.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 12-15-2019 , 10:02   Re: [L4D1] Laser that never sucks (useful upgrades)
    Reply With Quote #8

    Quote:
    Originally Posted by Dragokas View Post
    I am pleased that you succeeded.

    The only problem with this method you may want to know, it's very rarely happen that reload speed of individual weapon entity become default, the walkaround is - to drop that weapon and pick it up again.

    This should solve it but would require you to make a plugin for it.
    https://forums.alliedmods.net/showthread.php?t=319947
    Speeding up actions like reload ect, or make upgraded variant of weapons ect.
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 12-16-2019 , 01:38   Re: [L4D1] Laser that never sucks (useful upgrades)
    Reply With Quote #9

    Quote:
    Originally Posted by Lux View Post
    This should solve it but would require you to make a plugin for it.
    https://forums.alliedmods.net/showthread.php?t=319947
    Speeding up actions like reload ect, or make upgraded variant of weapons ect.
    I mean, you are sure you never saw such problem using your method, or you suggest to modify some properties of weapon's entity when it become "broken" for some reason?
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 12-16-2019 , 21:27   Re: [L4D1] Laser that never sucks (useful upgrades)
    Reply With Quote #10

    Quote:
    Originally Posted by Dragokas View Post
    I mean, you are sure you never saw such problem using your method, or you suggest to modify some properties of weapon's entity when it become "broken" for some reason?
    I don't really get why you ask this?
    Quote:
    This should solve it but would require you to make a plugin for it.
    I made this method since l4d2 has not really got options for this unlike l4d1 and ported to l4d1 functions the same but have not tested l4d1 linux.

    Should work without issues, just let me know how linux works.

    Just besure to set back to default, i'v not got a clue where in the code this is set, could be before or after my hooks.
    PHP Code:
    sm_cvar survivor_upgrade_reload_shotgun_duration 0.7
    sm_cvar survivor_upgrade_reload_duration 0.6 
    When i mentioned
    Quote:
    make upgraded variant of weapons ect.
    I meant using weapon handling api since the forwards pass the weapon type and the entity index, can make a list of stats for that weapon ect so they can be all unique.
    Up to you to imagine.
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D

    Last edited by Lux; 12-17-2019 at 01:53.
    Lux 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 03:20.


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