Server: Power Switch skin hotfix

This commit is contained in:
unknown 2022-04-06 10:26:32 -04:00
parent 8a7e3dbf94
commit 73f7d7ff24

View file

@ -1149,6 +1149,10 @@ void() power_switch =
if (!self.oldmodel)
self.oldmodel = "sounds/machines/power.wav";
// Skin
if (!self.skin)
self.skin = 0;
self.solid = SOLID_TRIGGER;
Precache_Set(self.model);
precache_sound(self.oldmodel);