AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem with hitboxes on npc (https://forums.alliedmods.net/showthread.php?t=164445)

HoRRoR [CSM] 08-11-2011 15:41

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?

HoRRoR [CSM] 08-16-2011 11:32

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?

Hunter-Digital 08-16-2011 16:38

Re: Problem with hitboxes on npc
 
Have you experimented with pev_v_angle aswell ?

HoRRoR [CSM] 08-18-2011 06:29

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.