AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to change the size of the object? (https://forums.alliedmods.net/showthread.php?t=295442)

felipemilralze 03-25-2017 19:28

How to change the size of the object?
 
I have a model that size is too large, so when it shoots in your head does not take hp, how to do to fill the size of a model?

I tried so hard that it did not work

PHP Code:

new ent create_entity("info_target")

entity_set_string(entEV_SZ_classname"models")
entity_set_model(ent"models/player/player.mdl"

new 
Float:maxs[3] = {25.050.0200.0
new 
Float:mins[3] = {-25.0, -50.0, -35.0}

entity_set_size(entminsmaxs


Natsheh 03-25-2017 21:40

Re: How to change the size of the object?
 
If u want to change the scale of any model u have to decompile the mdl and miss with the settings

And make sure ur setting the ent to take dmg and its health and add some blood effects when it taks dmg

EFFx 03-25-2017 22:05

Re: How to change the size of the object?
 
PHP Code:

new Float:maxs[3] = {25.050.0200.0}  
new 
Float:mins[3] = {-25.0, -50.0, -35.0

entity_set_size(entminsmaxs

It will change the size.

felipemilralze 03-25-2017 22:44

Re: How to change the size of the object?
 
Quote:

Originally Posted by EFFx (Post 2506804)
PHP Code:

new Float:maxs[3] = {25.050.0200.0}  
new 
Float:mins[3] = {-25.0, -50.0, -35.0

entity_set_size(entminsmaxs

It will change the size.

Yes, but I have a player model, and his height is higher than normal, and when he shoots his head he has no damage

felipemilralze 03-25-2017 22:46

Re: How to change the size of the object?
 
Quote:

Originally Posted by Natsheh (Post 2506794)
If u want to change the scale of any model u have to decompile the mdl and miss with the settings

And make sure ur setting the ent to take dmg and its health and add some blood effects when it taks dmg

I do not know how to model the model and how to decompile the model to know the size?

EFFx 03-25-2017 22:48

Re: How to change the size of the object?
 
Just put the model's size there for be equal.

felipemilralze 03-25-2017 23:01

Re: How to change the size of the object?
 
Quote:

Originally Posted by EFFx (Post 2506813)
Just put the model's size there for be equal.

I had not thought of that, I'll see it here.

felipemilralze 03-26-2017 01:40

Re: How to change the size of the object?
 
resolved


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

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