2017-01-20 00:11:36 +00:00
|
|
|
class MorphProjectile : Actor
|
2016-10-13 22:40:20 +00:00
|
|
|
{
|
2016-11-23 22:28:03 +00:00
|
|
|
|
2017-01-20 00:11:36 +00:00
|
|
|
Class<PlayerPawn> PlayerClass;
|
|
|
|
Class<Actor> MonsterClass, MorphFlash, UnMorphFlash;
|
|
|
|
int Duration, MorphStyle;
|
2016-11-23 22:28:03 +00:00
|
|
|
|
2016-10-13 22:40:20 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Damage 1;
|
|
|
|
Projectile;
|
|
|
|
-ACTIVATEIMPACT
|
|
|
|
-ACTIVATEPCROSS
|
|
|
|
}
|
2017-01-20 00:11:36 +00:00
|
|
|
|
|
|
|
override int DoSpecialDamage (Actor target, int damage, Name damagetype)
|
|
|
|
{
|
|
|
|
if (target.player)
|
|
|
|
{
|
|
|
|
target.player.MorphPlayer (NULL, PlayerClass, Duration, MorphStyle, MorphFlash, UnMorphFlash);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
target.MorphMonster (MonsterClass, Duration, MorphStyle, MorphFlash, UnMorphFlash);
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-10-13 22:40:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class MorphedMonster : Actor native
|
|
|
|
{
|
2016-11-23 22:28:03 +00:00
|
|
|
native Actor UnmorphedMe;
|
|
|
|
native int UnmorphTime, MorphStyle;
|
|
|
|
native Class<Actor> MorphExitFlash;
|
|
|
|
|
2016-10-13 22:40:20 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Monster;
|
|
|
|
-COUNTKILL
|
|
|
|
+FLOORCLIP
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|