User:PrisimaTF/Lua Skincolors
Jump to navigation
Jump to search
skincolor_t
General | |
---|---|
Accessibility | Read+Write |
Allows custom variables | Yes |
skincolor_t structure
| |||
---|---|---|---|
Name | Type | Accessibility | Description/Misc notes |
name
|
string | Read+Write | The name of the skincolor. Used in the console and Player Setup menu. Names containing spaces must be put in quotes in the console. |
ramp
|
UINT8 array | Read+Write | An array of 16 palette indices, which in whole represent the skincolor's color ramp. |
md2color
|
UINT8 | Read+Write | The color used for MD2s. |
invcolor
|
UINT8 | Read+Write | The opposite skincolor. Used on the Goal Sign. |
invshade
|
UINT8 | Read+Write | The shade of the opposite skincolor, from 0 to 15. Used on the Goal Sign. |
accessible
|
boolean | Read+Write | Skincolor accessibility. Can it be accessed from the Player Setup menu or from the console? |
Lua definition
This is an example of a skincolor definition written with Lua.
skincolors[SKINCOLOR_BLUE] = {
name = "Blue",
ramp = {226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241},
md2color = 232,
invcolor = SKINCOLOR_ORANGE,
invshade = 9,
accessible = true
}