View Single Post
Paimon
Member
Join Date: Jul 2021
Location: Zootopia
Old 06-01-2023 , 05:15   Re: [L4D2] Alpha decay?
Reply With Quote #5

I'm not sure it will work.
In your code
PHP Code:
if(Alpha[entity] >= 255Alpha[entity] = 255;
else 
Alpha[entity] = 0
has an logic error(if your purpose is what I guess...). It will make alpha array always be 0 or 255. And if you didn't give the initial value as 255, it will always be 0.
So the value you input to entity will always be (255 - 0).
Paimon is offline