Code:
new rocketvel[33][3]
new framemod = 10;
new framecount = 0;
public rocket_init(id)
{
...
new Float:length=get_vector_distance(look,origin);
for(new i=0; i<3; i++)
rocketvel[id][i] = (view[i]-origin[i])*length/SPEED;
...
}
public server_frame()
{
framecount++;
...
if(!(framecount%framemod))
{
for(new i=0; i<33;i++)
{
if(!rocketid[i]) continue
entity_set_vector(rocketid[i], EV_VEC_velocity, rocketvel[i])
}
}
....
}
Given it isn't perfect, it gives the idea