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

Solved NPC movement bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-29-2022 , 07:48   NPC movement bug
Reply With Quote #1

For some reason when moving an NPC with solid slide & move type (STEP/PUSHSTEP) the NPC doesn't display movement rather shows the NPC at the start and the end period, it doesn't display it walking to the end point, any thoughts?

Entity has the flag FL_ALWAYSTHINK which help inform clients about the entity location and velocity.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 08-02-2022 at 03:01.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-29-2022 , 15:59   Re: NPC movement bug
Reply With Quote #2

You have to call StudioFrameAdvance or use an entity base that already does it. Or use MOVETYPE_PUSHSTEP instead of STEP.
__________________

Last edited by HamletEagle; 07-29-2022 at 15:59.
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-29-2022 , 20:07   Re: NPC movement bug
Reply With Quote #3

I already changed entity move type to MOVETYPE_PUSHSTEP and still it doesn't work.
__________________
@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
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-31-2022 , 04:10   Re: NPC movement bug
Reply With Quote #4

It should, show some code.
__________________
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-02-2022 , 03:01   Re: NPC movement bug
Reply With Quote #5

Solved, apparently setting pev_impacttime effects the entity model in someway.
__________________
@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


Thread Tools
Display Modes

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 01:51.


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