From 5f00f093144329e38de8575aecbe69af45781aaf Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 31 Aug 2004 15:02:51 +0000 Subject: [PATCH] Moved stocks --- plugins/include/engine.inc | 17 ----------------- plugins/include/engine_stocks.inc | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/plugins/include/engine.inc b/plugins/include/engine.inc index d8d285a7..b0cce224 100755 --- a/plugins/include/engine.inc +++ b/plugins/include/engine.inc @@ -261,21 +261,4 @@ forward pfn_use(user, used); */ native find_sphere_class(aroundent, _lookforclassname[], Float:radius, entlist[], maxents, Float:origin[3] = {0.0, 0.0, 0.0}); -/* Backwards compatible */ -/* Hurts/Kills players in a sphere, like an explosion, Multiplier determines damage. */ -stock RadiusDamage(Float:fExplodeAt[3], iDamageMultiplier, iRadiusMultiplier) { - return radius_damage(fExplodeAt[3], iDamageMultiplier, iRadiusMultiplier) -} -/* Gives you a velocity in the direction a player is looking, iVelocity is the multiplier. */ -stock VelocityByAim(iIndex,iVelocity, Float:vRetValue[3]) { - return velocity_by_aim(iIndex,iVelocity,vRetValue) -} -/* Will return the contents of a point (inside map? in sky? outside map? etc.). */ -stock PointContents(Float:fCheckAt[3]) { - return point_contents(fCheckAt); -} - -stock set_size(index, Float:mins[3], Float:maxs[3]) { - return entity_set_size(index,mins,maxs) -} #include \ No newline at end of file diff --git a/plugins/include/engine_stocks.inc b/plugins/include/engine_stocks.inc index 54e04717..22e426aa 100755 --- a/plugins/include/engine_stocks.inc +++ b/plugins/include/engine_stocks.inc @@ -237,4 +237,22 @@ stock set_user_velocity(entity, Float:vec[3]) stock get_user_velocity(entity, Float:vec[3]) { return entity_get_vector(entity, EV_VEC_velocity, vec) +} + +/* Backwards compatible */ +/* Hurts/Kills players in a sphere, like an explosion, Multiplier determines damage. */ +stock RadiusDamage(Float:fExplodeAt[3], iDamageMultiplier, iRadiusMultiplier) { + return radius_damage(fExplodeAt[3], iDamageMultiplier, iRadiusMultiplier) +} +/* Gives you a velocity in the direction a player is looking, iVelocity is the multiplier. */ +stock VelocityByAim(iIndex,iVelocity, Float:vRetValue[3]) { + return velocity_by_aim(iIndex,iVelocity,vRetValue) +} +/* Will return the contents of a point (inside map? in sky? outside map? etc.). */ +stock PointContents(Float:fCheckAt[3]) { + return point_contents(fCheckAt); +} + +stock set_size(index, Float:mins[3], Float:maxs[3]) { + return entity_set_size(index,mins,maxs) } \ No newline at end of file