AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Thirdstrike Glow v3.3【Final】 (https://forums.alliedmods.net/showthread.php?t=340159)

little_froy 10-29-2022 10:57

[L4D2] Thirdstrike Glow v3.3【Final】
 
1 Attachment(s)
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

xerox8521 10-29-2022 11:49

Re: [L4D2] Thirdstrike Glow v1.0.5【2022-10-29】
 
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.

TBK Duy 10-30-2022 02:11

Re: [L4D2] Thirdstrike Glow v1.0.5【2022-10-29】
 
Quote:

Originally Posted by xerox8521 (Post 2791790)
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

Xenorvya 11-01-2022 14:17

Re: [L4D2] Thirdstrike Glow v1.0.7【2022-10-30】
 
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.

gongo 11-03-2022 06:40

Re: [L4D2] Thirdstrike Glow v1.0.7【2022-10-30】
 
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.
https://i.imgur.com/AD1nCsV.jpg

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.

Silvers 11-03-2022 08:35

Re: [L4D2] Thirdstrike Glow v1.0.7【2022-10-30】
 
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.

little_froy 04-01-2023 09:21

Re: [L4D2] Thirdstrike Glow v1.0.7【2022-10-30】
 
Quote:

Originally Posted by gongo (Post 2792051)
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.
https://i.imgur.com/AD1nCsV.jpg

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.


All times are GMT -4. The time now is 22:29.

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