Passing a constant to an out parameter should error out. Mostly putting this here so I don't forget it.
Example code:
Code: Select all
class BEPlayerBase : DoomPlayer
{
private void CheckCursorMovement(out int maxWidth, int maxHeight)
{
Console.Printf ("%d", maxWidth);
}
vector2 SomeGridCoords;
override void Tick()
{
int buttons = player.original_cmd.buttons;
int oldbuttons = player.original_oldbuttons;
if (buttons & BT_ATTACK)
{
CheckCursorMovement(5, 5);
}
Super.Tick();
}
}