mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Don't jump when on top of another sentient
This commit is contained in:
parent
406f804ef8
commit
94e1830895
1 changed files with 8 additions and 0 deletions
|
@ -7769,6 +7769,14 @@ void Player::Jump(Event *ev)
|
|||
return;
|
||||
}
|
||||
|
||||
if (g_gametype->integer != GT_SINGLE_PLAYER) {
|
||||
// Added in 2.0
|
||||
// Don't jump when on top of another sentient
|
||||
if (groundentity && groundentity->entity && groundentity->entity->IsSubclassOfSentient()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
maxheight = ev->GetFloat(1);
|
||||
|
||||
if (maxheight > 16) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue