Garry's Mod

Garry's Mod

EasyChat
Rooki 31 Jan, 2021 @ 9:18am
Any cool Chat macros?
Hello there all,

I am interested if there is any other funny macros?

It would be great if you would share it :D
< >
Showing 1-3 of 3 comments
Earu  [developer] 7 Feb, 2021 @ 2:07am 
You can dump these into individual .txt files under GarrysMod\garrysmod\data\easychat\macros

wave:
{
"PerCharacter": false,
"IsLua": true,
"Value": "local chars = MACRO_INPUT:Split(\"\")\nfor i=1, #chars do\nchars = (\"<translate=0, sin(%d+t()*5)*5>%s<stop>\"):format(i, chars)\nend\n\nreturn table.concat(chars)"
}

rainbow:
{
"PerCharacter": false,
"IsLua": true,
"Value": "local chars = MACRO_INPUT:Split(\"\")\nfor i=1, #chars do\nchars = (\"<hsv=t()*300+%d*10>%s\"):format(i, chars)\nend\n\nreturn table.concat(chars)"
}

circle:
{
"PerCharacter": false,
"IsLua": false,
"Value": "<translate=sin(t()*3)*100,cos(t()*3)*100>"
}

this one works with the Playable Piano font
drip:
{
"PerCharacter": false,
"IsLua": false,
"Value": "<font=InstrumentKeyLabel><background=0,0,0>"
}

festive:
{
"PerCharacter": false,
"IsLua": true,
"Value": "local chars = MACRO_INPUT:Split(\"\")\n\nfor i = 1, #chars do\n\tif i % 2 == 0 then\n\t\tchars =(\"<hsv=[clamp(sin(t()*2*pi)*1000,-45,45)+45]>%s\"):format(chars)\n\telse\n\t\tchars =(\"<hsv=[clamp(sin(t()*2*pi+pi)*1000,-45,45)+45]>%s\"):format(chars)\n\tend\nend\n\nreturn table.concat(chars)"
}
Last edited by Earu; 7 Feb, 2021 @ 2:08am
Rooki 10 Feb, 2021 @ 1:05am 
Thanks
Rooki 10 Feb, 2021 @ 1:33am 
Thanks buuut one of them creates an error and "crashes" the macro
< >
Showing 1-3 of 3 comments
Per page: 1530 50