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

[L4D2] Upgrade Pack Unlimited Use v1.1 [12-21]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
7884
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    make your upgrade pack use count unlimited and delete it after timeout
    Old 12-17-2021 , 17:29   [L4D2] Upgrade Pack Unlimited Use v1.1 [12-21]
    Reply With Quote #1

    about:

    since players not like upgrade pack sometime deploy waste time or no so useful
    now you can deploy it and keep using like ammo stack, usually using with finale stage or some player like stay on place


    installation:

    .txt on /gamedata
    .smx on /plugins
    if you want compile your self just get .sp in /scripting

    known issue
    you may set upgrade_pack_allow_bot_infinity set to 0,this issue since game cannot record upgrade used for more than 4 survivor, because netprop m_iUsedBySurvivorsMask is 3bit data

    cvar:

    Code:
    // is allowed bot infinity to use, solve bot stuck in taking action
    upgrade_pack_allow_bot_infinity "0"
    
    // timer of created after to remove upgrade pack (0: disable feature)
    upgrade_pack_remove_timer_created "0"
    
    // timer of used after to remove upgrade pack (0: disable feature)
    upgrade_pack_remove_timer_used "0"

    changelog

    Code:
    1.1 add use count buffer and convar
    1.0 release
    Attached Files
    File Type: txt l4d2_unlimited_upgrade_pack.txt (561 Bytes, 330 views)
    File Type: sp Get Plugin or Get Source (l4d2_unlimited_upgrade_pack.sp - 470 views - 3.5 KB)
    __________________

    Last edited by NoroHime; 02-03-2022 at 17:31.
    NoroHime is offline
    TypicalType
    Member
    Join Date: Mar 2020
    Location: Brazil
    Old 12-17-2021 , 20:48   Re: [L4D2] Upgrade Pack Unlimited Use
    Reply With Quote #2

    Just like the beta l4d2 nice
    TypicalType is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 12-18-2021 , 05:18   Re: [L4D2] Upgrade Pack Unlimited Use
    Reply With Quote #3

    There is a much easier way to do this without gamedata iirc. Hook the upgrade use event and set the "m_iUsedBySurvivorsMask" netprop to 0. No need for extra complication or all these hooks.
    __________________
    Silvers is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 12-19-2021 , 03:42   Re: [L4D2] Upgrade Pack Unlimited Use
    Reply With Quote #4

    i thought about possibility, if i doesnt reset use count, upgrade pack will clear itself when default 4 time used

    anyway i dont known m_iUsedBySurvivorsMask masking work way,my bots prevent should be work greater
    __________________

    Last edited by NoroHime; 12-19-2021 at 04:05.
    NoroHime 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 14:35.


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