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

[L4D2] SideArm v1.0.4 [21-December-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
8310
Plugin Version:
1.0.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    sidearm is sidearm
    Old 11-30-2022 , 17:22   [L4D2] SideArm v1.0.4 [21-December-2022]
    Reply With Quote #1

    about
    • make pistol is real sidearm when you choosen melee weapon or chainsaw
    • when you already picked a melees, press the zoom key can swap to sidearm temporary
    • sidearm will disappear when you switch weapon or map changed
    • idea from a unmaintained plugin by little_froy, otherthing is wrote by me
    • translation file default has en/chi/zho, edit your self if you needed
    • a little bit complex here, try to make these perfect if i can
    • in fact this can support l4d1, but there hasnt reasonable weapon to swap sidearm

    Intro Videos
    [L4D2] SideArm (SourceMod)


    ConVar

    PHP Code:
    // announce types 0=dont announce 1=center 2=chat 4=hint. add numbers together you want
    sidearm_announce "2"

    // time(seconds) for hold the reload to swap sidearm 0=tap mode
    sidearm_holdtime "0.0"

    // key to trigger sidearm 524288=zoom. combine keys is available. see more in entity_prop_stocks.inc
    sidearm_key "524288" 
    known issue

    changelog
    • v1.0 just releases; 1-December-2022
    • v1.0.1 fix some unexpected issue, weapon spawner bypass the plugin at before; 2-December-2022
    • v1.0.2 player gets incappeed or ledge grabbed will cancel sidearm, not an issue, just in case; 2-December-2022 (2nd time)
    • v1.0.3 fix unreasonable point, sidearm can trigger even not switch to melee yet; 2-December-2022 (3rd time)
    • v1.0.4 fix forgot remove debug statement cause error; 21-December-2022

    Installation
    • put l4d_sidearm.smx on /plugins/
    • optional put l4d_sidearm.phrases.txt on /translations/ to make announcement work

    Credits
    • little_froy - origin idea
    Attached Files
    File Type: txt l4d_sidearm.phrases.txt (910 Bytes, 117 views)
    File Type: sp Get Plugin or Get Source (l4d_sidearm.sp - 201 views - 17.9 KB)
    __________________

    Last edited by NoroHime; 12-21-2022 at 06:39.
    NoroHime is offline
    mikaelangelis
    Senior Member
    Join Date: Oct 2017
    Old 11-30-2022 , 22:19   Re: [L4D2] SideArm [1-December-2022]
    Reply With Quote #2

    what button to switch? i pick pistol but it drops melee on the ground like default.
    mikaelangelis is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 12-01-2022 , 01:40   Re: [L4D2] SideArm [1-December-2022]
    Reply With Quote #3

    maybe description little bit mistake, you don't have to pick another,at the default, after pick the melee just tap the zoom key to swap pistol temporary

    update
    changelog
    • v1.0.1 fix some unexpected issue, weapon spawner bypass the plugin at before; 2-December-2022
    • v1.0.2 player gets incappeed or ledge grabbed will cancel sidearm, not an issue, just in case; 2-December-2022 (2nd time)
    • v1.0.3 fix unreasonable point, sidearm can trigger even not switch to melee yet; 2-December-2022 (3nd time)
    __________________

    Last edited by NoroHime; 12-02-2022 at 08:44.
    NoroHime 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 00:07.


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