I was a bit experimenting with Nash's shadowsprites trying to implement his code also for decoration sprites like trees. Since it is written in ZScript, I have converted some of them from Decorate to Zscript. I got it working, except the sprite & classnames are not recognized in GZDoomBuilder Bugfix. Am I doing something wrong or is the editor not prepared yet for custom ZScript sprites? (I am using the most recent version R2986)
This is the code for one of the sprites in a file named zscript/ZVegetation.txt:
Code: Select all
class HrFir1 : Actor
{
//$Category HeroVegetation
//$Title "Fir tree 1"
//$Sprite "HFI1A0"
Default
{
Radius 16;
Height 70;
+SOLID
}
States
{
Spawn:
HFI1 A -1;
Stop;
}
}
referenced from zscript.txt in the root of the pk3:
Code: Select all
version "2.5"
#include "zscript/SpriteShadow.txt"
#include "zscript/ZVegetation.txt"
Actually quite straightforwarded. Btw. the editor number is defined in DoomEdNums from Mapinfo, and that's the only property the editor recognizes. So it's not a big deal, but it would be nice to get rid of the questionmark icons in the editor.