X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fwepent.qc;h=6b1797c664e9b38fa36f7eee6d6526d2eea4cd5c;hp=8927c70a67548f60ff2be28b8c909129f509295d;hb=22aaaadbb539933f8ddfc09fc04095f18c139df2;hpb=224f6d8084e73e0e643cb2d9d58c466defa9d134 diff --git a/qcsrc/common/wepent.qc b/qcsrc/common/wepent.qc index 8927c70a6..6b1797c66 100644 --- a/qcsrc/common/wepent.qc +++ b/qcsrc/common/wepent.qc @@ -20,7 +20,7 @@ MACRO_END \ PROP(false, m_alpha, WEPENT_SET_NORMAL, \ { WriteByte(chan, rint(bound(-1, 254 * this.m_alpha, 254) - -1)); }, \ - { (viewmodels[this.m_wepent_slot]).alpha = (ReadByte() + -1) / 254; }) \ + { (viewmodels[this.m_wepent_slot]).m_alpha = (ReadByte() + -1) / 254; }) \ \ PROP(false, vortex_charge, WEPENT_SET_NORMAL, \ { WriteByte(chan, this.vortex_charge * 255); }, \ @@ -55,8 +55,8 @@ MACRO_END { (viewmodels[this.m_wepent_slot]).minelayer_mines = ReadByte(); }) \ \ PROP(false, arc_heat_percent, WEPENT_SET_NORMAL, \ - { WriteByte(chan, this.arc_heat_percent * 16); }, \ - { (viewmodels[this.m_wepent_slot]).arc_heat_percent = ReadByte() / 16; }) \ + { WriteByte(chan, this.arc_heat_percent * 255); }, \ + { (viewmodels[this.m_wepent_slot]).arc_heat_percent = ReadByte() / 255; }) \ \ PROP(false, vortex_chargepool_ammo, WEPENT_SET_NORMAL, \ { WriteByte(chan, this.vortex_chargepool_ammo * 16); }, \