NPC Duck problem
Hi guys. I'm trying to make a perfect npc. I have a problem.
When being crouched, it works perfect, or so I think.. But when standing, the NPC gets on the ground This is my code: PHP Code:
https://i.imgur.com/jM1R73W.jpg Problem: https://i.imgur.com/AHAlYtx.jpg Sorry for my english, I'm spanish speaking |
Re: NPC Duck problem
PHP Code:
|
Re: NPC Duck problem
I think, when NCP stands after ducking, you should set him on origin Z axis half of the duck height (or something like this).
|
Re: NPC Duck problem
Quote:
And not touch the z minsize |
Re: NPC Duck problem
Quote:
|
Re: NPC Duck problem
Try with entity_set_size instead.
|
Re: NPC Duck problem
Quote:
This result: Use this code in case ACTIVITY_DUCK: PHP Code:
PHP Code:
Ducking: https://i.imgur.com/DClo0SZ.jpg Standing up: https://i.imgur.com/aqt7W40.jpg |
Re: NPC Duck problem
Quote:
It shouldbe vecMins = Float:{-16.0, -16.0, -36.0}; vecMax = Float:{16.0, 16.0, 16.0}; |
Re: NPC Duck problem
Take a look at Half-Life/ReGameDLL source code.
|
Re: NPC Duck problem
Dont work guys :(
|
| All times are GMT -4. The time now is 04:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.