Telemenu: Add the ability to teleport in crouched areas
This commit is contained in:
parent
d2f909981a
commit
9c93cd1283
@ -90,11 +90,13 @@ public actionTelMenu(id, key)
|
|||||||
|
|
||||||
if (g_menuOption[id] > 0)
|
if (g_menuOption[id] > 0)
|
||||||
{
|
{
|
||||||
|
set_pev(player, pev_flags, pev(player, pev_flags) | FL_DUCKING)
|
||||||
engfunc(EngFunc_SetOrigin, player, g_menuOrigin[id])
|
engfunc(EngFunc_SetOrigin, player, g_menuOrigin[id])
|
||||||
} else {
|
} else {
|
||||||
new Float:f_origin[3]
|
new Float:f_origin[3]
|
||||||
|
|
||||||
pev(id, pev_origin, f_origin)
|
pev(id, pev_origin, f_origin)
|
||||||
|
set_pev(player, pev_flags, pev(player, pev_flags) | FL_DUCKING)
|
||||||
engfunc(EngFunc_SetOrigin, player, f_origin)
|
engfunc(EngFunc_SetOrigin, player, f_origin)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user