Page 1 of 1

Dynamic lights aren't compatible with 'VisibleToPlayerClass'

Posted: Thu Oct 03, 2013 17:52
by FishyClockwork
To the point.

Download this little test wad.
GLTEST.wad (Removed, no longer needed)
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
	}
}
EDIT: Thanks Graf! :D

Re: Dynamic lights aren't compatible with 'VisibleToPlayerCl

Posted: Sat Nov 30, 2013 13:15
by Graf Zahl
fixed