- Converted Heretic's and Hexen's players to DECORATE.
- Made Hexenarmor factors configurable by DECORATE. - Added support for selecting the invulnerability mode per item as well. - Made Invulnerability and Healing radius behavior selectable by player class instead of hard coding the special behavior to the Hexen classes. SVN r379 (trunk)
This commit is contained in:
parent
80950553c6
commit
e5bce37755
32 changed files with 733 additions and 1033 deletions
|
|
@ -278,11 +278,11 @@ bool AArtiPoisonBag::HandlePickup (AInventory *item)
|
|||
|
||||
bool matched;
|
||||
|
||||
if (Owner->IsKindOf (RUNTIME_CLASS(AClericPlayer)))
|
||||
if (Owner->IsKindOf (PClass::FindClass(NAME_ClericPlayer)))
|
||||
{
|
||||
matched = (GetClass() == RUNTIME_CLASS(AArtiPoisonBag1));
|
||||
}
|
||||
else if (Owner->IsKindOf (RUNTIME_CLASS(AMagePlayer)))
|
||||
else if (Owner->IsKindOf (PClass::FindClass(NAME_MagePlayer)))
|
||||
{
|
||||
matched = (GetClass() == RUNTIME_CLASS(AArtiPoisonBag2));
|
||||
}
|
||||
|
|
@ -327,11 +327,11 @@ AInventory *AArtiPoisonBag::CreateCopy (AActor *other)
|
|||
AInventory *copy;
|
||||
const PClass *spawntype;
|
||||
|
||||
if (other->IsKindOf (RUNTIME_CLASS(AClericPlayer)))
|
||||
if (other->IsKindOf (PClass::FindClass(NAME_ClericPlayer)))
|
||||
{
|
||||
spawntype = RUNTIME_CLASS(AArtiPoisonBag1);
|
||||
}
|
||||
else if (other->IsKindOf (RUNTIME_CLASS(AMagePlayer)))
|
||||
else if (other->IsKindOf (PClass::FindClass(NAME_MagePlayer)))
|
||||
{
|
||||
spawntype = RUNTIME_CLASS(AArtiPoisonBag2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue