Raised This Month: $ Target: $400
 0% 

Stopping monster movement.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 04-06-2007 , 00:09   Stopping monster movement.
Reply With Quote #1

I'm trying to get monster's basicly to be frozen, he's what I tryed so far:
Code:
set_pev(entid,pev_flags,FL_FROZEN) // ---------------------------------------------------------- // set_pev(entid,pev_maxspeed,0.0) set_pev(entid,pev_speed,0.0)

Setting it's flags didn't do anything, but setting it's maxspeed/speed had a different effect, it stopped the monster from moving. But when using the monster to make it follow you (It's the Scientist NPC) he didn't move... But when using him again, he did.. Anyone have any idea?
It would also be really good if there was a way to make the NPC 'brain dead'. Something to basicly just freeze it, don't shoot, don't attack. blah blah.

EDIT:
Code:
set_pev(entid,pev_nextthink,0.0)
Using this along with the speed settings, it works fine. They won't move, but what if I wanted to re-vert it back?
__________________
Oh yeah

Last edited by Drak; 04-06-2007 at 00:24.
Drak is offline
Send a message via MSN to Drak
 


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 06:42.


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