- Changed increased lightning damage for Centaurs into a damage factor.
- Changed PoisonCloud and Lightning special treatment in P_DamageMobj to use damage types instead to keep dependencies on specific actor types out of the main engine code. - Added Korax DECORATE conversion by Gez and a few others by Karate Chris. SVN r1130 (trunk)
This commit is contained in:
parent
b695330e90
commit
e010561088
19 changed files with 918 additions and 1047 deletions
|
|
@ -16,6 +16,40 @@ static FRandom pr_freezedeath ("FreezeDeath");
|
|||
static FRandom pr_icesettics ("IceSetTics");
|
||||
static FRandom pr_freeze ("FreezeDeathChunks");
|
||||
|
||||
|
||||
// SwitchableDecoration: Activate and Deactivate change state ---------------
|
||||
|
||||
class ASwitchableDecoration : public AActor
|
||||
{
|
||||
DECLARE_STATELESS_ACTOR (ASwitchableDecoration, AActor)
|
||||
public:
|
||||
void Activate (AActor *activator);
|
||||
void Deactivate (AActor *activator);
|
||||
};
|
||||
|
||||
IMPLEMENT_ABSTRACT_ACTOR (ASwitchableDecoration)
|
||||
|
||||
void ASwitchableDecoration::Activate (AActor *activator)
|
||||
{
|
||||
SetState (FindState(NAME_Active));
|
||||
}
|
||||
|
||||
void ASwitchableDecoration::Deactivate (AActor *activator)
|
||||
{
|
||||
SetState (FindState(NAME_Inactive));
|
||||
}
|
||||
|
||||
// SwitchingDecoration: Only Activate changes state -------------------------
|
||||
|
||||
class ASwitchingDecoration : public ASwitchableDecoration
|
||||
{
|
||||
DECLARE_STATELESS_ACTOR (ASwitchingDecoration, ASwitchableDecoration)
|
||||
public:
|
||||
void Deactivate (AActor *activator) {}
|
||||
};
|
||||
|
||||
IMPLEMENT_ABSTRACT_ACTOR (ASwitchingDecoration)
|
||||
|
||||
/***************************** IceChunk ************************************/
|
||||
|
||||
class AIceChunk : public AActor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue