Hey guys,
This is a modified version of Kogitsune's player resizer.. and yes: I asked him for permission to post this and as it is quite highly modified he agreed on me posting it here.
First of all: the download link:
[url=http://www.garrysmod.org/downloads/?a=view&id=84054][img]http://www.garrysmod.org/img/?t=dll&id=84054[/img][/url]
Changes from the original player resizer are:
-it includes an eye height adjuster.. so in case you use a smaller/bigger than normal model you can try to adjust eye heights so that they fit your model size.. some models I personally use (Sonic player models mainly) are already hardcoded into it so their eye height will match up their normal sizes.
-no limits.. Kogitsune had a .16 to 16 size limit.. while this is a quite reasonable limit (errors are well possible below) I removed them and you can normally resize from .01 to 100 - via console you could go even more extreme it does not limit anything but issues WILL occur!
-resizing speed can be adjusted.. from 0 to 10 (negative values possible via console).. 10 means instant resize.. you basically just click and you have a new size.. 0 on the other hand takes half an hour
-exponential scaling as an option: meaning the process is not linear
A linear process would mean: imagine you shrink down to 25% (0.25) of your normal size (beginning from 1.0) meaning: you lose 75% of your size - that would mean: after half the shrinking time you reached 62.5% of your size before (you lost 37.5% - half of 75%).
In an exponential scaling after half the time you lost half the size.. so you went down to 50% - and in the second half you lose 25% (50% of 50).. the exponential one has a nicer feel to it as a linear shrink seems that you are shrinking faster and faster
-disallow other players to resize
Many friends fo mine complained about one minor thing of the player resizer.. imagine you try to build something.. and someone shots you from behind making you 10 times larger while you are trying to position something with the phys gun.. totally stupid! Thus: you can decide whether other players are allowed to resize you.. so in case you are doing critical stuff and don't need player doing jokes behind you.. disallow them!
EDIT: I totally forgot:
your size is stored on server side.. so when you return.. you keep your old size!
Have fun!
Not bad edit, at least you got permission.
This just changes your eyelevel or the whole hitbox ?
the eye level changer which allows you to set the eye height corresponding to the player model's eye height does nothing.. an actual scaling process does change the hitbox (notice you need to respawn so that it updates)
Cool, also does this change the player's view?
Yes, of course!
Awesome, just tested it :D was great.
all you need now is to be able to be squashed when small, and able to squash small things when large
this addon completely breaks the playermodels and your movement viewpoint when joining a multiplayer server
I struggled for days trying to find out why I had these bugs on my community server
but it's pretty awesome and flawless when it's on your own server
[QUOTE=Hell-met;18636869]this addon completely breaks the playermodels and your movement viewpoint when joining a multiplayer server[/QUOTE]I don't know about player models, but I can agree with the viewpoint problem; removing the addon restores your view back to normal.
[QUOTE=Hell-met;18636869]this addon completely breaks the playermodels and your movement viewpoint when joining a multiplayer server
I struggled for days trying to find out why I had these bugs on my community server
but it's pretty awesome and flawless when it's on your own server[/QUOTE]
That problem is new to me as I used it only on my own server.. thanks for that information I'll look into it!
I believe there is a crash problem when someone is at max height, is there any way to change the height limits? (which file contains the line I can edit?)
This breaks all of my playermodels and causes everything I make to be off by quite a ways, and I was hoping this would have been cool.
[QUOTE=Link00y;18675476]That problem is new to me as I used it only on my own server.. thanks for that information I'll look into it![/QUOTE]
He's probably just trolling again, I wouldn't listen to him.
[QUOTE=SplinterSim4;18675804]I believe there is a crash problem when someone is at max height, is there any way to change the height limits? (which file contains the line I can edit?)[/QUOTE]
this line:
[code]panel:AddControl( "Slider", { Label = "Size", Type = "Float", Min = .01, Max = 100, Command = "resize_size" } )[/code]
in resize.lua under lua/weapons/gmod_tool/stools
(near bottom)
Sorry, you need to Log In to post a reply to this thread.