p2sr / SourceAutoRecord

Speedrun plugin for Source engine games.
https://sar.portal2.sr/
MIT License
95 stars 33 forks source link

[Feature] Change Portal Color #233

Closed NoName50 closed 1 day ago

NoName50 commented 6 months ago

Addresses are included in the cheat table below Also included LUA scripts to change colors to achieve the effect in the Krzyhau video.

Convar suggestions:

Variable hud_sp_quickinfo_leftcolor("hud_sp_quickinfo_leftcolor", "64 160 255", "Changes the color of the singleplayer left quickinfo hud.\n");
Variable hud_sp_quickinfo_rightcolor("hud_sp_quickinfo_rightcolor", "255 160 32", "Changes the color of the singleplayer right quickinfo hud.\n");
Variable cl_sp_portalonecolor("cl_sp_portalonecolor", "0 60 255", "Changes the color of the singleplayer primary portal.\n");
Variable cl_sp_portaltwocolor("cl_sp_portaltwocolor", "233 78 2", "Changes the color of the singleplayer second portal.\n");
Variable cl_coop_blue_portalonecolor("cl_coop_blue_portalonecolor", "32 128 210", "Changes the color of Blue's primary portal.\n");
Variable cl_coop_blue_portaltwocolor("cl_coop_blue_portaltwocolor", "19 0 210", "Changes the color of Blue's second portal.\n");
Variable cl_coop_orange_portalonecolor("cl_coop_orange_portalonecolor", "255 180 32", "Changes the color of Orange's primary portal.\n");
Variable cl_coop_orange_portaltwocolor("cl_coop_orange_portaltwocolor", "57 3 3", "Changes the color of Orange's second portal.\n");

(I was trying to learn C++, but it's too hard for me😞)

ThisAMJ commented 6 months ago

see also https://discord.com/channels/146404426746167296/811780246608281650/1011584350229373019

ThisAMJ commented 5 months ago
Name Default Description
sar_portalcolor_enable 0 Enable custom portal colors.
sar_portalcolor_mp1_1 31 127 210 Portal color for Atlas (blue)'s left portal.
sar_portalcolor_mp1_2 19 0 210 Portal color for Atlas (blue)'s right portal.
sar_portalcolor_mp2_1 255 179 31 Portal color for P-Body (orange)'s left portal.
sar_portalcolor_mp2_2 57 2 2 Portal color for P-Body (orange)'s right portal.
sar_portalcolor_sp_1 64 160 255 Portal color for Chell's left portal.
sar_portalcolor_sp_2 255 160 32 Portal color for Chell's right portal.

Crosshair ("quickinfo") colors come for free when changing the portal colors.

Mostly implemented by 5541017, but changing the color of sp portals is yet to be done.