X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Fonslaught%2Fsv_onslaught.qc;h=975c1192fe65937515edc14d8143258810a84b87;hb=0394852103d5d410a54f14daa6fc698d0cdbd74f;hp=9675634ec7b5c64780e8707421028ef821b7b11f;hpb=178a9d14d5c5a141cb1947bc5df599090357ebda;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc index 9675634ec..975c1192f 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc @@ -2,6 +2,11 @@ #include "sv_controlpoint.qh" #include "sv_generator.qh" +#include +#include +#include +#include + bool g_onslaught; float autocvar_g_onslaught_teleport_wait; @@ -39,9 +44,7 @@ bool clientcamera_send(entity this, entity to, int sf) WriteVector(MSG_ENTITY, this.origin); - WriteAngle(MSG_ENTITY, this.angles_x); - WriteAngle(MSG_ENTITY, this.angles_y); - WriteAngle(MSG_ENTITY, this.angles_z); + WriteAngleVector(MSG_ENTITY, this.angles); return true; } @@ -876,6 +879,7 @@ void ons_camSetup(entity this) FOREACH_CLIENT(true, it.clientcamera = cam;); + // NOTE: engine networked WriteByte(MSG_ALL, SVC_SETVIEWANGLES); WriteAngle(MSG_ALL, cam.angles_x); WriteAngle(MSG_ALL, cam.angles_y); @@ -998,7 +1002,7 @@ void ons_GeneratorThink(entity this) { Send_Notification(NOTIF_ONE, it, MSG_CENTER, CENTER_ONS_NOTSHIELDED_TEAM); msg_entity = it; - soundto(MSG_ONE, this, CHAN_AUTO, SND(ONS_GENERATOR_ALARM), VOL_BASE, ATTEN_NONE); + soundto(MSG_ONE, this, CHAN_AUTO, SND(ONS_GENERATOR_ALARM), VOL_BASE, ATTEN_NONE, 0); } else Send_Notification(NOTIF_ONE, it, MSG_CENTER, APP_TEAM_NUM(this.team, CENTER_ONS_NOTSHIELDED));