- Fixed: Crash when opening the player setup menu when you're so dead that
your head has popped off your body. - Fixed: When item respawning is on and you play on skill 1 or 5, picking up ammo would permanently double the amount of ammo received from that item the next time it gets picked up. - Added a check to PlayerIsGone() for players who have already had their actors destroyed before calling it. - Fixed: G_CheckDemoStatus() only restored your name, autoaim, and color settings after playing back a demo. - Added DEM_SPRAY net command so that sprayed decals work in multiplayer and demos. - Changed DEM_GIVECHEAT to use a word for specifying the item quantity. This is useful mainly for giving yourself more than 255 health at a time. - Fixed: DEM_SUMMONFRIEND was not handled by Net_SkipCommand(). SVN r58 (trunk)
This commit is contained in:
parent
7e7ab6b4ec
commit
8ea6569de8
12 changed files with 118 additions and 79 deletions
|
|
@ -690,27 +690,8 @@ CCMD (spray)
|
|||
return;
|
||||
}
|
||||
|
||||
FTraceResults trace;
|
||||
|
||||
angle_t ang = m_Instigator->angle >> ANGLETOFINESHIFT;
|
||||
angle_t pitch = (angle_t)(m_Instigator->pitch) >> ANGLETOFINESHIFT;
|
||||
fixed_t vx = FixedMul (finecosine[pitch], finecosine[ang]);
|
||||
fixed_t vy = FixedMul (finecosine[pitch], finesine[ang]);
|
||||
fixed_t vz = -finesine[pitch];
|
||||
|
||||
if (Trace (m_Instigator->x, m_Instigator->y,
|
||||
m_Instigator->z + m_Instigator->height - (m_Instigator->height>>2),
|
||||
m_Instigator->Sector,
|
||||
vx, vy, vz, 172*FRACUNIT, 0, ML_BLOCKEVERYTHING, m_Instigator,
|
||||
trace, TRACE_NoSky))
|
||||
{
|
||||
if (trace.HitType == TRACE_HitWall)
|
||||
{
|
||||
DImpactDecal::StaticCreate (argv[1],
|
||||
trace.X, trace.Y, trace.Z,
|
||||
sides + trace.Line->sidenum[trace.Side]);
|
||||
}
|
||||
}
|
||||
Net_WriteByte (DEM_SPRAY);
|
||||
Net_WriteString (argv[1]);
|
||||
}
|
||||
|
||||
class ADecal : public AActor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue