Raised This Month: $32 Target: $400
 8% 

[L4D2] Thirdstrike Glow v3.3【Final】


Post New Thread Reply   
 
Thread Tools Display Modes
Author
little_froy
Senior Member
Join Date: May 2021
Plugin ID:
8257
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 10-29-2022 , 10:57   [L4D2] Thirdstrike Glow v3.3【Final】
    Reply With Quote #1

    Description
    Cvars
    PHP Code:
    // color of glow, split up with space
    // -
    // Default: "255 255 255"
    thirdstrike_glow_color "255 255 255"

    // 1 = enable, 0 = disable. will the glow flash?
    // -
    // Default: "0"
    thirdstrike_glow_flash "0"

    // max visible range of glow. 0 = infinite
    // -
    // Default: "0"
    // Minimum: "0.000000"
    thirdstrike_glow_range "0"

    // min range far awaw to visible the glow, 0 = no limit
    // -
    // Default: "0"
    // Minimum: "0.000000"
    thirdstrike_glow_range_min "0"

    // 1 = enable, 0 = disable. can the glow be seen through wall?
    // -
    // Default: "1"
    thirdstrike_glow_through_wall "1" 
    Natives and Forwards(for developers)
    Spoiler


    Change log
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (thirdstrike_glow.sp - 174 views - 5.3 KB)

    Last edited by little_froy; 10-20-2023 at 02:45.
    little_froy is offline
    xerox8521
    Senior Member
    Join Date: Sep 2011
    Old 10-29-2022 , 11:49   Re: [L4D2] Thirdstrike Glow v1.0.5【2022-10-29】
    Reply With Quote #2

    Cool idea, some things that should be changed though.
    Instead of checking if the survivor is on third strike every frame you could just hook revive_success and check the lastlife boolean to set the glow and use heal_success to remove the glow.
    You probably also don't need to check each glow netprop if it's set before you set / reset it.
    xerox8521 is offline
    TBK Duy
    Member
    Join Date: Jun 2017
    Location: Vietnam
    Old 10-30-2022 , 02:11   Re: [L4D2] Thirdstrike Glow v1.0.5【2022-10-29】
    Reply With Quote #3

    Quote:
    Originally Posted by xerox8521 View Post
    Cool idea, some things that should be changed though.
    Instead of checking if the survivor is on third strike every frame you could just hook revive_success and check the lastlife boolean to set the glow and use heal_success to remove the glow.
    You probably also don't need to check each glow netprop if it's set before you set / reset it.
    That would just ended up this plugin being the same with others one

    This one really fit me, I used Healing Field and Saferoom Naps, they do not remove glow when survivor is healed. But this one will checked if survivor is black and white every frame so its could remove the glow when it needed

    The current method is fine, for me at least. I hope the author will keep it that way
    TBK Duy is offline
    Xenorvya
    Junior Member
    Join Date: May 2022
    Old 11-01-2022 , 14:17   Re: [L4D2] Thirdstrike Glow v1.0.7【2022-10-30】
    Reply With Quote #4

    I agree with TBK, it checking every frame to detect if a survivor's B&W is a much better idea. Some mods like healing gnome, healing soda or insta b&w Witch hit may break if done otherwise.
    Xenorvya is offline
    gongo
    Junior Member
    Join Date: May 2022
    Old 11-03-2022 , 06:40   Re: [L4D2] Thirdstrike Glow v1.0.7【2022-10-30】
    Reply With Quote #5

    Great plugin, but I have two issues with it.

    1. Only the survivor glow is white, not the glow around the survivor's items when looking at the survivor through wall. Survivor glow is white, but the glow around the survivor's medkit, items and weapons is blue.


    2. The survivor glows on realism, should have an option to disable it for realism. Also I would add a second "thirdstrike_glow_range" for realism only, so you can have lower range for realism and big range for normal mode.

    Also I was thinking It would be good if you could add a skull or something to the survivor's health bar when the survivor is about to die. But I don't know if that's possible and it would probably break with custom HUD mods.

    Last edited by gongo; 11-03-2022 at 07:28.
    gongo is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 11-03-2022 , 08:35   Re: [L4D2] Thirdstrike Glow v1.0.7【2022-10-30】
    Reply With Quote #6

    I would hook the clients on spawn, remove on death/round_end/OnMapEnd and use SDKHook_PostThink to check instead of OnFrame looping clients. I would assume that way is more efficient.
    __________________
    Silvers is offline
    little_froy
    Senior Member
    Join Date: May 2021
    Old 04-01-2023 , 09:21   Re: [L4D2] Thirdstrike Glow v1.0.7【2022-10-30】
    Reply With Quote #7

    Quote:
    Originally Posted by gongo View Post
    Great plugin, but I have two issues with it.

    1. Only the survivor glow is white, not the glow around the survivor's items when looking at the survivor through wall. Survivor glow is white, but the glow around the survivor's medkit, items and weapons is blue.


    2. The survivor glows on realism, should have an option to disable it for realism. Also I would add a second "thirdstrike_glow_range" for realism only, so you can have lower range for realism and big range for normal mode.

    Also I was thinking It would be good if you could add a skull or something to the survivor's health bar when the survivor is about to die. But I don't know if that's possible and it would probably break with custom HUD mods.
    i add the new cvar "thirdstrike_glow_through_wall", this may help the question 2.
    sorry for the late.
    little_froy 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 21:38.


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