Collision and Slopes

Posted By: Mythran

Collision and Slopes - 04/22/11 22:10

Can you please,

Tell me, give me directions or point me a tutotial on

how can i make the player detect a box and not go over it
and how can i stop player climbing models or terrain at a
certain degree

in c-script please.

I can post the code if needed.

Code with level:

http://www.2shared.com/file/CEYepMUJ/Devils.html

Thanks
Posted By: Pappenheimer

Re: Collision and Slopes - 04/23/11 00:07

Most probably you have to provide the code, because most of the people who can help you in this case are used to Lite-C.
Posted By: Mythran

Re: Collision and Slopes - 04/24/11 09:38

Thank you all.

I managed to fix it laugh
Posted By: 3run

Re: Collision and Slopes - 04/24/11 09:40

Hm, may be you could share it with us? So, that way you could help a lot of users.
Posted By: Mythran

Re: Collision and Slopes - 04/24/11 09:54

So i posted another doubt of mine in the tutorials.

It's the Jump Specs,

If anyone can help...

Thanks

3run It has all to do with gravity... nothing more.
Oh and defenitly not using c_move!
Posted By: 3run

Re: Collision and Slopes - 04/24/11 10:01

Any way, could you post it please?
Posted By: Mythran

Re: Collision and Slopes - 04/24/11 10:20

Yes after i do some more changes.

And i'll post it because it was only possible by some guys from the forum
not directly to me, but because they made some codes that i could
take pieces x)

OH! and also after i post a small level and you guys say "I love it!!!!" tongue

3run can you please help me or give me directions on my Tutorials post?
Posted By: Mythran

Re: Collision and Slopes - 04/24/11 11:15

Ok so after an extensive test i found some major bugs.

The player collision againts the models is well done.
Now for detecting them under the feet its sooooo bugy! :\

Only after fixing this will i make the level and then post it!

Sorry :s

So the Tuts post is up again.

Please help!
Posted By: 3run

Re: Collision and Slopes - 04/24/11 17:09

All tutorials I know are in AUM, workshops. Those are best to start.
Some tips for detecting models under player's feet:
* use in c_trace USE_POLYGON flag
* set POLYGON flag for models
Posted By: Mythran

Re: Collision and Slopes - 05/14/11 01:59

Sorry to bring this back,

I'm having a slight big problem.

I've been reading in other posts about bouncing...
And after a couple hours between aum manual posts a scripting i found i got nowhere near what i wanted.

Can someone please tell me how to make a player come back a few steps when he
runs into a wall?

vec_for_angle didnt help at all
player1.x -= 4; this works sometimes

and the player most of the time and i mean something like 98& of the times
doesnt detect the impact shocked

[code]
function bounce_player()
{
if(event_type == EVENT_IMPACT || event_type == EVENT_ENTITY)
{
player1.x -= 4;
ent_animate(player1,"knockdown",player1.animate,anm_cycle);
player1.animate += 5 * time_step;
player1.animate %= 100;
//you.health -= 1;
wait(1);
}
}

action wall()
{
my.ENABLE_ENTITY = on; // make entity sensitive for block and entity collision
my.ENABLE_IMPACT = on;
my.ENABLE_BLOCK = on;
my.event = bounce_player;
}
[\code]

Thanks
Posted By: Mythran

Re: Collision and Slopes - 05/15/11 11:53

Any boss out there willing to help? laugh
© 2023 lite-C Forums