Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Medicines No More Limited v1.2.2 [14-March-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Senior Member
Join Date: Aug 2016
Location: China
Plugin ID:
7952
Plugin Version:
1.2.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    ate more pills and gets more pain
    Old 02-05-2022 , 18:18   [L4D & L4D2] Medicines No More Limited v1.2.2 [14-March-2022]
    Reply With Quote #1

    about
    • break 100 health limit when using Pills and Adrenaline include First Aid Kit;
    • first aid kit healing wouldnt eat your temp health
    • when health reached to specified value, overflow temp health can turn to true health as rate
      because we dont really need player actually unlimited
    • reference some code from Left 4 Dhooks Direct(left4dhooks_stocks.inc)
    • this also my realism part
    • should work with L4D1 but not test


    ConVar

    PHP Code:
    // Enable 'Medicines No More Limited'
    pills_unlimited_enable "1"

    // health cap, well we dont really need player actually unlimited
    // Minimum: "100.000000"
    pills_unlimited_health_max "300"

    // turn the overflow health to real health when reached max, 0.5: turn as half 0: disable 1: completely turn
    // Minimum: "0.000000"
    pills_unlimited_overflow_turn "0.5"

    // allow pain pills uses even health reached cap, but just turning temp to health during use, set 0 to stop player wasted pills
    medicines_unlimited_allow_fail "0" 

    Related Plugin
    known issue
    • sometime gets very high temp health cause HUD wrong display, but not affect game dont care


    changelog
    • v1.0 just released; 6-2-22
    • v1.0.1 fix issue 'double buff gain under 100 health'; 6-2-22
    • v1.0.2 fix issue 'switch weapon quickly before pills use will cause wrong health record'; 7-2-22
    • v1.1 add feature 'First Aid support', now name and cfg change to 'medicines no more limited', you may delete older file, thanks my best friend i want heal for him; 9-2-22
    • v1.1.1 overflow temp health of first aid causes also can turn to health; 9-2-22
    • v1.1.2 optional to stop player wasted pills when health reached cap 'medicines_unlimited_allow_fail', plugin switch and unload work better now; 9-2-22
    • v1.2 support record adrenaline duration; 26-2-22
    • v1.2.1 fix issue 'adrenaline duration not corretly work'; 28-2-22
    • v1.2.2 stricter check patch; 14-March-2022
    Attached Images
    File Type: jpg using pills.jpg (18.3 KB, 216 views)
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_medicines_unlimited.sp - 154 views - 13.3 KB)
    __________________
    receiver/provider from chi

    Last edited by NoroHime; 03-14-2022 at 08:38.
    NoroHime is offline
    Nexzor
    Junior Member
    Join Date: Nov 2021
    Old 02-05-2022 , 21:40   Re: [L4D & L4D2] Pills No More Limited v1.0 [2-6-22]
    Reply With Quote #2

    Error while compiling.

    //// l4d_pills_unlimited.sp
    //
    // l4d_pills_unlimited.sp(147) : error 017: undefined symbol "L4DWeaponSlot_Pills"
    //
    // l4d_pills_unlimited.sp(151) : error 017: undefined symbol "L4DWeaponSlot_Pills"
    //
    // l4d_pills_unlimited.sp(23 : error 021: symbol already defined: "L4DWeaponSlot_Pills"
    //
    // 3 Errors.

    l4d_pills_unlimited.sp [ 238 ] // Sorry for the emoji, but I don't know how to remove it

    Last edited by Nexzor; 02-05-2022 at 21:43. Reason: interfered emoji
    Nexzor is offline
    NoroHime
    Senior Member
    Join Date: Aug 2016
    Location: China
    Old 02-05-2022 , 21:49   Re: [L4D & L4D2] Pills No More Limited v1.0 [2-6-22]
    Reply With Quote #3

    Quote:
    Originally Posted by Nexzor View Post
    Error while compiling.

    //// l4d_pills_unlimited.sp
    //
    // l4d_pills_unlimited.sp(147) : error 017: undefined symbol "L4DWeaponSlot_Pills"
    //
    // l4d_pills_unlimited.sp(151) : error 017: undefined symbol "L4DWeaponSlot_Pills"
    //
    // l4d_pills_unlimited.sp(23 : error 021: symbol already defined: "L4DWeaponSlot_Pills"
    //
    // 3 Errors.

    l4d_pills_unlimited.sp [ 238 ] // Sorry for the emoji, but I don't know how to remove it
    thanks report, ah it is little compiler problem, im move it to header, just get plugin again
    for emoji just go advence editor , option at bottom
    __________________
    receiver/provider from chi

    Last edited by NoroHime; 02-05-2022 at 21:50.
    NoroHime is offline
    NoroHime
    Senior Member
    Join Date: Aug 2016
    Location: China
    Old 02-06-2022 , 10:50   Re: [L4D & L4D2] Pills No More Limited v1.0.1 [2-6-22]
    Reply With Quote #4

    update
    Quote:
    • v1.0.1 fix issue 'double buff gain under 100 health'; 2-6-22
    • v1.0.2 fix issue 'switch weapon quickly before pills use will cause wrong health record'; 2-7-22
    __________________
    receiver/provider from chi

    Last edited by NoroHime; 02-06-2022 at 13:45.
    NoroHime is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Taipei
    Old 02-06-2022 , 18:54   Re: [L4D & L4D2] Pills No More Limited v1.0.2 [2-7-22]
    Reply With Quote #5

    That is cool plugin, makes pills more useful
    __________________
    HarryPotter is offline
    NoroHime
    Senior Member
    Join Date: Aug 2016
    Location: China
    Old 02-09-2022 , 03:01   Re: [L4D & L4D2] Medicines No More Limited v1.1 [2-9-22]
    Reply With Quote #6

    update

    to implements feature is some cumbersome, pre hook Heal_Sucess also too late, Event_HealEnd doesnt have subject userid, finally my solution is record healer at heal_begin, and record health at heal_end from healer variable, final proper restore health from record
    and thanks my best friend Nyamorizilla i want heal it everytime so i do the update
    Quote:
    • v1.1 add feature 'First Aid support', you can heal everyone in everytime and him temp health wouldnt be eat, now name change to 'medicines no more limited', thanks my best friend i want heal for him; 2-9-22
    • v1.1.1 overflow temp health of first aid causes also can turn to health; 2-9-22
    • v1.1.2 optional to stop player wasted pills when health reached cap 'medicines_unlimited_allow_fail', plugin switch and unload work better now; 2-9-22
      PHP Code:
      // allow pain pills uses even health reached cap, but just turning temp to health during use, set 0 to stop player wasted pills
      medicines_unlimited_allow_fail "0" 
    sorry for my update frequency, i just do it instantly when idea found
    __________________
    receiver/provider from chi

    Last edited by NoroHime; 02-09-2022 at 05:33.
    NoroHime is offline
    NoroHime
    Senior Member
    Join Date: Aug 2016
    Location: China
    Old 02-26-2022 , 03:08   Re: [L4D & L4D2] Medicines No More Limited v1.2 [26-2-22]
    Reply With Quote #7

    update
    Quote:
    • v1.2 support record adrenaline duration; 9-2-22
    __________________
    receiver/provider from chi
    NoroHime is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Taipei
    Old 03-10-2022 , 09:58   Re: [L4D & L4D2] Medicines No More Limited v1.2.1 [28-2-22]
    Reply With Quote #8

    Code:
    L 03/10/2022 - 22:49:15: SourceMod error session started
    L 03/10/2022 - 22:49:15: Info (map "c1m3_mall") (file "f:\resistance\left 4 dead 2 dedicated server\left4dead2\addons\sourcemod\logs\errors_20220310.log")
    L 03/10/2022 - 22:49:15: [SM] Exception reported: Client index 0 is invalid
    L 03/10/2022 - 22:49:15: [SM] Blaming: l4d_medicines_unlimited.smx
    L 03/10/2022 - 22:49:15: [SM] Call stack trace:
    L 03/10/2022 - 22:49:15: [SM]   [0] GetClientHealth
    L 03/10/2022 - 22:49:15: [SM]   [1] Line 241, l4d_medicines_unlimited.sp::RecordHealth
    L 03/10/2022 - 22:49:15: [SM]   [2] Line 187, l4d_medicines_unlimited.sp::Event_HealEnd
    __________________

    Last edited by HarryPotter; 03-10-2022 at 09:59.
    HarryPotter is offline
    NoroHime
    Senior Member
    Join Date: Aug 2016
    Location: China
    Old 03-11-2022 , 04:01   Re: [L4D & L4D2] Medicines No More Limited v1.2.1 [28-2-22]
    Reply With Quote #9

    I don't k why heal_end receives 0 client, anyway just double-check target
    update not recent I'm back to school


    update little patch
    Quote:
    v1.2.2 stricter check patch; 14-March-2022
    __________________
    receiver/provider from chi

    Last edited by NoroHime; 03-14-2022 at 08:39.
    NoroHime is offline
    kazya3
    Junior Member
    Join Date: Aug 2019
    Old 04-05-2022 , 00:34   Re: [L4D & L4D2] Medicines No More Limited v1.2.2 [14-March-2022]
    Reply With Quote #10

    Works fine! Good job! I like it!
    kazya3 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:45.


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