]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/all.qc
Send alpha as part of weapon state, rather than when firing
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / all.qc
index 1faa1a0455d582904c20720e5e9a5c58c41e47b0..99b232730a26104acd4be494bc33f7cb4fde93ad 100644 (file)
@@ -563,7 +563,6 @@ NET_HANDLE(wframe, bool isNew)
        anim_set(wepent, a, !restartanim, restartanim, restartanim);
        wepent.state = ReadByte();
        wepent.weapon_nextthink = ReadFloat();
-       wepent.alpha = ReadByte() / 255;
        switch (wepent.state)
        {
                case WS_RAISE:
@@ -594,7 +593,6 @@ void wframe_send(entity actor, entity weaponentity, vector a, bool restartanim)
        WriteByte(channel, restartanim);
        WriteByte(channel, weaponentity.state);
        WriteFloat(channel, weaponentity.weapon_nextthink);
-       WriteByte(channel, weaponentity.m_alpha * 255);
 }
 #endif