Raised This Month: $32 Target: $400
 8% 

How to fix NPC Hitbox direction


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 09-07-2022 , 14:19   How to fix NPC Hitbox direction
Reply With Quote #1

From the video, we can see that the bone is always facing the East!
https://www.bilibili.com/video/BV1zg...ec8db0f0acf2c5
So, we can't accurately hit the model by observing its movements.

But the player's Hitbox is in the right direction
Is there a property that can control the direction of Hitbox?
Attached Thumbnails
Click image for larger version

Name:	DrawBone.jpg
Views:	88
Size:	18.7 KB
ID:	196736   Click image for larger version

Name:	DrawPlayerBone.jpg
Views:	74
Size:	14.9 KB
ID:	196739  
Leech_v2 is offline
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 09-07-2022 , 14:41   Re: How to fix NPC Hitbox direction
Reply With Quote #2

https://www.bilibili.com/video/BV1fG411G7rX/
Another comparative video..
I know how to use pev_angles can fix the coordinates of bones

However, it is not helpful for traceline to hit Hitbox
Attached Thumbnails
Click image for larger version

Name:	Gif.gif
Views:	62
Size:	84.8 KB
ID:	196742  
Leech_v2 is offline
Old 09-07-2022, 16:04
NooTy
This message has been deleted by NooTy.
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 09-07-2022 , 22:31   Re: How to fix NPC Hitbox direction
Reply With Quote #3

EngFunc_Getattachment and GetBonePlacement functions have been broken in CS1.6 you might want to try this one out first
https://gamebanana.com/mods/39759

Edit: You could also try pev_v_angle and set the modelindex to see if it solve the problem
__________________
My plugin:

Last edited by Celena Luna; 09-07-2022 at 22:38.
Celena Luna is offline
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 09-08-2022 , 14:02   Re: How to fix NPC Hitbox direction
Reply With Quote #4

Quote:
Originally Posted by Celena Luna View Post
EngFunc_Getattachment and GetBonePlacement functions have been broken in CS1.6 you might want to try this one out first
https://gamebanana.com/mods/39759

Edit: You could also try pev_v_angle and set the modelindex to see if it solve the problem
It only fixes the coordinates. It does not help the weapon attack Hitbox
Leech_v2 is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 09-11-2022 , 23:02   Re: How to fix NPC Hitbox direction
Reply With Quote #5

Do you have any base code for testing it?
Just create entity and set model?
__________________
My plugin:

Last edited by Celena Luna; 09-11-2022 at 23:08.
Celena Luna is offline
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 09-12-2022 , 00:01   Re: How to fix NPC Hitbox direction
Reply With Quote #6

Quote:
Originally Posted by Celena Luna View Post
Do you have any base code for testing it?
Just create entity and set model?
Looking at the source code, we can see that he is only modifying a coordinate copied from Hitbox and forwarding it to amxx. The coordinates and angles of Hitbox have not been changed. It is impossible to affect the result of traceline hit.This can only help me draw the correct bone position. But it can't help me hit the Hitbox of the entity model with traceline. (actually, I have already tested it)
Leech_v2 is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 09-12-2022 , 02:44   Re: How to fix NPC Hitbox direction
Reply With Quote #7

maybe it is the same situation as this? "The Entity rotate but the hullsize/hitbox does not change and you have to manually change it"
https://forums.alliedmods.net/showthread.php?t=292594
__________________
My plugin:

Last edited by Celena Luna; 09-12-2022 at 02:47.
Celena Luna is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-12-2022 , 06:36   Re: How to fix NPC Hitbox direction
Reply With Quote #8

You can do it if only the NPC model have it's hands positioned attachments
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 09-12-2022 , 17:46   Re: How to fix NPC Hitbox direction
Reply With Quote #9

Quote:
Originally Posted by Celena Luna View Post
maybe it is the same situation as this? "The Entity rotate but the hullsize/hitbox does not change and you have to manually change it"
https://forums.alliedmods.net/showthread.php?t=292594
I don't see anything that can rotate the Hitbox

I changed the zombie.mdl model, which can really hinder players' movement like tentacle2.mdl

But Hitbox does not rotate with the entity

So, maybe there is no way to rotate Hitbox. I can only rotate traceline
Attached Thumbnails
Click image for larger version

Name:	1.gif
Views:	58
Size:	77.6 KB
ID:	196813   Click image for larger version

Name:	2.gif
Views:	43
Size:	91.7 KB
ID:	196814  
Leech_v2 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-13-2022 , 04:39   Re: How to fix NPC Hitbox direction
Reply With Quote #10

Yeah goldsrc sucks it has alot of missing code and unfinished functions...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:05.


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