HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Caster System: Unneeded function

06-10-2005, 04:58 PM#1
Blade.dk
As the caster system thread is locked I'll just post it here.

I looked at your IsPointWater function, and it checks it by pathing, so I think the WaterDetectorId constant function is unneeded.

Blade
06-10-2005, 06:21 PM#2
Guest
thats right. i posted that at wc3sear.ch some time ago, but i guess none read it for the spells were removed
but here is another thing:

function Caster_SetZAngle takes unit caster, real ang returns nothing
local real a=(GetUnitFacing(caster)*bj_DEGTORAD)
local real x
set ang=ModuloReal(ang,360)
set a=ModuloReal(a,360)

and i guess a<= 2pi
06-10-2005, 11:30 PM#3
Vexorian
Can't remove it because some spells could use that constant, seriously, and it is not worth it anyways.

thanks for pointing the 360 thing
06-11-2005, 09:47 AM#4
Blade.dk
Hmm, ok. Just wanted to let you know.