PDA

View Full Version : Add 2 natives to fun module?


BigBaller
04-01-2004, 14:22
/* Gets the velocity of a player */
native get_user_velocity(id, velocity[3]);

/* Sets the velocity of a player */
native set_user_velocity(id, velocity[3]);

Those are in old xtrafun.inc

well they are not in the fun.inc

Hangman was trying to make a plugin fully AMXX compatible and he cant do that because those natives are not in the AMXX fun module.

http://forums.alliedmods.net/showthread.php?t=601

is his post.

AssKicR
04-01-2004, 14:40
No need for it.. Use these stocks....

and i hope these get added to the engine_stocks.inc


/* Sets the velocity of an entity */
stock set_user_velocity(id,vel[3]) {
new Float:Fvel[3]
IVecFVec(vel,Fvel)
entity_set_vector(id, EV_VEC_velocity, Fvel)
}

/* Gets the velocity of an entity */
stock get_user_velocity(id,vel[3]) {
new Float:Fvel[3]
entity_get_vector(id, EV_VEC_velocity, Fvel)
FVecIVec(Fvel,vel)
}

Geesu
04-01-2004, 16:04
Yea I hope they add that in, it would be nice.

BigBaller
04-01-2004, 16:11
either way, add natives or stocks they are still useful and needed :)

BigBaller
04-02-2004, 03:29
Bailopan, pm? anyone?

BAILOPAN
04-02-2004, 03:30
fine, fine, I'll add them in as stocks

Neo
04-02-2004, 13:44
lol forced into it