Dynamic lights aren't compatible with 'VisibleToPlayerClass'

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
FishyClockwork
Posts: 9
Joined: Thu Oct 03, 2013 17:15

Dynamic lights aren't compatible with 'VisibleToPlayerClass'

Post 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
Last edited by FishyClockwork on Wed Dec 04, 2013 8:22, edited 1 time in total.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Dynamic lights aren't compatible with 'VisibleToPlayerCl

Post by Graf Zahl »

fixed
Locked

Return to “Closed Bugs”