Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class ZBelphegor : BaronofHell
- {
- override void Tick()
- {
- double floorHeight; // This gets the height of the floor directly in front of the monster
- vector3 oldPos = pos; // This stores the monsters current position
- {
- A_Warp(AAPTR_Master,0,0,0,0,WARPF_TESTONLY); // Account for thin 3D floors
- floorHeight = oldPos.z - GetZAt(0,0); // Calculate the floor height directly in front of the monster
- }
- if(InStateSequence(CurState,ResolveState("STAMPEDE"))) // Only Jump if the monster is charging
- {
- if(floorHeight < (oldPos.z - MaxDropOffHeight)) // Is the drop off in front of us worth the jump
- {
- SetStateLabel("BackUpNow"); // No we can't! ABORT ABORT!
- }
- }
- return Super.Tick();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement