Single commit - destructible geometry feature
This commit is contained in:
parent
a33cc13054
commit
b911bbc424
18 changed files with 898 additions and 57 deletions
|
|
@ -4684,6 +4684,8 @@ AActor *P_LineAttack(AActor *t1, DAngle angle, double distance,
|
|||
{
|
||||
if (trace.HitType != TRACE_HitActor)
|
||||
{
|
||||
P_GeometryLineAttack(trace, t1, damage, damageType);
|
||||
|
||||
// position a bit closer for puffs
|
||||
if (nointeract || trace.HitType != TRACE_HitWall || ((trace.Line->special != Line_Horizon) || spawnSky))
|
||||
{
|
||||
|
|
@ -5517,6 +5519,8 @@ void P_RailAttack(FRailParams *p)
|
|||
}
|
||||
}
|
||||
|
||||
P_GeometryLineAttack(trace, p->source, p->damage, damagetype);
|
||||
|
||||
// Spawn a decal or puff at the point where the trace ended.
|
||||
if (trace.HitType == TRACE_HitWall)
|
||||
{
|
||||
|
|
@ -6127,6 +6131,8 @@ int P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, int bom
|
|||
bombsource = bombspot;
|
||||
}
|
||||
|
||||
P_GeometryRadiusAttack(bombspot, bombsource, bombdamage, bombdistance, bombmod, fulldamagedistance);
|
||||
|
||||
int count = 0;
|
||||
while ((it.Next(&cres)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue