Snippet here
Code: Select all
var() name LiftButton;
var Actor Button;
function PostBeginPlay()
{
local Actor AButton;
Super.PostBeginPlay();
if ( LiftButton != '' )
{
foreach AllActors ( class 'Actor', AButton, LiftButton )
{
Button = AButton;
break;
}
}
}
function Actor SpecialHandling(Pawn Other)
{
if ( (Other.Base == MyLift) && (MyLift != None) )
{
if ( (self.Location.Z < Other.Location.Z )
&& Other.LineOfSightTo(self) )
return self;
}
//Not coming from lift but want to the lift direction which is in pause
if ( MyLift != None && !MyLift.bOpening && !MyLift.bDelaying && Button != None )
{
Other.MoveTarget = Button;
return Button;
}
else
return Super.SpecialHandling(Other);
return Self;
}
All right, back to the lab, I have to see Bots able to hunt in all areas.
Edit: Ok, I think I can explain where this thing was needed.
Last MH tutorial written, did trigger me to look at some "high-tech" Level called Tarmation2 a sort of "Moph-to-MH" thing which I could see badly messed up starting with geometry.
By looking back at forums I was almost to believe that fixing geometry there is not that possible since "mappers" claimed that they couldn't not do too much fix over there.
Version "_fix5" was impressive at the way of doing fixes... .
TranslatorEvent ? I can setup simple triggers reacting according to map mission rather than static the same dumb sentence... and working directly on Screen .
Actually I cannot say that it's perfect now, but not how it was the mess which was shared so far.
Area with Brutes has now "floor", CubeBox hosting a Titan which was going out too early did not include a collision - yeah, a stupid mover box was just trash. Floor was fixable by simply aligning to grid the whole space and rotating the brush causing an ugly BSP cut around, and now it's nice. I gotta admit using rotations is a very very heavy process - you need 30 years of schools for doing this .
I'm gonna add partial Bot support (I'm not gonna teach them that Elevator) if player is attacking and moving stuff around, Bot will use that "Shortcut Lift" (it's Teleporter ShortCut not Lift after all) to get into battle.
Speaking about difficulty - perhaps I have to write a "patching" module for "fixing difficulty" accordingly. Admins with super super players can load a package for increasing monsters number and changing default difficulty using this way. Admins with less player can use it in original. I'll think about these... Or I might be willing to setup an INI file for this map and letting everyone to experiment nasty/cute things.