Raised This Month: $ Target: $400
 0% 

Entity StepSize


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 04-10-2009 , 07:57   Entity StepSize
Reply With Quote #1

My problem:
[IMG]http://img26.**************/img26/2641/problemt.jpg[/IMG]
My entities stop where slopes collide with flat ground. They are just blocked. I tried to move them few units up in touch. Traced a line from the bottom of the entity to slope. If it collides in Entitysize / 2 + 1.0 then move it up 5units. But that failed too. Can anyone give me an example how to fix this glitch?

Thanks .
shine771 is offline
Old 04-13-2009, 12:28
shine771
This message has been deleted by YamiKaitou. Reason: bump
shine771
Senior Member
Join Date: Jun 2007
Old 04-24-2009 , 05:42   Re: Entity StepSize
Reply With Quote #3

This probably is a bump.
shine771 is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-24-2009 , 05:49   Re: Entity StepSize
Reply With Quote #4

You could look into HLSDK and see how the player is scripted into doing steps for going up stairs and stuff :}
__________________
Hunter-Digital is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-24-2009 , 06:01   Re: Entity StepSize
Reply With Quote #5

hmmm..... idk maybe can this help?
PHP Code:
 for(new x=0;x<1;x++)
                
moveVeloc[id][x] *= -1.0;
                
            
g_move[id]++;
            
domove[id] = true
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
shine771
Senior Member
Join Date: Jun 2007
Old 04-24-2009 , 06:04   Re: Entity StepSize
Reply With Quote #6

One, i don't really understand how could your code help...

lol, didn't though about HLSDK. I'll take a look.
shine771 is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-24-2009 , 06:20   Re: Entity StepSize
Reply With Quote #7

ahh 4get it. i thinked just about anything else. but this is wrong what i wont to do. sry
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
shine771
Senior Member
Join Date: Jun 2007
Old 04-26-2009 , 08:34   Re: Entity StepSize
Reply With Quote #8

I'm a bad searcher. Didn't find anything in HLSDK. Maybe someone can point where exactly it is or give a code example.

Anyway. I've got an entity with a model. Entity's angles are set according to surface. It adjusts the angles to ground. Probably moving the entity one unit up, when it touches the end of the slope would fix it.
shine771 is offline
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 #9

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 #10

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