Garry's Mod

Garry's Mod

[Radio] Kanye West - My Beautiful Dark Twisted Fantasy
13 Comments
Aisunax 2 Nov, 2024 @ 12:25pm 
olive delights
allen the dumpster 19 Aug, 2024 @ 3:09pm 
just played around with materials on my own. SetTexture is for IMaterial, which is a material object unique to Gmod so that's my bad. all GetMaterial does is return the string path to a material, it doesn't return an IMaterial like i had thought.

the easiest solution seems to be making your own kanye radio material. all this needs is a VMT file in the same folder of your VTF file. VMT is a simple text file that can define a material and give it a texture. the valve wiki has a VMT file page for info, alongside an example you can copy+paste then edit.

the following line worked for me, after getting a material path from the asset browser (asset browser found by holding C):
self:SetMaterial("path/to/kanyeradio")
for some reason, SetMaterial doesn't need you to tell it to look in the materials folder and specify filetype, unlike SetModel. so just feed it the path to the kanyeradio material with ".vmt" and "materials/" removed
narpy  [author] 19 Aug, 2024 @ 3:09am 
nope, it just said I spawned it and nothing else
allen the dumpster 18 Aug, 2024 @ 8:17pm 
do you remember if it made an error pop up in the console?
narpy  [author] 18 Aug, 2024 @ 8:24am 
thank you for your time to even write all of this, sadly I tried doing the "self:GetMaterial:SetTexture("$basetexture", "pathtokanyeradio.vtf")" and it unfortunately just made the radio not wanna spawn anymore, I'm not very skilled in coding, modeling or anything like that so I basically have no clue what I'm doing wrong - or even what I'm doing at all... messing with the actual .mdl files seems too complicated for me as blender is literally like black magic to me, plus there's like a bit of files in the models folder which I have absolutely no clue how to open or edit so there's that..
allen the dumpster 17 Aug, 2024 @ 10:06pm 
a hacky way of doing it would be to copy the hl2 radio model, name it something else, then give that model the kanye radio texture. then you set the entity model to the duplicate kanye radio on init. it'd be a little bit of unneeded bloat but it'd work.

you've probably tried all this, but idk mentioning some stuff might help just incase.
allen the dumpster 17 Aug, 2024 @ 10:05pm 
im gonna have to spam your shit a bit, sorry. 1k limit on replies.

not too involved in modding, only messed with gamemodes a bit. but the standard radio texture is being overridden (most likely) because it has the same name as the hl2 radio texture. so to prevent overriding, you just have to name the kanye radio texture to something else, then give the entity that new kanye radio texture when it initializes.

as for applying the new kanye radio texture; gmod wiki says there's a SetTexture function for Materials (called IMaterial). you could probably do an easy one/two-line texture application in your entity initialization script like self:GetMaterial:SetTexture("$basetexture", "pathtokanyeradio.vtf").
there's also a SetMaterial function but actually creating a material is probably its own dedicated thing.
narpy  [author] 17 Aug, 2024 @ 1:45pm 
sadly I know, I tried to fix it but I couldn't :<
allen the dumpster 11 Aug, 2024 @ 10:30pm 
this mod overrides the radio texture :/
Twerku 4 Mar, 2024 @ 12:00pm 
<3
narpy  [author] 28 Feb, 2024 @ 10:44am 
double tap e on the radio to skip a song, it's randomized so the same song may play in a row
✪ crT- 28 Feb, 2024 @ 10:33am 
how do i skip one
Julia  [author] 27 Feb, 2024 @ 9:24am 
Let's have a toast for the douche bags
Let's have a toast for the assholes
Let's have a toast for the scumbags