14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
void
renderclient(dynent *d, bool team, char *mdlname, bool hellpig, float scale)
{
int n = 3;
float speed = 100.0f;
float mz = d->o.z - d->eyeheight + 1.55f * scale;
int basetime = -((int)d & 0xFFF);
if (d->state == CS_DEAD) {
int r;
if (hellpig) {
n = 2;
r = range[3];
} else {
n = (int)d % 3;
r = range[n];
};
basetime = d->lastaction;
int t = lastmillis - d->lastaction;
if (t < 0 || t > 20000)
return;
if (t > (r - 1) * 100) {
|
|
|
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
void
renderclient(dynent *d, bool team, char *mdlname, bool hellpig, float scale)
{
int n = 3;
float speed = 100.0f;
float mz = d->o.z - d->eyeheight + 1.55f * scale;
int basetime = -((intptr_t)d & 0xFFF);
if (d->state == CS_DEAD) {
int r;
if (hellpig) {
n = 2;
r = range[3];
} else {
n = (intptr_t)d % 3;
r = range[n];
};
basetime = d->lastaction;
int t = lastmillis - d->lastaction;
if (t < 0 || t > 20000)
return;
if (t > (r - 1) * 100) {
|