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

[L4D2] Killing Ammo / Subsistence (Destiny 2 ability) v1.3.1 [27-November-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
7974
Plugin Version:
1.3.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    load part ammo to clip by killing zombies like Destiny 2 Subsistence Perk
    Old 02-21-2022 , 14:18   [L4D2] Killing Ammo / Subsistence (Destiny 2 ability) v1.3.1 [27-November-2022]
    Reply With Quote #1

    about
    • load part ammo when kill some zombie
    • specify which weapons does or which zombies does
    • decimal point is allowed, float part will randomize the chance, 1.5 mean 50% chance get more
    • supports infinity ammo by option "allow_generate"
    • reference some code from Left 4 Dhooks Direct and SMLib
    • idea from game destiny 2 wepaon ability

    ConVar

    PHP Code:

    // which allow Subsistence , 1=hunting 2=military 4=scout 8=awp 16=magnum
    // 32=m16 64=sg552 128=desert 256=ak47 512=m60 1024=smg 2048=smg_s 4096=mp5
    // 8192=pistol 16384=pump 32768=chrome 65536=xm1014 131072=spas 262144=GL
    subsistence_allow_weapons "524287" //-1 also allow every

    // Enabled 'Subsistence'
    subsistence_enabled "1"

    // luck multiplier of common zombies 
    subsistence_ratio_common "1"

    // luck multiplier of boomer 
    subsistence_ratio_boomer "1.5"

    // luck multiplier of hunter 
    subsistence_ratio_hunter "2"

    // luck multiplier of jockey 
    subsistence_ratio_jockey "2"

    // luck multiplier of spitter 
    subsistence_ratio_spitter "1.5"

    // luck multiplier of smoker 
    subsistence_ratio_smoker "2"

    // luck multiplier of charger 
    subsistence_ratio_charger "3"

    // luck multiplier of tank 
    subsistence_ratio_tank "8"

    // luck multiplier of witch 
    subsistence_ratio_witch "8"

    // luck ratio of m60 
    subsistence_ratio_m60 "0.5"

    // luck ratio of magnum 
    subsistence_ratio_magnum "0.25"

    // luck ratio of pistol 
    subsistence_ratio_pistol "4"

    // luck ratio of rifle 
    subsistence_ratio_rifles "1.5"

    // luck ratio of shotgun 
    subsistence_ratio_shotgun "0.25"

    // luck ratio of smgs 
    subsistence_ratio_smgs "5"

    // luck ratio of snipers 
    subsistence_ratio_snipers "0.33"

    // luck ratio of Grenade Launcher 
    subsistence_ratio_gl "0.05"

    // luck multiplier of headshot 
    subsistence_ratio_headshot "1.5"

    // allow generate ammo instead load from reserved, 0:load from reserved 0.5:generate part ammo
    subsistence_allow_generate "0.5"

    // allow bot use subsistence
    subsistence_allow_bot "0" 

    Related Plugins

    changelog
    • v1.0 just releases; 22-2-22
    • v1.1 optional 'use generate ammo instead load from reserved', remove unused code; 22-2-22(noon)
    • v1.1.1 fix issue 'wrong key causes m16 rifle not work'; 23-2-22
    • v1.2 new feature: 'generate ammo also allow float value to generate part ammo', fix issue 'sometime wrong reserve ammo display'; 1-3-22
    • v1.3
      • new ConVar *_allow_bot to control does allow bot to access subsistence,
      • fix subsistence trigger when weapon not match; 25-November-2022;
      • v1.3.1 fix player kill zombie without weapon; 27-November-2022


    Installation
    • put l4d2_subsistence.smx on /plugins/
    Attached Images
    File Type: jpg higher ratio with smg.jpg (59.2 KB, 242 views)
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_subsistence.sp - 207 views - 13.3 KB)
    __________________

    Last edited by NoroHime; 11-27-2022 at 06:44.
    NoroHime is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 02-22-2022 , 00:03   Re: [L4D2] Killing Ammo / Subsistence (Destiny 2 ability) v1.1 [2-22-22]
    Reply With Quote #2

    update
    Quote:
    • v1.1 optional 'use generate ammo instead load from reserved', remove unused code; 22-2-22(noon)
    • v1.1.1 fix issue 'wrong key causes m16 rifle not work'; 23-2-22
    PHP Code:
    // allow generate ammo instead load from reserved, 0:load from reserved 1:generate ammo
    subsistence_allow_generate "0" 
    __________________

    Last edited by NoroHime; 02-23-2022 at 07:12.
    NoroHime is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 02-28-2022 , 21:57   Re: [L4D2] Killing Ammo / Subsistence (Destiny 2 ability) v1.2 [1-3-22]
    Reply With Quote #3

    update
    Quote:
    PHP Code:
    // allow generate ammo instead load from reserved, 0:load from reserved 0.5:generate part ammo
    subsistence_allow_generate "0.5"

    // allow bot use subsistence
    subsistence_allow_bot "0" 
    • v1.2 new feature: 'generate ammo also allow float value to generate part ammo', fix issue 'sometime wrong reserve ammo display'; 1-3-22
      • v1.3 new ConVar *_allow_bot to control does allow bot to access subsistence,
      • fix subsistence trigger when weapon not match; 25-November-2022;
    __________________

    Last edited by NoroHime; 11-24-2022 at 15:12.
    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 20:00.


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