mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
9bffe4ee50
Note that the Strife status bar does not draw the health bars yet. I tried to replace the hacky custom texture with a single fill operation but had to find out that all the coordinate mangling for the status bar is being done deep in the video code. This needs to be fixed before this can be made to work. Currently this is not usable in mods because they cannot initialize custom status bars yet.
33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
// This file contains compatibility wrappers for DECORATE functions with bad parameters or other things that were refactored since the first release.
|
|
|
|
extend class Object
|
|
{
|
|
deprecated("2.4") static int GameType()
|
|
{
|
|
return gameinfo.gametype;
|
|
}
|
|
|
|
deprecated("2.4") static void C_MidPrint(string fontname, string textlabel, bool bold = false)
|
|
{
|
|
let f = Font.GetFont(fontname);
|
|
if (f == null) return;
|
|
return Console.MidPrint(f, textlabel, bold);
|
|
}
|
|
|
|
}
|
|
|
|
extend class Actor
|
|
{
|
|
deprecated("2.3") void A_CustomMissile(class<Actor> missiletype, double spawnheight = 32, double spawnofs_xy = 0, double angle = 0, int flags = 0, double pitch = 0, int ptr = AAPTR_TARGET)
|
|
{
|
|
A_SpawnProjectile(missiletype, spawnheight, spawnofs_xy, angle, flags|CMF_BADPITCH, pitch, ptr);
|
|
}
|
|
}
|
|
|
|
extend class StateProvider
|
|
{
|
|
deprecated("2.3") action void A_FireCustomMissile(class<Actor> missiletype, double angle = 0, bool useammo = true, double spawnofs_xy = 0, double spawnheight = 0, int flags = 0, double pitch = 0)
|
|
{
|
|
A_FireProjectile(missiletype, angle, useammo, spawnofs_xy, spawnheight, flags, -pitch);
|
|
}
|
|
}
|