Added crossprint, changed input_sequence from int to float as

it's now integrated into the engine, however as a float (blame DP)
This commit is contained in:
Marco Cawthorne 2021-09-15 22:44:31 +02:00
parent 034575ac87
commit cba54d3e2b
Signed by: eukara
GPG Key ID: C196CD8BA993248A
3 changed files with 21 additions and 13 deletions

View File

@ -42,7 +42,6 @@ enumflags
PLAYER_UNUSED7
};
noref int input_sequence;
class player:base_player
{
PREDICTED_INT(mode_tempstate);

View File

@ -97,6 +97,23 @@ dprint(string m)
return prior(m);
}
/* info print */
void
iprint(string m)
{
print(sprintf("^Ue080^Ue081^Ue081^Ue081^Ue081^Ue081^Ue081 %s ^Ue081^Ue081^Ue081^Ue081^Ue081^Ue081^Ue082\n", m));
}
void
crossprint(string m)
{
#ifdef CLIENT
print(strcat("CLIENT: ", m));
#else
print(strcat("SERVER: ", m));
#endif
}
__wrap string
precache_model(string m)
{
@ -109,7 +126,7 @@ precache_model(string m)
}
/* this could probably be a lot better, use this from now on so that it can be improved later */
noref int input_sequence;
noref float input_sequence;
float
pseudorandom()
{
@ -149,11 +166,4 @@ setorigin_safe(entity target, vector testorg)
}
setorigin(target, testorg);
}
/* info print */
void
iprint(string m)
{
print(sprintf("^Ue080^Ue081^Ue081^Ue081^Ue081^Ue081^Ue081 %s ^Ue081^Ue081^Ue081^Ue081^Ue081^Ue081^Ue082\n", m));
}
}

View File

@ -329,7 +329,7 @@ Sound_Distance(entity target, string shader)
print(sprintf("Sound_Distance: %s\n", argv(r)));
#endif
/*sound(
sound(
target,
5,
argv(r),
@ -338,8 +338,7 @@ Sound_Distance(entity target, string shader)
pitch,
flag,
g_sounds[sample].offset
);*/
pointsound(target.origin, argv(r), volume, ATTN_NONE);
);
}
void