summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/bg_pmove.c7
-rw-r--r--src/game/tremulous.h3
2 files changed, 9 insertions, 1 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index ed39a1a3..51e1415c 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -1911,7 +1911,12 @@ static void PM_GroundClimbTrace( void )
}
//if we hit something
- if( trace.fraction < 1.0f && !( trace.surfaceFlags & ( SURF_SKY | SURF_SLICK ) ) )
+ if( trace.fraction < 1.0f && !( trace.surfaceFlags & ( SURF_SKY | SURF_SLICK ) )
+#ifdef ALIEN_WALLWALK_ENTITIES
+ )
+#else
+ && !( trace.entityNum != ENTITYNUM_WORLD && i != 4 ) )
+#endif
{
if( i == 2 || i == 3 )
{
diff --git a/src/game/tremulous.h b/src/game/tremulous.h
index 9dfd7b9a..77275db8 100644
--- a/src/game/tremulous.h
+++ b/src/game/tremulous.h
@@ -358,6 +358,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define ALIEN_CREDITS_PER_FRAG 400
#define ALIEN_TK_SUICIDE_PENALTY 350
+// Uncomment to allow Aliens to wallwalk on any entity (buildables, players, etc)
+//#define ALIEN_WALLWALK_ENTITIES
+
/*
* HUMAN weapons
*