Problem with hitboxes on npc
Encountered an unexpected problem with hitboxes: they do not rotate after the model.
http://i25.fastpic.ru/thumb/2011/081...76199a8be.jpeg The model now stands in its original location, hitboxes coincide with the model. I shoot in his left leg - I hit the left leg. Shoot between the legs - bullets pass by. http://i25.fastpic.ru/thumb/2011/081...47c85cb31.jpeg Now I shoot a model from the side, I shoot between his legs - taken to the left leg. Couldn't find a solution. How to fix this? |
Re: Problem with hitboxes on npc
I continued to work on npc and saw a possible cause of the problem: game model is rotated, but the entity - not. I'm using set_pev(ent, pev_angles, vec) rotation method. How do I rotate an object, not a model?
|
Re: Problem with hitboxes on npc
Have you experimented with pev_v_angle aswell ?
|
Re: Problem with hitboxes on npc
yes, and with OFFSET_MODELINDEX too
|
| All times are GMT -4. The time now is 03:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.