- added DavidPH's PoisonDamageType submission.
SVN r3235 (trunk)
This commit is contained in:
parent
a587ffed57
commit
44921297d3
6 changed files with 27 additions and 13 deletions
|
|
@ -313,8 +313,12 @@ void AActor::Serialize (FArchive &arc)
|
|||
<< DamageFactor
|
||||
<< WeaveIndexXY << WeaveIndexZ
|
||||
<< PoisonDamageReceived << PoisonDurationReceived << PoisonPeriodReceived << Poisoner
|
||||
<< PoisonDamage << PoisonDuration << PoisonPeriod
|
||||
<< ConversationRoot << Conversation;
|
||||
<< PoisonDamage << PoisonDuration << PoisonPeriod;
|
||||
if (SaveVersion >= 3235)
|
||||
{
|
||||
arc << PoisonDamageType << PoisonDamageTypeReceived;
|
||||
}
|
||||
arc << ConversationRoot << Conversation;
|
||||
|
||||
{
|
||||
FString tagstr;
|
||||
|
|
@ -3231,7 +3235,7 @@ void AActor::Tick ()
|
|||
// Check for poison damage, but only once per PoisonPeriod tics (or once per second if none).
|
||||
if (PoisonDurationReceived && (level.time % (PoisonPeriodReceived ? PoisonPeriodReceived : TICRATE) == 0))
|
||||
{
|
||||
P_DamageMobj(this, NULL, Poisoner, PoisonDamageReceived, NAME_Poison, 0);
|
||||
P_DamageMobj(this, NULL, Poisoner, PoisonDamageReceived, PoisonDamageTypeReceived ? PoisonDamageTypeReceived : (FName)NAME_Poison, 0);
|
||||
|
||||
--PoisonDurationReceived;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue