From 64bf40aaa3bdfed5ab2feac92aa3e2e1577e93aa Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 3 Apr 2004 05:23:12 +0000 Subject: [PATCH] velocity stocks --- plugins/include/engine_stocks.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/include/engine_stocks.inc b/plugins/include/engine_stocks.inc index f000a6c5..6ec49bab 100755 --- a/plugins/include/engine_stocks.inc +++ b/plugins/include/engine_stocks.inc @@ -203,4 +203,14 @@ stock set_entity_visibility(entity, visible = 1) { /* Returns 1 if entity is visible. */ stock get_entity_visibility(entity) { return (entity_get_int(entity, EV_INT_effects) & EF_NODRAW) +} + +stock set_user_velocity(entity, Float:vec[3]) +{ + return entity_set_vector(entity, EV_SZ_velocity, vec) +} + +stock get_user_velocity(entity, Flaot:vec[3]) +{ + return entity_get_vector(entity, EV_SZ_velocity, vec) } \ No newline at end of file