mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- added a lock parameter to Door_Animated.
SVN r2167 (trunk)
This commit is contained in:
parent
4b04b94414
commit
f02303d33c
2 changed files with 5 additions and 2 deletions
|
@ -12,7 +12,7 @@ DEFINE_SPECIAL(Door_Close, 10, 2, 3, 3)
|
||||||
DEFINE_SPECIAL(Door_Open, 11, 2, 3, 3)
|
DEFINE_SPECIAL(Door_Open, 11, 2, 3, 3)
|
||||||
DEFINE_SPECIAL(Door_Raise, 12, 3, 4, 4)
|
DEFINE_SPECIAL(Door_Raise, 12, 3, 4, 4)
|
||||||
DEFINE_SPECIAL(Door_LockedRaise, 13, 4, 5, 5)
|
DEFINE_SPECIAL(Door_LockedRaise, 13, 4, 5, 5)
|
||||||
DEFINE_SPECIAL(Door_Animated, 14, 3, 3, 3)
|
DEFINE_SPECIAL(Door_Animated, 14, 4, 4, 4)
|
||||||
DEFINE_SPECIAL(Autosave, 15, 0, 0, 0) // [RH] Save the game *now*
|
DEFINE_SPECIAL(Autosave, 15, 0, 0, 0) // [RH] Save the game *now*
|
||||||
DEFINE_SPECIAL(Transfer_WallLight, 16, -1, -1, 2)
|
DEFINE_SPECIAL(Transfer_WallLight, 16, -1, -1, 2)
|
||||||
DEFINE_SPECIAL(Thing_Raise, 17, 1, 1, 1)
|
DEFINE_SPECIAL(Thing_Raise, 17, 1, 1, 1)
|
||||||
|
|
|
@ -189,8 +189,11 @@ FUNC(LS_Door_CloseWaitOpen)
|
||||||
}
|
}
|
||||||
|
|
||||||
FUNC(LS_Door_Animated)
|
FUNC(LS_Door_Animated)
|
||||||
// Door_Animated (tag, speed, delay)
|
// Door_Animated (tag, speed, delay, lock)
|
||||||
{
|
{
|
||||||
|
if (arg3 != 0 && !P_CheckKeys (it, arg3, arg0 != 0))
|
||||||
|
return false;
|
||||||
|
|
||||||
return EV_SlidingDoor (ln, it, arg0, arg1, arg2);
|
return EV_SlidingDoor (ln, it, arg0, arg1, arg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue