Can't seem to be able to make the player sprite transparent

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
bLUEbYTE
Posts: 160
Joined: Fri Nov 15, 2019 4:28 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: Australia

Can't seem to be able to make the player sprite transparent

Post by bLUEbYTE »

Hi,
I'm trying to make the player sprite half-transparent as I want to use this in conjunction with chasecam mode. I created a wad with two lumps with following content:

DECORATE:

Code: Select all

ACTOR TransparentPlayer : DoomPlayer
{
	RenderStyle "Translucent"
	Alpha 0.5
}
MAPINFO:

Code: Select all

GameInfo
{
   PlayerClasses = "TransparentPlayer"
}
I then load this wad as the last file, launch GZDoom and choose New Game, switch into chasecam mode but the player sprite is still fully opaque?
What am I missing here?
Attachments
TransparentPlayer.wad
(184 Bytes) Downloaded 30 times
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

Re: Can't seem to be able to make the player sprite transpar

Post by Void Weaver »

All work as intended. Apparently that mistake is in an somewhere else.
bLUEbYTE
Posts: 160
Joined: Fri Nov 15, 2019 4:28 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: Australia

Re: Can't seem to be able to make the player sprite transpar

Post by bLUEbYTE »

Void Weaver wrote:All work as intended. Apparently that mistake is in an somewhere else.
do you mean it works on your end with the wad attached?
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

Re: Can't seem to be able to make the player sprite transpar

Post by Void Weaver »

Yep.
Drag & Drop - works;
.bat\.ico - works (gzdoom.exe -iwad Doom2.wad -file TransparentPlayer.wad);
ZDL launch works.
bLUEbYTE
Posts: 160
Joined: Fri Nov 15, 2019 4:28 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: Australia

Re: Can't seem to be able to make the player sprite transpar

Post by bLUEbYTE »

Thanks, it indeed worked when I removed autoloads. I then performed a process of elimination and found the culprit: version 1.32 of NightFright's Smooth Weapons mod. With the newer version it worked. More specifically, the older version had a KEYCONF overriding the player class. All good now. Cheers!
Post Reply

Return to “Scripting”