Raised This Month: $ Target: $400
 0% 

[L4D2] Killing Ammo / Subsistence (Destiny 2 ability) v1.2 [1-3-22]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Senior Member
Join Date: Aug 2016
Location: China
Plugin ID:
7974
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    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.2 [1-3-22]
    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" 

    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


    Installation
    • put l4d2_subsistence.smx on /plugins/
    Attached Images
    File Type: jpg higher ratio with smg.jpg (59.2 KB, 106 views)
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_subsistence.sp - 68 views - 12.6 KB)
    __________________
    receiver/provider from chi

    Last edited by NoroHime; 02-28-2022 at 21:57.
    NoroHime is offline
    NoroHime
    Senior Member
    Join Date: Aug 2016
    Location: China
    Old 02-21-2022 , 14:46   Re: [L4D2] Killing Ammo / Subsistence (Destiny 2 ability) v1.0 [2-22-22]
    Reply With Quote #2

    maybe L4D1 compatible, is there someone trying ? i removed offset hard code to dynamic get
    __________________
    receiver/provider from chi
    NoroHime is offline
    NoroHime
    Senior Member
    Join Date: Aug 2016
    Location: China
    Old 02-22-2022 , 00:03   Re: [L4D2] Killing Ammo / Subsistence (Destiny 2 ability) v1.1 [2-22-22]
    Reply With Quote #3

    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" 
    __________________
    receiver/provider from chi

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

    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" 
    • v1.2 new feature: 'generate ammo also allow float value to generate part ammo', fix issue 'sometime wrong reserve ammo display'; 1-3-22
    __________________
    receiver/provider from chi
    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 11:26.


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