2017-01-19 16:40:34 +00:00
|
|
|
// 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 static int GameType() // deprecated for 2.4.x
|
|
|
|
{
|
|
|
|
return gameinfo.gametype;
|
|
|
|
}
|
|
|
|
|
|
|
|
deprecated static void C_MidPrint(string fontname, string textlabel, bool bold = false) // deprecated for 2.4.x
|
|
|
|
{
|
|
|
|
return Console.MidPrint(fontname, textlabel, bold);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2016-12-24 13:46:34 +00:00
|
|
|
|
|
|
|
extend class Actor
|
|
|
|
{
|
|
|
|
deprecated 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);
|
|
|
|
}
|
2016-12-24 15:34:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extend class StateProvider
|
|
|
|
{
|
|
|
|
deprecated 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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-19 16:40:34 +00:00
|
|
|
// this is just a placeholder until the statusbar gets properly exported.
|
|
|
|
struct StatusBar native
|
|
|
|
{
|
|
|
|
native static void ReceivedWeapon(Weapon weap);
|
|
|
|
}
|
|
|
|
|