- Added A_SetCrosshair.

SVN r1700 (trunk)
This commit is contained in:
Randy Heit 2009-07-01 02:00:36 +00:00
commit fe19767ac2
8 changed files with 75 additions and 30 deletions

View file

@ -1721,3 +1721,20 @@ DEFINE_ACTION_FUNCTION_PARAMS(AWeapon, A_ZoomFactor)
self->player->ReadyWeapon->FOVScale = zoom;
}
}
//===========================================================================
//
// A_SetCrosshair
//
//===========================================================================
DEFINE_ACTION_FUNCTION_PARAMS(AWeapon, A_SetCrosshair)
{
ACTION_PARAM_START(1);
ACTION_PARAM_INT(xhair, 0);
if (self->player != NULL && self->player->ReadyWeapon != NULL)
{
self->player->ReadyWeapon->Crosshair = xhair;
}
}