-
-
Notifications
You must be signed in to change notification settings - Fork 3
Angelscript GetKeyValue returns incorrect values from color KVs #2180
Copy link
Copy link
Open
Labels
Compat: Portal 2Breaks Portal 2 compatabilityBreaks Portal 2 compatabilityPriority 3: MediumMedium priority stuffMedium priority stuffSize 4: Smallaffects a few things--might be trival to completeaffects a few things--might be trival to completeType: BugSomething isn't workingSomething isn't workingWhat: ScriptingIssues relating to VScript or AngelScript.Issues relating to VScript or AngelScript.
Metadata
Metadata
Assignees
Labels
Compat: Portal 2Breaks Portal 2 compatabilityBreaks Portal 2 compatabilityPriority 3: MediumMedium priority stuffMedium priority stuffSize 4: Smallaffects a few things--might be trival to completeaffects a few things--might be trival to completeType: BugSomething isn't workingSomething isn't workingWhat: ScriptingIssues relating to VScript or AngelScript.Issues relating to VScript or AngelScript.
Describe the bug
If
CBaseEntity::GetKeyValue()in Angelscript is used to retrieve the value of a color KV (tested in my case withenv_portal_laser'sbeamcolor), the returned string will contain a single 32-bit integer containing all four RGBA color channels, followed by three more random 32 bit integers which when converted to hex seem to just be various combinations of00andDE.Examples from a number of lasers:
Expected behavior is that it should either return the individual color channel bytes separated by spaces, or return a single 32 bit integer as a string.
Issue Map
Any
To Reproduce
GetKeyValue()with the name of a color KV and prints the resultOperating System
Tested on Windows 10