mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-18 02:31:31 +00:00
23 lines
456 B
R
23 lines
456 B
R
entity self;
|
|
.vector velocity;
|
|
.vector oldorigin;
|
|
.float speed;
|
|
@extern .vector avel;
|
|
@extern vector vel;
|
|
|
|
void (vector tdest, float speed, void () func) SUB_CalcMove = {}
|
|
vector normalize (vector x) = #0;
|
|
float vlen (vector x) = #0;
|
|
|
|
void oof (void)
|
|
{
|
|
}
|
|
|
|
void foo (void)
|
|
{
|
|
float forward = vlen (self.velocity);
|
|
forward *= 0.8;
|
|
self.velocity = forward * normalize (self.velocity);
|
|
SUB_CalcMove(self.oldorigin, self.speed, oof);
|
|
self.avel_y = vel_z;
|
|
}
|