Download this little test wad.
Load it with doom or doom2 as the IWAD.
To test, first start a game and choose 'testguy' as the player class, now summon the 'Test' actor (summon test).
Works as expected.
Now start another game, choose 'marine' and summon 'Test'. The sprite won't show, but the dynamic light is still visible despite the VisibleToPlayerClass property *not* including DoomPlayer(marine).
Tested with GZDoom g1.8.1-285-g834678a
In case you don't want to download the wad, here's the DECORATE code:
Code: Select all
Actor TestPlayer : DoomPlayer
{
Player.DisplayName "Testguy"
}
Actor Test
{
VisibleToPlayerClass "TestPlayer"
States
{
Spawn:
POSS A -1 Light("ZOMBIEATK")
Stop
}
}
