(I have little knowledge of c#, and I have just started making plugins)
Thanks!
@TerrorNisse Well wulf if right, Technically, it will only scale on the server.
But, you can also trick the client as well. The only way i recently found to scale a item that a client will see is to actually spawn a Visualization sphere, spawn the object you want to scale, parent it to the sphere. And as the sphere lerps to its radius, it will also scale up / down the object and is visible by players. (basic idea anyway)
But, (second but), I also found, only clients who see it perform the scaling when it happens, will see it at the scaled size. if a player logs in after it scales, or are not close enough, they only see the standard scaling.
still fun though to spawn in a 20ft tall bear. lol
not all object act right when scaled too. Such as horse, if you scale past about 3x size, the mount location is inside horse, not on top. looks funny.
ColonBlow
@TerrorNisse Well wulf if right, Technically, it will only scale on the server.
But, you can also trick the client as well. The only way i recently found to scale a item that a client will see is to actually spawn a Visualization sphere, spawn the object you want to scale, parent it to the sphere. And as the sphere lerps to its radius, it will also scale up / down the object and is visible by players. (basic idea anyway)
But, (second but), I also found, only clients who see it perform the scaling when it happens, will see it at the scaled size. if a player logs in after it scales, or are not close enough, they only see the standard scaling.
still fun though to spawn in a 20ft tall bear. lol
not all object act right when scaled too. Such as horse, if you scale past about 3x size, the mount location is inside horse, not on top. looks funny.
You can do sphere lerp update (i am sure you already know that)
Mount locations and such thing must be not so big issue, right?
ColonBlow
But, (second but), I also found, only clients who see it perform the scaling when it happens, will see it at the scaled size. if a player logs in after it scales, or are not close enough, they only see the standard scaling.
Interesting. I'm going to try oscillating the scale; have a bear constantly flip between 20x and 19.999x size. See if that works.
Might actually look more scary going between 20 and 21. Some sort of blurry ass super bear wrecking everything.
Is it possible to scale effects in a similar way?
ZugzwangInteresting. I'm going to try oscillating the scale; have a bear constantly flip between 20x and 19.999x size. See if that works.
Might actually look more scary going between 20 and 21. Some sort of blurry ass super bear wrecking everything.
Is it possible to scale effects in a similar way?
yeah, i have not tried too much more since i first noticed it worked a few weeks ago. But looping the scale very slightly might fix the issue of if player not being online/close enough to see the single scale lerp. but i can test that too. good idea.
But alot of other stuff like colliders, mount locations and other things are not scaled at all. But you could probrably recode there locations/size after it spawns. Like a 20x bear, you would still have a hit collider the same size as a normal bear when you attack it, which means you will never hit the 20x bear.. lol unless you can resize the collder as well, or add a new one the size wanted.
But, I did make a quick Shrink / Expand Ray gun out of the Garry's Mod toolgun and applied the basic concept i have above :) check out the video.