I vote for 1 and 4
The 4th one is: <!>

Hirogen2 wrote:So I have (1) a true-color sprite which (2) uses a color set (a limited 32 color set still) other than the Doom green for the suit. The former makes me wonder how to do translation at all on it, and for the latter, how to set up the PlayerPawn decorate definition so that gzdoom can recolor the sprite according to the player's likes.
Translations on PNGs are undefined. There is no guarantee that they may work correctly.
int script3talk = 1;
script 3 (void) //Wood barrier is destroyed
{
if(script3stopper == 0)
{
if(checkweapon("GasChainsaw"))
{
script3stopper = 1;
activatorsound("woodbreak",127);
setlinetexture(1,SIDE_FRONT,TEXTURE_MIDDLE,"WOOGA2");
delay(3);
setlinetexture(1,SIDE_FRONT,TEXTURE_MIDDLE,"WOOGA3");
delay(3);
setlinetexture(1,SIDE_FRONT,TEXTURE_MIDDLE,"WOOGA4");
delay(3);
setlinetexture(1,SIDE_FRONT,TEXTURE_MIDDLE,"WOOGA5");
delay(3);
setlinetexture(1,SIDE_FRONT,TEXTURE_MIDDLE,"WOOGA6");
setlineblocking(1,off);
}
else
{
if(script3talk == 1)
{
script3talk = 0;
print(s:"\csA chainsaw would make quick work of this.");
}
}
}
}
int woodhealth = 20;
script 3 (void) //Wood barrier is destroyed
{
if(script3stopper == 0)
{
if(checkweapon("GasChainsaw"))
{
if(--woodhealth == 0)
{
script3stopper = 1;
// ...
}
}
else
{
// ...
}
}
} #include "zcommon.acs"
script 1 (void)
{
print(s:"Hello World!");
}


int woodhealth = 30;
script 3 (void) //Wood barrier
{
if(script3stopper == 0)
{
if(checkweapon("GasChainsaw"))
{
if(woodhealth == 0)
{
script3stopper = 1;
activatorsound("woodbreak",127);
setlinetexture(1,SIDE_FRONT,TEXTURE_MIDDLE,"WOOGA2");
delay(3);
setlinetexture(1,SIDE_FRONT,TEXTURE_MIDDLE,"WOOGA3");
delay(3);
setlinetexture(1,SIDE_FRONT,TEXTURE_MIDDLE,"WOOGA4");
delay(3);
setlinetexture(1,SIDE_FRONT,TEXTURE_MIDDLE,"WOOGA5");
delay(3);
setlinetexture(1,SIDE_FRONT,TEXTURE_MIDDLE,"WOOGA6");
setlineblocking(1,off);
}
else
{
woodhealth - 1; //this is the problem, it says there's a "missing assignment operator"
}
}
}
}

DrawBar "SHIEBAR1", "SHIEBAR2", Armor BlueArmor, Vertical, 20, 169;Users browsing this forum: Baidu [Spider] and 1 guest