May 3, 2006 (Changes by Graf Zahl)
- Removed doom.x, heretic.x and strife.x from the SVN repository. These are generated files. - Fixed: A_PainDie has to check whether a valid target exists before calling IsFriend. - Fixed: FDecalLib::FindAnimator needs a signed counter to work properly. May 1, 2006 (Changes by Graf Zahl) - Added support for game specific pickup messages, if only to be able to define Raven's invulnerability item in DECORATE. - Removed A_TreeDeath because it is no longer used. - Fixed: When picking up a PowerupGiver for an active powerup the blend color and the duration were transferred to a temorary item and never took effect. They have to be trnasferred to the newly created powerup item before trying to give it to the player, not afterward. - Made the colormap of the InvulnerabilitySphere item specific. The base power class still needs to have its color adjusted per game though and since Raven's invulnerability item is used in both Hexen and Heretic it can't define its own colormap/blend. - Separated the invulnerability colormaps from the game being played and made them item specific. They can also be specified as regular blend colors in DECORATE now. - Converted a_hereticarmor.cpp and most of a_doomartifacts.cpp, a_hereticartifacts.cpp and a_heretickeys.cpp to DECORATE. - Changed the Soulsphere to be a real health item with the Dehacked modifications made in d_dehacked.cpp as for most other items which need to be adjusted. - Added IF_BIGPOWERUP flag to AInventory to expose the RESPAWN_SUPER dmflag to DECORATE. Also removed the now obsolete ShouldRespawn methods from AInvulnerabilitySphere and ABlurSphere. - Converted a_splashes.cpp to DECORATE. - Converted most of a_debris.cpp to DECORATE. SVN r73 (trunk)
This commit is contained in:
parent
01a41a6f13
commit
0e69196370
59 changed files with 1429 additions and 1532 deletions
|
|
@ -1373,6 +1373,7 @@ void A_DoChase(AActor * actor, bool fastchase, FState * meleestate, FState * mis
|
|||
void A_ExtChase(AActor * self)
|
||||
{
|
||||
int index=CheckIndex(4, &CallingState);
|
||||
if (index<0) return;
|
||||
|
||||
A_DoChase(self, false,
|
||||
EvalExpressionI (StateParameters[index], self) ? self->MeleeState:NULL,
|
||||
|
|
@ -1390,6 +1391,7 @@ void A_ExtChase(AActor * self)
|
|||
void A_Jiggle(AActor * self)
|
||||
{
|
||||
int index=CheckIndex(2, &CallingState);
|
||||
if (index<0) return;
|
||||
int xmax = EvalExpressionI (StateParameters[index], self);
|
||||
int ymax = EvalExpressionI (StateParameters[index+1], self);
|
||||
|
||||
|
|
@ -1412,6 +1414,7 @@ void A_Jiggle(AActor * self)
|
|||
void A_DropInventory(AActor * self)
|
||||
{
|
||||
int index=CheckIndex(1, &CallingState);
|
||||
if (index<0) return;
|
||||
const TypeInfo * ti = TypeInfo::FindType((const char*)StateParameters[index]);
|
||||
if (ti)
|
||||
{
|
||||
|
|
@ -1432,6 +1435,7 @@ void A_DropInventory(AActor * self)
|
|||
void A_SetBlend(AActor * self)
|
||||
{
|
||||
int index=CheckIndex(3);
|
||||
if (index<0) return;
|
||||
PalEntry color = StateParameters[index];
|
||||
float alpha = clamp<float> (EvalExpressionF (StateParameters[index+1], self), 0, 1);
|
||||
int tics = EvalExpressionI (StateParameters[index+2], self);
|
||||
|
|
@ -1455,6 +1459,7 @@ void A_JumpIf(AActor * self)
|
|||
{
|
||||
FState * CallingState;
|
||||
int index=CheckIndex(2, &CallingState);
|
||||
if (index<0) return;
|
||||
int expression = EvalExpressionI (StateParameters[index], self);
|
||||
|
||||
if (index>=0 && expression) DoJump(self, CallingState, StateParameters[index+1]);
|
||||
|
|
@ -1492,3 +1497,22 @@ void A_KillChildren(AActor * self)
|
|||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// A_CountdownArg
|
||||
//
|
||||
//===========================================================================
|
||||
void A_CountdownArg(AActor * self)
|
||||
{
|
||||
int index=CheckIndex(1);
|
||||
if (index<0) return;
|
||||
index = EvalExpressionI (StateParameters[index], self);
|
||||
|
||||
if (index<=0 || index>5) return;
|
||||
if (!self->args[index]--)
|
||||
{
|
||||
self->SetState(self->DeathState);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue