Raised This Month: $ Target: $400
 0% 

Entity StepSize


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-29-2009 , 11:40   Re: Entity StepSize
Reply With Quote #1

Hmm... have you or anyone else tried this:
Code:
#define MOVETYPE_WALK // Player only - moving on the ground
#define MOVETYPE_STEP 4 // Gravity, special edge handling -- monsters use this
?
__________________
Hunter-Digital is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 04-29-2009 , 15:28   Re: Entity StepSize
Reply With Quote #2

In pm_shared.c in the HLSDK, the function "void PM_WalkMove ()" moves a player along the ground.

If I interpreted the code correctly, the way players move is like this:

1. Lift the player up a few units (stepsize).
2. Try to move the player forward.
3. If it worked, now try to move the player back down a few units (stepsize).
4. Go to step 1.

When you're sliding a box along the ground, it's not moving up over steps like players do. I'm not sure how to solve your problem, but I hope this gives you some insight into the problem.
__________________
stupok is offline
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 02:16.


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