From ef908ff4f5b9bf3a5fac9890d3e5adb636fdf1a6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 13 Jul 2005 22:16:30 +0000 Subject: [PATCH] Added get_distance_f, at15992 --- plugins/include/amxmodx.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index bbafce17..67986f5c 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -516,6 +516,9 @@ native emit_sound(index, channel, sample[], Float:vol, Float:att,flags, pitch); /* Returns distance between two vectors. */ native get_distance(origin1[3],origin2[3]); +/* Floating point version */ +native Float:get_distance_f(Float:origin1[3], Float:origin2[3]); + /* Registers new cvar for HL engine. */ native register_cvar(const name[],const string[],flags = 0,Float:fvalue = 0.0);