28 lines
736 B
Ucode
28 lines
736 B
Ucode
class proj_PickActor extends KFMod.ShotgunBullet;
|
|
|
|
var a_VisibilityHandler a_visibilityHandler;
|
|
|
|
|
|
simulated singular function hitWall(vector hitNormal, actor wall)
|
|
{
|
|
if (wall.mesh != none || wall.staticMesh != none)
|
|
{
|
|
if ((wall.bNoDelete || wall.bStatic) && !wall.bDeleteMe)
|
|
a_visibilityHandler.pickActorWithProjectile(wall);
|
|
else
|
|
a_visibilityHandler.logMessage(a_visibilityHandler.getActorName(wall)@"can't be hided because this actor can be destroyed any time.");
|
|
spawn(impactEffect, , , location, rotator(-hitNormal));
|
|
destroy();
|
|
}
|
|
|
|
if (LevelInfo(wall) != none)
|
|
{
|
|
spawn(impactEffect, , , location, rotator(-hitNormal));
|
|
destroy();
|
|
}
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
}
|