mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 08:39:27 +00:00
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:
Executable
+16
@@ -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>
|
||||
Reference in New Issue
Block a user