]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make vortex charge crosshair more accurate
authorMario <mario@smbclan.net>
Fri, 16 Feb 2018 11:31:47 +0000 (21:31 +1000)
committerMario <mario@smbclan.net>
Fri, 16 Feb 2018 11:31:47 +0000 (21:31 +1000)
qcsrc/common/wepent.qc

index e8afba86405e82abc48bde9746ce6ed4ea21af46..3da8b8939a48ca1e649e611f5e8d036939c4104c 100644 (file)
@@ -23,8 +23,8 @@ MACRO_END
        { (viewmodels[this.m_wepent_slot]).alpha = (ReadByte() + -1) / 254; }) \
     \
     PROP(false, vortex_charge, WEPENT_SET_NORMAL, \
-       { WriteByte(chan, this.vortex_charge * 16); }, \
-       { (viewmodels[this.m_wepent_slot]).vortex_charge = ReadByte() / 16; }) \
+       { WriteByte(chan, this.vortex_charge * 255); }, \
+       { (viewmodels[this.m_wepent_slot]).vortex_charge = ReadByte() / 255; }) \
     \
     PROP(false, m_gunalign, WEPENT_SET_NORMAL, \
        { WriteByte(chan, this.m_gunalign); }, \