summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-03-12 11:32:21 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-03-12 11:32:21 +0000
commit609d52100cd61f038981779b4644dc20092bc934 (patch)
treee240ec17fc20708e42dc6dd87fb93d9d58aeacd5 /api.txt
parent21098148052f504767446291e73bfbd107056f5a (diff)
added new explosion mob functionality (thanks to Yukitty)
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt16
1 files changed, 15 insertions, 1 deletions
diff --git a/api.txt b/api.txt
index 8e71b0a..379807c 100644
--- a/api.txt
+++ b/api.txt
@@ -86,7 +86,20 @@ functions needed for the mob to work properly which contains the following:
view_range.
'dogshoot' has melee attack when inside reach and shoot attack
when inside view_range.
- 'explode' causes mob to explode when inside reach.
+ 'explode' causes mob to stop and explode when inside reach.
+ 'explosion_radius' the radius of explosion node destruction,
+ defaults to 1
+ 'explosion_damage_radius' the radius of explosion entity & player damage,
+ defaults to explosion_radius * 2
+ 'explosion_timer' number of seconds before mob explodes while its target
+ is still inside reach or explosion_damage_radius,
+ defaults to 3.
+ 'allow_fuse_reset' Allow 'explode' attack_type to reset fuse and resume
+ chasing if target leaves the blast radius or line of
+ sight. Defaults to true.
+ 'stop_to_explode' When set to true (default), mob must stop and wait for
+ explosion_timer in order to explode. If false, mob will
+ continue chasing.
'explosion_radius' has the radius of the explosion which defaults to 1.
'explosion_timer' number of seconds before mob explodes while still
inside view range.
@@ -129,6 +142,7 @@ functions needed for the mob to work properly which contains the following:
'damage' sound heard when mob is hurt.
'death' played when mob is killed.
'jump' played when mob jumps.
+ 'fuse' sound played when mob explode timer starts.
'explode' sound played when mob explodes.
'drops' table of items that are dropped when mob is killed, fields are: