- added ACS CheckActprClass function
- fixed: When a blasted actor collided with another one this other actor's DONTBLAST flag was not checked. - added a global DamageFactor actor property. All damage this actor takes is multiplied by this factor in addition to damage type specific damage factors. SVN r1915 (trunk)
This commit is contained in:
parent
efd3e7f94e
commit
ce2e85c7b2
7 changed files with 42 additions and 7 deletions
|
|
@ -924,18 +924,25 @@ DEFINE_PROPERTY(damagetype, S, Actor)
|
|||
//==========================================================================
|
||||
//
|
||||
//==========================================================================
|
||||
DEFINE_PROPERTY(damagefactor, SF, Actor)
|
||||
DEFINE_PROPERTY(damagefactor, ZF, Actor)
|
||||
{
|
||||
PROP_STRING_PARM(str, 0);
|
||||
PROP_FIXED_PARM(id, 1);
|
||||
|
||||
if (info->DamageFactors == NULL) info->DamageFactors=new DmgFactors;
|
||||
if (str == NULL)
|
||||
{
|
||||
defaults->DamageFactor = id;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (info->DamageFactors == NULL) info->DamageFactors=new DmgFactors;
|
||||
|
||||
FName dmgType;
|
||||
if (!stricmp(str, "Normal")) dmgType = NAME_None;
|
||||
else dmgType=str;
|
||||
FName dmgType;
|
||||
if (!stricmp(str, "Normal")) dmgType = NAME_None;
|
||||
else dmgType=str;
|
||||
|
||||
(*info->DamageFactors)[dmgType]=id;
|
||||
(*info->DamageFactors)[dmgType]=id;
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue