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

[L4D & L4D2] Random Color Tank


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Plugin ID:
5545
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 02-24-2017 , 05:49   [L4D & L4D2] Random Color Tank
    Reply With Quote #1

    Hi all, this little plugin changes the color of the tank would be 16 colors in total.
    PHP Code:
    24. 02. 2017 Release
    Attached Files
    File Type: smx l4d_Random Color Tank.smx (5.1 KB, 962 views)
    File Type: sp Get Plugin or Get Source (l4d_Random Color Tank.sp - 2305 views - 1.7 KB)

    Last edited by Alexmy; 07-29-2017 at 15:04.
    Alexmy is offline
    Figa
    Member
    Join Date: Apr 2011
    Location: Siberia
    Old 02-24-2017 , 08:39   Re: [L4D & L4D2] Random Color Tank
    Reply With Quote #2

    More random =D
    PHP Code:
    SetEntityRenderColor(clientGetRandomInt(0255), GetRandomInt(0255), GetRandomInt(0255), 255); 
    __________________
    Sorry for my bad English. Wrote my pet bear.

    Last edited by Figa; 02-24-2017 at 08:39.
    Figa is offline
    Alexmy
    Senior Member
    Join Date: Oct 2014
    Location: Russian Federation
    Old 07-29-2017 , 15:15   Re: [L4D & L4D2] Random Color Tank
    Reply With Quote #3

    Quote:
    Originally Posted by Figa View Post
    More random =D
    PHP Code:
    SetEntityRenderColor(clientGetRandomInt(0255), GetRandomInt(0255), GetRandomInt(0255), 255); 
    Thanks, good idea =).
    Attached Files
    File Type: smx l4d_Random Color Tank.smx (4.8 KB, 570 views)
    File Type: sp Get Plugin or Get Source (l4d_Random Color Tank.sp - 1424 views - 758 Bytes)
    Alexmy is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 02-19-2022 , 00:58   Re: [L4D & L4D2] Random Color Tank
    Reply With Quote #4

    "SetEntityRenderColor(client, GetRandomInt(175, 255), GetRandomInt(175, 255), GetRandomInt(175, 255), 255);"

    This setting does not have such saturated colors, which makes them somewhat ridiculous. It has the same variety of colors, but the original texture and color is still visible.
    Toranks is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 03-03-2022 , 18:25   Re: [L4D & L4D2] Random Color Tank
    Reply With Quote #5

    [L4D2] Random Color SI [1.0]

    Now here on its own thread

    I have adapted the script with the same function, but for all specials. If you use Accelerator mod "Special Allow Coloring" it will work for Charger, Smoker, Hunter and Boomer/Boomette.

    "Special Allow Coloring" on Steam Workshop

    Note: Vainilla witch and bride witch can't be colored but it is still possible to change the color of other custom witch models that have the parameter $allowdiffusemodulation 1 on her vmt script file (textures definitions). This parameter cannot be applied to the vainilla witches, because she loses all colors and becomes a random neon color.

    Quote:
    FIXED I don't know how to do the same for Charger, Hunter, Witch or Boomer. If anyone knew, I'd be happy. (Debate about setentitycolor: https://forums.alliedmods.net/showthread.php?t=261374 ) FIXED
    I have limited the range of colours so they don't get too saturated, and it's more realistic. You need to edit the source code if you want to change color range, but it is very easy. Change the values on these lines:

    Code:
    "SetEntityRenderColor(client, GetRandomInt(155, 255), GetRandomInt(155, 255), GetRandomInt(155, 255), 255);"




    Last edited by Toranks; 06-02-2022 at 00:01. Reason: New plugin
    Toranks is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 05-12-2022 , 01:36   Re: [L4D & L4D2] Random Color Tank
    Reply With Quote #6

    I have updated the previous post with a plugin to random colorize all SI and a demostration. Thanks to @Marttt for providing the links that helped me to find the solution.
    https://forums.alliedmods.net/showpo...6&postcount=85
    Toranks is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 06-02-2022 , 00:02   Re: [L4D & L4D2] Random Color Tank
    Reply With Quote #7

    I have published the plugin independently, since I have added functionality to be able to choose the intensity of the color and separately for each SI via cvars, in addition to activating and deactivating at will, and something else in the future

    https://forums.alliedmods.net/showthread.php?p=2780746
    Toranks 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 22:27.


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