mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-23 09:28:45 +00:00
Fix #132 You can no longer walk through rezzed players
This commit is contained in:
parent
7d26bb4a92
commit
5d3d10d9c3
1 changed files with 15 additions and 0 deletions
|
@ -2291,6 +2291,21 @@ void CCharacterCL::endAnimTransition()
|
||||||
// If the next mode in the automaton != Current Mode
|
// If the next mode in the automaton != Current Mode
|
||||||
if(_CurrentState->NextMode != _Mode)
|
if(_CurrentState->NextMode != _Mode)
|
||||||
{
|
{
|
||||||
|
// Undo previous behaviour
|
||||||
|
switch(_Mode)
|
||||||
|
{
|
||||||
|
case MBEHAV::DEATH:
|
||||||
|
// Restore collisions.
|
||||||
|
if(_Primitive)
|
||||||
|
{
|
||||||
|
// TODO: Without this dynamic cast
|
||||||
|
if(dynamic_cast<CPlayerCL *>(this))
|
||||||
|
_Primitive->setOcclusionMask(MaskColPlayer);
|
||||||
|
else
|
||||||
|
_Primitive->setOcclusionMask(MaskColNpc);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
if(ClientCfg.UsePACSForAll && _Primitive)
|
if(ClientCfg.UsePACSForAll && _Primitive)
|
||||||
_Primitive->setCollisionMask(MaskColNone);
|
_Primitive->setCollisionMask(MaskColNone);
|
||||||
//// AJOUT ////
|
//// AJOUT ////
|
||||||
|
|
Loading…
Reference in a new issue