Add support for player / npc following

Implements a new MobExtension plugin which adds 'follow', and 'chase'
mixins that allow the mob to follow behind another mob, and chase them
while keeping at a safe distance to fire projectiles.  Also adds a new
public method 'raycast' to CollisionManager, for drawing a line through
the world using bresenham's line algorithm whille checking for any impenetrable
objects.
This commit is contained in:
Gary Tierney
2017-01-02 03:58:58 +00:00
parent baa12ca446
commit e5a6638e2f
3 changed files with 160 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<plugin>
<id>mob-following</id>
<version>1</version>
<name>Following</name>
<description>Adds following for mobs.</description>
<authors>
<author>Steve Soltys</author>
</authors>
<scripts>
<script>following.rb</script>
</scripts>
<dependencies>
<dependency>mob-walk-to</dependency>
</dependencies>
</plugin>