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

Solved [REQ] L4D2 Glow survivor


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AlexAlcala
Member
Join Date: May 2019
Location: Perú
Old 06-12-2020 , 06:10   [REQ] L4D2 Glow survivor
Reply With Quote #1

Excuse my english.

A while ago I saw a plugin that left the aura of the special infected when they died:

https://forums.alliedmods.net/showthread.php?p=1749933


I thought it was great to see the aura of color and I wanted to adapt it to the survivors, that each player choose the color they want and even create a menu with very little knowledge that I have.

I don't know how to write plugins, I just played around a bit and was guided by a few things, but the point is that the player's aura disappears after a while and I would like him to stay until the player leaves the game, please someone help me



I attach some images of how it looks on my server



Last edited by AlexAlcala; 08-10-2020 at 02:22. Reason: cambio de título
AlexAlcala is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-12-2020 , 08:02   Re: [HELP] L4D2 Glow survivor
Reply With Quote #2

I made one based on Flashlight from Silvers a long time ago, but still has a lot of bugs, not ready to share here yet.

I know that there is some plugins that does that but I don't know the names, usually people call it "aura" or "glow".
What I did is something very similar to what you have done, I also added some features like make the flash blink (m_bFlashing 0/1), rainbow colors and allowing to admins set the glow in other clients too.
__________________

Last edited by Marttt; 06-12-2020 at 08:02.
Marttt is offline
AlexAlcala
Member
Join Date: May 2019
Location: Perú
Old 06-12-2020 , 14:05   Re: [HELP] L4D2 Glow survivor
Reply With Quote #3

I don't know if what I did is right or wrong, but I would like the glow to last longer, if you could share your plugin to try to understand it and maybe I can do something by trying
AlexAlcala is offline
SombiMan
Junior Member
Join Date: Jun 2020
Old 06-13-2020 , 07:37   Re: [HELP] L4D2 Glow survivor
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?p=1613576

I found this. It doesn't exactly do what you've requested, but it's something.
SombiMan is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 06-14-2020 , 02:19   Re: [REQ] L4D2 Glow survivor
Reply With Quote #5

I can see that some of the functions are taken from the glow include but why separate them? Just add #include <glow> and use L4D2_SetEntGlow only. Correct me if I wrong but I think the reason why the glow disappears is cuz of the fact that the min and max glow ranges are set to 0, meaning players need to be at point-blank distance with each other.
cravenge is offline
AlexAlcala
Member
Join Date: May 2019
Location: Perú
Old 06-14-2020 , 05:43   Re: [REQ] L4D2 Glow survivor
Reply With Quote #6

I already changed it and the type of range I put a higher number but it remains the same, nothing changed and it only lasts about 5 minutes active then it goes away
AlexAlcala is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-14-2020 , 20:04   Re: [REQ] L4D2 Glow survivor
Reply With Quote #7

In mine, I did with a timer plugin (because had a "rainbow" effect) so It runs every "sec", not the best solution but maybe some cases like become incapped is removing the glow, or can be another plugin (like B&W)
__________________
Marttt is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-21-2020 , 18:49   Re: [REQ] L4D2 Glow survivor
Reply With Quote #8

ClientPrefs is easiest/quickest way to save stuff for when clients reconnect. If you store in array like int blah[MAXPLAYERS+1] then that would only work over map changes not past server restart or client reconnect. Several of my plugins use if you need to look for examples.
__________________
Silvers 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 00:54.


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