mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-28 06:53:29 +00:00
22 lines
531 B
Text
22 lines
531 B
Text
|
// Container for handler functions that handle walls with breakable textures
|
||
|
struct RedneckBreakWalls
|
||
|
{
|
||
|
|
||
|
static void breakwall(TextureID newpn, DukeActor spr, walltype wal)
|
||
|
{
|
||
|
wal.SetTexture(walltype.main, newpn);
|
||
|
spr.PlayActorSound("VENT_BUST");
|
||
|
spr.PlayActorSound("GLASS_HEAVYBREAK");
|
||
|
spr.lotsofglass(10, wal);
|
||
|
}
|
||
|
|
||
|
static void SinglePlayerBreak(walltype wal, TextureID newtex, Sound snd, DukeActor hitter)
|
||
|
{
|
||
|
if (ud.multimode < 2)
|
||
|
{
|
||
|
wal.SetTexture(walltype.main, newtex);
|
||
|
hitter.PlayActorSound(snd);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|