1
This commit is contained in:
parent
4a7cad1850
commit
6527baab03
@ -577,22 +577,41 @@ void Obstacle::OnExplosionHit(Explosion* e)
|
||||
|
||||
bool Obstacle::CanThroughable(Creature* c)
|
||||
{
|
||||
#if 0
|
||||
if (meta->i->attack_type() == 4) {
|
||||
switch (meta->i->collision_hit()) {
|
||||
case kCollisionHitPass:
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
{
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Obstacle::CanThroughable(Bullet* bullet)
|
||||
{
|
||||
#if 0
|
||||
if (meta->i->attack_type() == 4) {
|
||||
switch (meta->i->bullet_hit()) {
|
||||
case kBulletHitPass:
|
||||
{
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case kBulletHitOnlySpecDmg:
|
||||
{
|
||||
return !(meta->receive_special_damage_type != 0 &&
|
||||
((bullet->gun_meta->special_damage_type & meta->receive_special_damage_type) != 0));
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
{
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user