• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua [tfs 1.2] Rune Area of Effect

Mr. K

New Member
Joined
Dec 6, 2010
Messages
5
Reaction score
1
Hello otland!

Does anyone understand the logic behind spell/rune areas to help me solve my problem?

I'm modifying the rune "fire wall" so it hits where it normally does EXCEPT the center. This is intended so that people may use Rune Target Hotkeys, but if they try to hit the target directly it won't hit it. This is intended so that people can use the rune hotkey "Crosshairs" but not "Target" directly, which is a central mechanism I'm trying to implement.

My best try was to change the wallfield to the following:

-- Walls
AREA_WALLFIELD = {
{1, 1, 0, 1, 1}
}

However, this doesn't solve the problem as the crosshair of the rune is still getting damaged. Also, when I try to use this logic diagonally, the fire wall diagonal is thrown off by 2-3 sqm.


1676267041097.png

This is my first time programming an otserver and my first time posting in otland, any help would be much appreciated 🙏 🙏 🙏
 
Back
Top