• Finding out if npc is jumping?
    10 replies, posted
How would I check if an NPC is in a jump. I can't just check if an NPC is not on the ground. Maybe I could do something with jump hint_nodes?
do a trace from the npc downwards and filter him. Check if the trace is returning distance.
Npcs jump?
[QUOTE=decyg;26526524]Npcs jump?[/QUOTE]
[QUOTE=decyg;26526524]Npcs jump?[/QUOTE]
[QUOTE=dingusnin;26526483]do a trace from the npc downwards and filter him. Check if the trace is returning distance.[/QUOTE]What I'm working on I can't use that, since the npc changes its velocity. The only thing that can do is something like an output coming of the npc or a schedule, but since there is not NPC:GetCurrentSchedule() or anything like it, I'm stuck. And wouldn't Ent:OnGround() do exactly the same thing you mentioned? [editline]6th December 2010[/editline] [QUOTE=decyg;26526524]Npcs jump?[/QUOTE]This is the first time you heard about it?.. Seriously? It uses info_nodes to do it, for example try placing an npc in gm_construct above the place you spawn, and let it chase you, it'll make a jump to get to you.
[QUOTE=decyg;26526524]Npcs jump?[/QUOTE] [img]http://images1.wikia.nocookie.net/__cb20090527180503/half-life/en/images/f/f4/Fast_Zombie_headcrabless.jpg[/img]
woaww slow down diseminate
[QUOTE=Disseminate;26536445][img_thumb]http://images1.wikia.nocookie.net/__cb20090527180503/half-life/en/images/f/f4/Fast_Zombie_headcrabless.jpg[/img_thumb][/QUOTE] How come you didn't rate Blown25 dumb :*(
NPCs can TPose jump as well if they don't have a jumping animation. Here's some functions you could check out: [url]http://wiki.garrysmod.com/?title=Entity.GetSequence[/url] NPC:GetMovementSequence()
News to me then, never really noticed it.
Sorry, you need to Log In to post a reply to this thread.