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

[L4D2] Weapon Attack Speed Modifier


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Machine
Senior Member
Join Date: Apr 2010
Plugin ID:
2122
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Modifies the Survivors Weapon Attack Speed
    Old 12-12-2010 , 03:35   [L4D2] Weapon Attack Speed Modifier
    Reply With Quote #1

    Description:

    L4D2 Weapon Attack Speed Modifier
    This Plugin Modifies the Survivors Weapon Attack Speed.

    Command:
    REQUIRES Admin Ban -
    l4d2_weaponspeed <#userid|name> <0|1> - Changes clients default weapon speed

    Cvar:
    l4d2_weaponspeed_everyone, "0", <0|1> - Apply the Weapon Attack Speed Modifier on Everyone?
    l4d2_weaponspeed_amount, "1.6", <1.0-2.0> - Weapon Attack Speed Modified Value

    Notes:
    This speed modifier only works on most of the weapons the survivors can use. I have omitted the grenade launcher, the pistols, the scar and the chainsaw.

    Changelog:

    1.0
    - Release
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_weaponspeed.sp - 7716 views - 5.8 KB)

    Last edited by Machine; 12-12-2010 at 04:02.
    Machine is offline
    Skorpion1976
    Veteran Member
    Join Date: Jun 2009
    Location: Austria
    Old 12-12-2010 , 07:32   Re: [L4D2] Weapon Attack Speed Modifier
    Reply With Quote #2

    What is a weapon speed o_O? Reload time? Bullets cycle time?
    Skorpion1976 is offline
    nagypocak
    Member
    Join Date: Jul 2010
    Old 12-12-2010 , 09:30   Re: [L4D2] Weapon Attack Speed Modifier
    Reply With Quote #3

    I've tested it:

    it's the bullets discharge or cycle time (rate of fire). you can discharge eg. a SPAS 12 full clip in like 0.5 seconds, an M60 in about 6 seconds at double rate (2.0) - forget about aiming though, the recoil is uncontrollable on the stronger weapons.

    Last edited by nagypocak; 12-12-2010 at 09:34.
    nagypocak is offline
    Skorpion1976
    Veteran Member
    Join Date: Jun 2009
    Location: Austria
    Old 12-12-2010 , 09:32   Re: [L4D2] Weapon Attack Speed Modifier
    Reply With Quote #4

    hm, thank you for your explanation! So this plugin in combination with tPonchos Perkmod2 - sleight_of_hand (quick reload) = FTW
    I removed everything but snipers/shotguns as the fire rate gets increased for all weapons what is too much. Emptying an AK47 within 1 second isnīt even arcade gaming anymore, thatīs too unrealistic
    @Machine: N1! Thanks!

    1. For a future version of this plugin: Did you consider implementing configurable cvars (0|1 switch) for all weapons and their corresponding fire rate? So a server hoster can choose which weapons to modify and choose different values for every weapon.
    2. Please consider renaming this plugin to something like "Weapon fire rate..."

    Last edited by Skorpion1976; 12-12-2010 at 12:16.
    Skorpion1976 is offline
    Machine
    Senior Member
    Join Date: Apr 2010
    Old 12-13-2010 , 11:36   Re: [L4D2] Weapon Attack Speed Modifier
    Reply With Quote #5

    Well, I had originally started this to figure out how to increase the swing speeds on melee weapons. Having it work for guns was a bonus. I may include more cvars later.
    Machine is offline
    FaTony
    Veteran Member
    Join Date: Aug 2008
    Old 12-13-2010 , 11:57   Re: [L4D2] Weapon Attack Speed Modifier
    Reply With Quote #6

    Can you port it to make mod-independent?
    __________________
    FaTony is offline
    SgtScorpio
    Junior Member
    Join Date: Nov 2010
    Old 12-17-2010 , 22:28   Re: [L4D2] Weapon Attack Speed Modifier
    Reply With Quote #7

    I like it, but I would love it if you could add the grenade launcher in, with an infinite ammo plugin a fast shooting grenade launcher would be sweet
    SgtScorpio is offline
    Recon-1
    Senior Member
    Join Date: Sep 2009
    Old 01-19-2011 , 09:19   Re: [L4D2] Weapon Attack Speed Modifier
    Reply With Quote #8

    Hmm, could this be updated so you can tweak the fire rate on 'specific' weapons ? Since I was wanting to bump the rate of fire up on the L4D2's Scout and AWP to make them compete with the Hunting and Military Sniper Rifles.
    Recon-1 is offline
    stufz
    Member
    Join Date: Jan 2010
    Old 02-20-2011 , 21:10   Re: [L4D2] Weapon Attack Speed Modifier
    Reply With Quote #9

    Say - im wondering how to code this for melee weapon only.
    On a rented linux server, the guns' audio cuts out and its hard to tell if its even shooting.

    Neat plugin tho, thanks but would love to make it more selective, either by gun classes or 2ndary attack only.
    __________________

    stufz is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 02-21-2011 , 06:42   Re: [L4D2] Weapon Attack Speed Modifier
    Reply With Quote #10

    Sweet potato, you do a massive amount of String comparing in OnPlayerRunCmd, do you realize how inefficient that is?! Hook weapon swapping instead.
    AtomicStryker 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 02:51.


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