entity_set_model, but entity lososes hitbox
when i use entity_set_model the model of the entity gets changed but it looses its hitboxes
(im using it for NS to change armory and cc model for combat, armory has then no hitbox so that u can walk through it and noone can attack it but rines still can use it get get ammo) anyone know how to fix it? |
just found a solution but i dont really like it: (get hitboxes and origin, set model, write its hitboxes and origin)
Code:
|
Eh, those aren't hit boxes, they're boundries really, just another way to make the entity solid.
The hitboxes of the entity you changed the model of should still be there. If it isn't then you did something wrong when you set the model to the ent. |
hitboxes boundries, does not matter but without it u can walk through the model and u can attack it
|
Yeah it does make a difference because hitboxes are exactly what they're name implies, they are boxes on the model which will act upon the entity when shot or taken damage by another entity.
Anyways, what you did should be fine. |
Yeah, if people can walk through it, but can't shoot it, what's to prevent them walking in it and hiding ? :).
|
You need to set EV_INT_solid to some value. Look in engine_const.inc.
BBoxes need to be right as well. |
jonny look at 2nd post, there is "entity_set_int(entid,EV_INT_solid,2)", but that alone dont work, this has to be set too
Code:
btw: u can also use: Code:
|
u can use EngFunc_SetModel
|
| All times are GMT -4. The time now is 17:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.