I readed the Wiki about SBARINFO, so I want to try to draw a grpahic (latter whole display) that only appear when you choose a self made player class.
So far ZDoom is stuborn and keeps telling me that it do not know my playerclass. So i tryed research and this what I found:
I also found on the forum this information by OsirisZDoom Wiki entires about SBARINFO says wrote: PlayerClass <classname> [, <classname2> [, <classname3>]]
Executes the following sub block only if the player is one of the specified classes (represented by their display name).
So here what I tryed:Osiris wrote:No, it's used as a subblock within the HUD code. Just as an example:I can't exactly test it since I'm at work, but I believe that a HUD I was making worked liked that.Code: Select all
statusbar fullscreen { PlayerClass DoomPlayerClass { drawnumber 2, HUDFONT_DOOM, red, frags, 276, 1; drawimage "MEDIA0", 20, 196; drawnumber 3, HUDFONT_DOOM, red, health, 80, 180; drawimage armoricon, 20, 172; drawnumber 3, HUDFONT_DOOM, red, armor, 80, 156; drawimage ammoicon1, 306, 196; drawnumber 3, HUDFONT_DOOM, red, ammo1, 295, 180; drawimage ammoicon2, 306, 172; drawnumber 3, HUDFONT_DOOM, red, ammo2, 295, 156; } }
First of all the nessery Informations from my new Player class:
Code: Select all
ACTOR AEoDPlayer3 : PlayerPawn //DoomPlayer
{
// Basic Information
Player.DisplayName "ARCANUM SIDHE" //Name of the chracter
player.soundclass AEODPL10S //Sound class of chracter
...
Code: Select all
statusbar None, forcescaled
{
//------------------------------------------
// ARCANUM SIDHE, SIRENS, SJNUM - Ichor
//------------------------------------------
PlayerClass "ARCANUM SIDHE"
{
drawimage "NEWSBAR", 0, 0;
}
}
Code: Select all
Execution could not continue.
Script error, "AEoD_HUD.wad:SBARINFO" line 16:
Expected '}' but got string constant "ARCANUM SIDHE" instead.
Code: Select all
Execution could not continue.
Script error, "AEoD_HUD.wad:SBARINFO" line 16:
Unkown PlayerClass 'AEoDPlayer3'.
Does anybody know something how to get this work ?
I would be very thankful if somebody could give me a hint, sinces I'm currently out of my ideas for this thing.