Constrain Monsters
keeping busy lately.. managed to tinker a little at work today. haven't tested anything.
Constrain Monsters on X axis
- Change skaarjpack.MonsterController like you did PlayerController to undo any offset for pawn in +/-Y
- Before made the change by overriding XPlayer, which is a child of PlayerController
- Specified the change in the extended Gametype ClockworkGame, with: PlayerControllerClassName="Clockwork.ClockworkPlayer"
- Monster has a line: ControllerClass=class'SkaarjPack.MonsterController'
- In the ClockworkPlayer controller I set the Y value of the pawns location to 0 everytime PlayerTick was called.
- In the 2DMonsterController I set the Y value of the pawns location to 0 everytime Tick was called.
- need to test
- :: Could stop forcing Y=0 when something dies
- :: Obviously a hack job, but we'll see what happens
- :: Need to see what can be done with Goals, paths, AI to make monsters work better in 2D