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

[L4D2]Weapon push infected


Post New Thread Reply   
 
Thread Tools Display Modes
Author
AK978
Senior Member
Join Date: Jun 2018
Plugin ID:
6603
Plugin Version:
1.2
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    [L4D2]Weapon push infected
    Old 06-15-2019 , 00:18   [L4D2]Weapon push infected
    Reply With Quote #1

    l4d2_homerun_bat.smx modify.

    Continue to shoot special infections, special infections will fall back.

    Preset allowed weapon: m16 , m60.

    Change server allowed weapons:
    ( change line 8 )
    static String:WeaponNames[MAXWEAPON][] = {"rifle" };

    ( change line 9 )
    static String:WeaponNames2[MAXWEAPON][] = {"rifle_m60" };



    admin command:
    sm_kickback_add <weapon name> <strengh>.
    sm_kickback_remove <weapon name>.


    ex:
    sm_kickback_add rifle 150.



    v1.0 new plugin.
    v1.1 Revise.(ERROR UPDATE)
    v1.2 Revise.




    anyone can continue to improve it.



    My plugins


    贊助網址 Donation URL
    https://pay.ecpay.com.tw/CreditPayme...=3050613&Enn=e
    Attached Files
    File Type: sp Get Plugin or Get Source (weaponpush.sp - 811 views - 3.8 KB)

    Last edited by AK978; 06-20-2019 at 09:00.
    AK978 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 06-15-2019 , 12:54   Re: [L4D2]Weapon push infected
    Reply With Quote #2

    how to use?
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 06-15-2019 , 14:34   Re: [L4D2]Weapon push infected
    Reply With Quote #3

    Chat channel input:!weapon_push.
    Everyone will plugin enabled.

    weapon use:weapon_rifle.

    shoot tank.

    Last edited by AK978; 06-15-2019 at 14:36.
    AK978 is offline
    KRUTIK
    Senior Member
    Join Date: Feb 2019
    Location: Мос
    Old 06-16-2019 , 02:40   Re: [L4D2]Weapon push infected
    Reply With Quote #4

    You have a video to watch, I also did not understand what this plugin does.
    KRUTIK is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 06-16-2019 , 03:05   Re: [L4D2]Weapon push infected
    Reply With Quote #5

    我的英文很爛.
    翻譯的結果也是很爛.

    這個插件是開啟特感擊退功能.
    持續射擊坦克,你會發現坦克受到子彈衝擊會一直往後退.

    只是純粹分享這個修改後的插件.
    沒有考慮增加更多的功能.
    我也沒錄製過影片,或許其他人可以幫忙.
    有興趣的可以自己測試或修改.

    My English is very bad.
    The result of the translation is also very bad.

    This plugin is a special knockback feature.
    Continue shooting the tank, you will find that the tank will be backed by the impact of the bullet.

    Just purely share this modified plugin.
    Did not consider adding more features.
    I haven't recorded a movie yet, maybe someone else can help.
    If you are interested, you can test or modify it yourself.

    Last edited by AK978; 06-16-2019 at 03:06.
    AK978 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 06-19-2019 , 09:28   Re: [L4D2]Weapon push infected
    Reply With Quote #6

    I understand
    Need to enter the command first! weapon_push
    Then I need to hold the M16 shot TANK in my hand
    At this time, TANK will be shot or repelled by M16
    This effect is similar to the right button Repel the enemy

    Plugins need to be improved
    Need to continue this effect
    Instead of having to manually enter commands for each chapter
    Very troublesome
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-19-2019 , 10:42   Re: [L4D2]Weapon push infected
    Reply With Quote #7

    Are these commands supposed to be public commands? Anyone can abuse these for example in Versus by setting a really high pushback which affects everyone. You say theres "sm_weapon_push" public command but you don't list the others:
    PHP Code:
    // Public commands:
    "sm_weapon_push2",
    "sm_kickback_add",
    "sm_kickback_remove"

    // Admin command
    "sm_client_kickback_add" 

    You say default:rifle "(line 9 can change another weapon)"

    but you're forcing the weapon to "rifle":
    PHP Code:
    FakeClientCommand(client,"sm_kickback_add %s 500","rifle"); 

    You should write either:
    PHP Code:
    // With no option to change
    FakeClientCommand(client,"sm_kickback_add rifle 500");
    or
    // Actually listening to the specified weapon:
    FakeClientCommand(client,"sm_kickback_add %s 500"WeaponNames[0]); 

    People can set a strength which will overwrite each others. The whole plugins script is messy and I wouldn't expect it all the features to work correctly. Even the reset looks dodgy, it will only reset under certain conditions. I give up following the logic.
    __________________

    Last edited by Silvers; 06-19-2019 at 10:42.
    Silvers is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 06-19-2019 , 11:55   Re: [L4D2]Weapon push infected
    Reply With Quote #8

    I saw several commands. What is the use of it?
    Just open the plugin and only need one command.
    Is it possible to add a usage permission?

    Can you support 2 kinds of firearms weapons?
    Currently a kind.

    There must be a prompt after the command is opened, so that the player knows that it has been turned on.

    Who can continue to optimize it?
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    AK978
    Senior Member
    Join Date: Jun 2018
    Old 06-19-2019 , 13:19   Re: [L4D2]Weapon push infected
    Reply With Quote #9

    Version 1.0 is used in my server lottery and vip.
    Some invalid features I did not delete.

    modification.
    need test.
    Version 1.1


    Change server allowed weapons:
    ( change line 8 )
    static String:WeaponNames[MAXWEAPON][] = {"rifle" };

    ( change line 9 )
    static String:WeaponNames2[MAXWEAPON][] = {"rifle_m60" };


    command:
    sm_kickback_add <weapon name> <strengh>.
    sm_kickback_remove <weapon name>.

    Last edited by AK978; 06-19-2019 at 13:50.
    AK978 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 06-20-2019 , 05:03   Re: [L4D2]Weapon push infected
    Reply With Quote #10

    static String:WeaponNames[MAXWEAPON][] = {"smg" };
    static String:WeaponNames2[MAXWEAPON][] = {"smg_silenced" };

    ERROR
    http://4808804.cn/BUG/20190620161210.png

    How can I let VIP users use them without entering commands?
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 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 15:01.


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