Blockland Forums > Modification Help

De-colliding players to other players

Pages: << < (2/3) > >>

otto-san:


--- Quote from: Reinforcements on February 24, 2011, 09:50:36 PM ---What about like...

function Player:collision(%bla, %bla, %bla)
{
if(thingPlayerCollidedWith == AnotherPlayer)
{
return;

}
else
{
Parent::Player:collision;
}


}

--- End quote ---
that doesnt make any sense. :c

DrenDran:


--- Quote from: phflack on February 24, 2011, 08:33:27 PM ---i've suggested before making the collision box tiny, just barely there so that they'll collide with the wall and stuff

--- End quote ---
They'd still collide with everything though.

DYLANzzz:


--- Quote from: Reinforcements on February 24, 2011, 09:50:36 PM ---What about like...

function Player:collision(%bla, %bla, %bla)
{
if(thingPlayerCollidedWith == AnotherPlayer)
{
return;

}
else
{
Parent::Player:collision;
}


}

--- End quote ---
Makes a ton of sense to me. I just found StandardPlayerArmor::OnCollision :D Didnt work.
Double Toast: Tried Phflack's suggestion and so far seems to work :D
Triple Toast: A bit glitchy

Destiny/Zack0Wack0:

onCollision is a callback as far as I know, so stopping it actually doesn't stop the collision. The only way I can see this work is packaging onCollision so that when you collide with another played it slightly transforms you so you're inside the other player's collision box. Heaps of problems with that as well. There's stuff all you can do to make this work.

Red_Guy:

what are you trying to accomplish here?

saying "de-colliding" doesnt make any sense

Pages: << < (2/3) > >>

Go to full version