Changing Model Size without changing hitbox DarkRP
2 replies, posted
Hello!, I have a Custom Job I want to change the size to, without changing the hitbox (They get stuck in doors and they have more advantage)
TEAM_EXAMPLE = DarkRP.createJob("Example", {
color = Color(255,255,255,255),
model = {"models/examplemodel.mdl"},
description = [[ Example job ]],
weapons = {},
command = "example",
max = 1,
modelScale = 0.7,
salary = 200,
admin = 0,
vote = false,
hasLicense = true,
category = "Other"
})
modelScale = 0.7 does change the model's size but it changes it's hitbox as well, any help changing just how the model looks and not the hitbox of it?,
I tried ply:SetModelScale( 0.7, 0 ) yet I'm quite sure that changes the hitbox too and makes the model able to get stuck in doors.
Thanks.
You can take a look at how DarkRP does it and make the code for your requirements
DarkRP uses "ply:SetModelScale" which I can simply put in the loadout of my DarkRP job and it'll work, but the hitboxes still change;
I still get stuck in doors and people are able to shoot over my head...
I want to preserve the hitbox as if the model was at the size of 1, but show up to people the size of 0.7
Sorry, you need to Log In to post a reply to this thread.