Question about splash damage

正在查看此主题的用户

Shiro

Squire
From what I've seen, a lot of mods have implemented splash damage in one way or the other, from mirathei's magic mod to the dynamite in 1866, and the various mods using artillery.
I was wondering exactly how this damage is scripted- is it possible to trigger splash damage in a particular direction and range with a certain key?
 
I'm not sure but I belive it is done by checking if some condition is met and then executing a script which damages everyone within a certain area and plays an explosion graphic and sound.
 
Shiro 说:
From what I've seen, a lot of mods have implemented splash damage in one way or the other, from mirathei's magic mod to the dynamite in 1866, and the various mods using artillery.
I was wondering exactly how this damage is scripted- is it possible to trigger splash damage in a particular direction and range with a certain key?

The source code for Mirathei's Magic Mod is on the Repository.

Schattenlander(Darklands) code and Hellequin's notes in this thread http://mbx.streetofeyes.com/index.php?topic=686.0
 
后退
顶部 底部