Actually, It would be better if you used g_engfuncs.pfnSetClientMaxspeed.
Setting it to something really low, 1 would do just fine: g_engfuncs.pfnSetClientMaxspeed( ENT( player->pev ), 1 ); The reason I dont recomend using EnableControl, is cause some player gets halted too ( not only movement ), You'll notice that you wont see players turn around, or even be affected by gravity. Btw, CS uses the MaxSpeed method. -----Original Message----- From: Cortex To: [EMAIL PROTECTED] Sent: 12/17/01 12:13 PM Subject: Re: [hlcoders] MOVETYPE_NONE for player IT WORKS !!! I love you :-D I've taken a look to EnableControl code. It's quite simple :) I didn't know the existance of the FL_FROZEN flag, but it's really useful :) -------------------------------------------------------- Cortex HL Albator coder & mapper www.hlalbator.fr.st <http://www.hlalbator.fr.st> -------------------------------------------------------- ----- Original Message ----- From: Georges <mailto:[EMAIL PROTECTED]> Giroux To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 8:59 PM Subject: RE: [hlcoders] MOVETYPE_NONE for player You can use EnableControl(FALSE) in player.cpp, this will freeze the player on the spot. Georges -----Original Message----- From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED]]On Behalf Of Cortex Sent: Monday, December 17, 2001 2:53 PM To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Subject: Re: [hlcoders] MOVETYPE_NONE for player I'm trying to prevent the player to move before the round starts (like in CS : buy time). -------------------------------------------------------- Cortex HL Albator coder & mapper www.hlalbator.fr.st <http://www.hlalbator.fr.st> -------------------------------------------------------- ----- Original Message ----- From: botman <mailto:[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 8:41 PM Subject: Re: [hlcoders] MOVETYPE_NONE for player > I wanted to set the player's movetype to MOVETYPE_NONE. > I set pev->movetype to MOVETYPE_NONE, but when I play, > the movetype is MOVETYPE_WALK ! I don't know why ! > I tried debugging it for a day :( In pm_shared.c, > the ppmode->movetype is MOVETYPE_WALK instead of > MOVETYPE_NONE :( > > If I set player's movetype to MOVETYPE_NOCLIP, > it takes effect ! So, it's not my code... > > Is there anybody else having this trouble ? Perhaps the engine is automatically changing it to MOVETYPE_WALK in a similar way that it automatically changes it to MOVETYPE_FLY when the player touches a ladder. Why are you setting the movetype to MOVETYPE_NONE (what are you trying to do)? Jeffrey "botman" Broome _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders <http://list.valvesoftware.com/mailman/listinfo/hlcoders> _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

