Raised This Month: $51 Target: $400
 12% 

How to use EngFunc_RunPlayerMove?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
larito
Veteran Member
Join Date: Nov 2008
Location: Argentina- Mendoza
Old 09-11-2009 , 20:41   How to use EngFunc_RunPlayerMove?
Reply With Quote #1

Hi guys, I have a doubt. Someone can tell me how to use EngFunc_RunPlayerMove? I need it because I'm going to use it in a plugin. If someone can help me would be awesome.
__________________
Facebook: Ariel Berardi
larito is offline
Send a message via MSN to larito
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-11-2009 , 20:59   Re: How to use EngFunc_RunPlayerMove?
Reply With Quote #2

EngFunc_RunPlayerMove, // void ) (edict_t *fakeclient, const float *viewangles, float forwardmove, float sidemove, float upmove, unsigned short buttons, byte impulse, byte msec);

http://www.amxmodx.org/funcwiki.php?go=module&id=16
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
larito
Veteran Member
Join Date: Nov 2008
Location: Argentina- Mendoza
Old 09-11-2009 , 21:11   Re: How to use EngFunc_RunPlayerMove?
Reply With Quote #3

You can give mi a example?
__________________
Facebook: Ariel Berardi
larito is offline
Send a message via MSN to larito
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-11-2009 , 21:11   Re: How to use EngFunc_RunPlayerMove?
Reply With Quote #4

No, because I've never used it.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-11-2009 , 22:07   Re: How to use EngFunc_RunPlayerMove?
Reply With Quote #5

How do you know it will work for what you want if you know nothing about the function?
__________________
fysiks is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-11-2009 , 22:19   Re: How to use EngFunc_RunPlayerMove?
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
How do you know it will work for what you want if you know nothing about the function?
Exactly. What don't you explain what you are trying to do instead of telling us what method you want to use.
__________________
Bugsy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-12-2009 , 03:01   Re: How to use EngFunc_RunPlayerMove?
Reply With Quote #7

This function seems to be only for bots (fakeclient).

edict_t *fakeclient = Bot's index
const float *viewangles = Bot's view angles ( pev_v_angle )
float forwardmove = Bot's forward speed
float sidemove = Bot's side speed
float upmove = Bot's up speed
unsigned short buttons = The current bot's used buttons
byte impulse = Impulse command
byte msec = the duraction in ms of the command

Never used, but in a source of a Bot plugin :

Code:
g_engfuncs.pfnRunPlayerMove( pEdict, pEdict->v.v_angle, pBot->f_move_speed, 0, 0, pEdict->v.button, 0, pBot->msecval);

It's probably something you should run in FM_CmdStart, so you can use UC_Buttons and UC_Msec.
But what do you want to do exactly ?
__________________
Arkshine is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 09-12-2009 , 03:07   Re: How to use EngFunc_RunPlayerMove?
Reply With Quote #8

search for a plugin called "potti" you will know how to use it.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-12-2009 , 10:47   Re: How to use EngFunc_RunPlayerMove?
Reply With Quote #9

Here the link http://forums.alliedmods.net/showthread.php?p=255078

But I'm wondering why he doesn't use the code in CmdStart.
__________________
Arkshine is offline
larito
Veteran Member
Join Date: Nov 2008
Location: Argentina- Mendoza
Old 09-12-2009 , 11:43   Re: How to use EngFunc_RunPlayerMove?
Reply With Quote #10

Ok, thanks for help me +karma for you!
__________________
Facebook: Ariel Berardi
larito is offline
Send a message via MSN to larito
Reply



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 09:02.


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