AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change player size? (https://forums.alliedmods.net/showthread.php?t=314009)

sekac 01-31-2019 09:15

Change player size?
 
Okay so I already changed the model scale with "$scale 1.5" in the model file. But now the player's legs are going trough the ground because only the model has changed and not the hitbox.

set_pev(id,pev_scale,1.5) didn't work. Any help?

JocAnis 01-31-2019 09:26

Re: Change player size?
 
you must change players mins and maxs (size)...cant remember original dimensions, but you can make how much you want

sekac 01-31-2019 09:38

Re: Change player size?
 
How would I do that? I tried this:

new const Float:min[3] = {-24.0, -24.0, -54.0} // I multiplied the sizes by 1.5
new const Float:max[3] = {24.0, 24.0, -24.0}
entity_set_size(id, min, max)

It also did nothing. Do I need to do this in a specific place?

CrazY. 01-31-2019 10:19

Re: Change player size?
 
You can't change player size, it's hardcoded. The best choice you have is create another entity and attach it to player.

sekac 01-31-2019 10:21

Re: Change player size?
 
Quote:

Originally Posted by CrazY. (Post 2637425)
You can't change player size, it's hardcoded. The best choice you have iscreate another entity and attach it to player.

Can I at least make the model be higher up so it doesn't appear in the ground?

CrazY. 01-31-2019 10:24

Re: Change player size?
 
You can only change its scale in model itself, not with plugin.

sekac 01-31-2019 10:33

Re: Change player size?
 
So where should I post for model help? Is it ok to do it in this thread?

SHIELD755 01-31-2019 10:41

Re: Change player size?
 
Quote:

Originally Posted by sekac (Post 2637431)
So where should I post for model help? Is it ok to do it in this thread?

amxmodx does not support model creation i think it support scripting help

CrazY. 01-31-2019 10:45

Re: Change player size?
 
You can change its scale easily in paranoia/half-life model viewer.

sekac 01-31-2019 10:48

Re: Change player size?
 
Quote:

Originally Posted by CrazY. (Post 2637437)
You can change its scale easily in paranoia/half-life model viewer.

Yes but the model will be in the ground since it doesn't scale the hitboxes.


All times are GMT -4. The time now is 17:43.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.