Just had a hack at this code to fix a couple of things that were annoying me. 1) shots fired to the left always went at nearest 45 degree angle. 2) when editing in high resolutions, mouse was limited to top left of screen. Reproducible: Always Steps to Reproduce: ~ # emerge --info Portage 2.1.2.2 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r2, 2.6.20-gentoo-r7-lucienne i686) ================================================================= System uname: 2.6.20-gentoo-r7-lucienne i686 AMD Athlon(tm) XP 2700+ Gentoo Base System release 1.12.9 Timestamp of tree: Wed, 16 May 2007 05:20:01 +0000 ccache version 2.4 [disabled] dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -momit-leaf-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -momit-leaf-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo" LINGUAS="en en_au" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 3ds X a52 aac aalib acl aio alias alsa amr aotuv ares audiofile bash-completion berkdb bitmap-fonts blender-game bzip2 cdda cddb cdparanoia cli connectionstatus cracklib crypt css cups curl cvs dga djbfft dri dts dv dvd dvdnav dvdr dvdread editor enca encode expat fam fbcon ffmpeg fftw fixedtones flac foomaticdb fortran fping ftp gazebo gd gdbm geos gif gimpprint glibc-omitfp gnutls gpm graphviz gs gtk highlight history hpn iconv ieee1394 imagemagick isdnlog javascript jpeg jpeg2k kde kdeenablefinal kdexdeltas lame lcms libcaca libg++ libnotify live logitech-mouse lzo mad matroska mjpeg mmap mmx mng mod modplug mp2 mp3 mpeg mplayer musepack musicbrainz mysql ncurses nethack netmeeting network nls nowin nptl nptlonly nsplugin numeric ogg openal opengl pam pam_console pcre perl player plotutils png pnm ppds pppd pulseaudio python qt3 quicktime rar readline real reflection rle rtc rtsp samba sdl sdl-image session shout sms speex sphinx2 spl srt sse ssl stage stream subtitles subversion svg tcpd theora threadsafe tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vdr vorbis wavpack wifi win32codecs wmf x264 x86 xanim xcomposite xine xml xorg xpm xv xvid xvmc yv12 zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_au" USERLAND="GNU" VIDEO_CARDS="fbdev vesa nvidia" Unset: CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 120490 [details, diff] abuse.hires.patch fixes mouse region in edit mode, also allows normal play in any resolution with -size xres yres commandline option
Created attachment 120492 [details, diff] abuse.atan2fix.patch fixes left-going shots' incorrect angle for both player and enemies.
note that playing in high res has some curious side effects, such as the intro's scrolling text not erasing outside the (unstretched) background image, ability to see far beyond where the level designers intended, and gamma disturbances.
Are these still required/desired for abuse-0.7.1, which was just added to the tree? There are so many changes from 0.7.0 that it's difficult to tell without hand-comparing the patches.