Permalink
Browse files

Added a README.

Added the HUD font drawing code.  now stubs2.cpp is no longer needed.
  • Loading branch information...
Steven Fuller
Steven Fuller committed Aug 15, 2001
1 parent ae9cfcb commit ae5a0e12f5fd49205e74fa8af6a07c23f523277b
Showing with 703 additions and 248 deletions.
  1. +4 −5 Makefile
  2. +55 −0 README
  3. +0 −2 TODO
  4. BIN fontbr.pgm
  5. +258 −0 src/aafont.h
  6. +7 −82 src/avp/psndproj.c
  7. +13 −13 src/avp/support/indexfnt.cpp
  8. +2 −5 src/avp/support/indexfnt.hpp
  9. +5 −0 src/avp/win95/frontend/avp_menugfx.hpp
  10. +11 −6 src/main.c
  11. +345 −7 src/opengl.c
  12. +3 −21 src/stubs.c
  13. +0 −107 src/stubs2.cpp
View
@@ -10,15 +10,14 @@ LDLIBS += -L/usr/X11R6/lib -lX11 -lXext -lGL `sdl-config --libs` -lopenal -lm
AFLAGS = -g -Iinclude/ -w+macro-params -w+orphan-labels -w+number-overflow
-ROOT = main.c mathline.c math.asm net.c render.c opengl.c openal.c winapi.c stubs.c stubs2.cpp afont.c frustum.c kshape.c map.c maths.c md5.c mem3dc.c mem3dcpp.cpp module.c morph.c object.c shpanim.c sphere.c tables.c vdb.c version.c
-AVP = ai_sight.c avpview.c bh_agun.c bh_ais.c bh_alien.c bh_binsw.c bh_cable.c bh_corpse.c bh_deathvol.c bh_debri.c bh_dummy.c bh_fan.c bh_far.c bh_fhug.c bh_gener.c bh_ldoor.c bh_lift.c bh_light.c bh_lnksw.c bh_ltfx.c bh_marin.c bh_mission.c bh_near.c bh_pargen.c bh_plachier.c bh_plift.c bh_pred.c bh_queen.c bh_rubberduck.c bh_selfdest.c bh_snds.c bh_spcl.c bh_swdor.c bh_track.c bh_types.c bh_videoscreen.c bh_waypt.c bh_weap.c bh_xeno.c bonusabilities.c cconvars.cpp cdtrackselection.cpp cheatmodes.c comp_map.c comp_shp.c consolelog.cpp davehook.cpp deaths.c decal.c detaillevels.c dynamics.c dynblock.c equipmnt.c equiputl.cpp extents.c game.c game_statistics.c gamecmds.cpp gameflow.c gamevars.cpp hmodel.c hud.c inventry.c language.c lighting.c load_shp.c los.c maps.c mempool.c messagehistory.c missions.cpp movement.c paintball.c particle.c pfarlocs.c pheromon.c player.c pmove.c psnd.c psndproj.c pvisible.c savegame.c scream.cpp secstats.c sfx.c stratdef.c targeting.c track.c triggers.c weapons.c
+ROOT = main.c mathline.c math.asm net.c render.c opengl.c openal.c winapi.c stubs.c frustum.c kshape.c map.c maths.c md5.c mem3dc.c mem3dcpp.cpp module.c morph.c object.c shpanim.c sphere.c tables.c vdb.c version.c
+AVP = ai_sight.c avpview.c bh_agun.c bh_ais.c bh_alien.c bh_binsw.c bh_cable.c bh_corpse.c bh_deathvol.c bh_debri.c bh_dummy.c bh_fan.c bh_far.c bh_fhug.c bh_gener.c bh_ldoor.c bh_lift.c bh_light.c bh_lnksw.c bh_ltfx.c bh_marin.c bh_mission.c bh_near.c bh_pargen.c bh_plachier.c bh_plift.c bh_pred.c bh_queen.c bh_rubberduck.c bh_selfdest.c bh_snds.c bh_spcl.c bh_swdor.c bh_track.c bh_types.c bh_videoscreen.c bh_waypt.c bh_weap.c bh_xeno.c bonusabilities.c cconvars.cpp cdtrackselection.cpp cheatmodes.c comp_map.c comp_shp.c consolelog.cpp davehook.cpp deaths.c decal.c detaillevels.c dynamics.c dynblock.c equipmnt.c equiputl.cpp extents.c game.c game_statistics.c gamecmds.cpp gamevars.cpp hmodel.c hud.c inventry.c language.c lighting.c load_shp.c los.c maps.c mempool.c messagehistory.c missions.cpp movement.c paintball.c particle.c pfarlocs.c pheromon.c player.c pmove.c psnd.c psndproj.c pvisible.c savegame.c scream.cpp secstats.c sfx.c stratdef.c targeting.c track.c triggers.c weapons.c
SHAPES = cube.c
-SUPPORT = consbind.cpp consbtch.cpp coordstr.cpp daemon.cpp r2base.cpp r2pos666.cpp reflist.cpp refobj.cpp scstring.cpp strtab.cpp strutil.c trig666.cpp wrapstr.cpp
-AVPWIN95 = avpchunk.cpp cheat.c chtcodes.cpp d3d_hud.cpp ddplat.cpp endianio.c ffread.cpp ffstdio.cpp gammacontrol.cpp gflwplat.c hierplace.cpp iofocus.cpp jsndsup.cpp kzsort.c langplat.c modcmds.cpp npcsetup.cpp objsetup.cpp pathchnk.cpp platsup.c pldghost.c progress_bar.cpp projload.cpp scrshot.cpp strachnk.cpp system.c usr_io.c vision.c
+SUPPORT = consbind.cpp consbtch.cpp coordstr.cpp daemon.cpp indexfnt.cpp r2base.cpp r2pos666.cpp reflist.cpp refobj.cpp scstring.cpp strtab.cpp strutil.c trig666.cpp wrapstr.cpp
+AVPWIN95 = avpchunk.cpp cheat.c chtcodes.cpp d3d_hud.cpp ddplat.cpp endianio.c ffread.cpp ffstdio.cpp gammacontrol.cpp hierplace.cpp iofocus.cpp jsndsup.cpp kzsort.c langplat.c modcmds.cpp npcsetup.cpp objsetup.cpp pathchnk.cpp platsup.c pldghost.c progress_bar.cpp projload.cpp scrshot.cpp strachnk.cpp system.c usr_io.c vision.c
FRONTEND = avp_envinfo.c avp_intro.cpp avp_menudata.c
GADGETS = ahudgadg.cpp conscmnd.cpp conssym.cpp consvar.cpp gadget.cpp hudgadg.cpp rootgadg.cpp t_ingadg.cpp teletype.cpp textexp.cpp textin.cpp trepgadg.cpp
WIN95 = animchnk.cpp animobs.cpp awtexld.cpp awbmpld.cpp awiffld.cpp awpnmld.cpp bmpnames.cpp chnkload.cpp chnktexi.cpp chnktype.cpp chunk.cpp chunkpal.cpp db.c debuglog.cpp dummyobjectchunk.cpp enumchnk.cpp enumsch.cpp envchunk.cpp fail.c fragchnk.cpp gsprchnk.cpp hierchnk.cpp huffman.cpp iff.cpp iff_ilbm.cpp ilbm_ext.cpp io.c list_tem.cpp ltchunk.cpp media.cpp mishchnk.cpp obchunk.cpp oechunk.cpp our_mem.c plat_shp.c plspecfn.c shpchunk.cpp sndchunk.cpp sprchunk.cpp string.cpp texio.c toolchnk.cpp txioctrl.cpp wpchunk.cpp zsp.cpp
-# awbmpld.cpp awiffld.cpp awpnmld.cpp awtexld.cpp
# the following should really be autogenerated...
View
55 README
@@ -0,0 +1,55 @@
+Aliens vs Predator Linux http://icculus.org/avp/
+------------------------
+
+This is an unofficial Linux port of the Fox Interactive / Rebellion
+Developments game, Aliens Verses Predator.
+
+The port is currently under development; it is not yet "suitable for
+end users." Hopefully this status will change in the not-so-distant future.
+
+
+
+
+
+
+
+Obviously this README is totally incomplete, and will probably remain so for
+quite a while, so I'll just try to list a few important notes.
+
+
+The original copyright statement for the source code:
+"The source code to Aliens Vs Predator is copyright (c) 1999-2000 Rebellion
+ and is provided as is with no warranty for its suitability for use. You may
+ not use this source code in full or in part for commercial purposes. Any use
+ must include a clearly visible credit to Rebellion as the creators and
+ owners, and reiteration of this license."
+Take that as you will.
+You can find the original source code and other related tools at:
+http://www.avpnews.com/mods/tools/
+
+
+The source code that was released only works with Aliens vs Predator Gold.
+In the future I'd like this port to support Gold, Regular and the three
+demos. Plus, I am told that the Regular edition does seem to work by
+renaming a file or two.
+
+
+At least with the Gold edition, a number of files are encoded on the CD. So
+you would need to install the game in Windows (VMware works also) in order
+to get this to work. Currently wine does not work because it fails the CD
+Check.
+
+
+The full motion sequences cannot be played because they are encoded with
+proprietary codecs (Bink and Smacker). But I do not think they will be
+greatly missed.
+
+
+More information about the game and the series can be found at
+http://www.avpnews.com.
+
+
+Last, but surely not least:
+Thanks go out to Chuck Mason for testing and the OpenAL code, Dan Olson for
+trying the code out with the Regular version, and Ryan C. Gordon for hosting
+this project.
View
2 TODO
@@ -1,4 +1,2 @@
* Debug, verify, and reimplant the inline functions in mathline.c to
inline.h
-
-
View
Binary file not shown.
View
@@ -0,0 +1,258 @@
+char AAFontWidths[256] = {
+ 0, /* 0 */
+ 0, /* 1 */
+ 0, /* 2 */
+ 0, /* 3 */
+ 0, /* 4 */
+ 0, /* 5 */
+ 0, /* 6 */
+ 0, /* 7 */
+ 0, /* 8 */
+ 0, /* 9 */
+ 0, /* 10 */
+ 0, /* 11 */
+ 0, /* 12 */
+ 0, /* 13 */
+ 0, /* 14 */
+ 0, /* 15 */
+ 0, /* 16 */
+ 0, /* 17 */
+ 0, /* 18 */
+ 0, /* 19 */
+ 0, /* 20 */
+ 0, /* 21 */
+ 0, /* 22 */
+ 0, /* 23 */
+ 0, /* 24 */
+ 0, /* 25 */
+ 0, /* 26 */
+ 0, /* 27 */
+ 0, /* 28 */
+ 0, /* 29 */
+ 0, /* 30 */
+ 0, /* 31 */
+ 3, /* 32 */
+ 2, /* 33 */
+ 2, /* 34 */
+ 6, /* 35 */
+ 6, /* 36 */
+ 9, /* 37 */
+ 7, /* 38 */
+ 2, /* 39 */
+ 4, /* 40 */
+ 4, /* 41 */
+ 3, /* 42 */
+ 6, /* 43 */
+ 2, /* 44 */
+ 3, /* 45 */
+ 3, /* 46 */
+ 3, /* 47 */
+ 6, /* 48 */
+ 4, /* 49 */
+ 6, /* 50 */
+ 6, /* 51 */
+ 6, /* 52 */
+ 6, /* 53 */
+ 6, /* 54 */
+ 6, /* 55 */
+ 6, /* 56 */
+ 6, /* 57 */
+ 2, /* 58 */
+ 2, /* 59 */
+ 6, /* 60 */
+ 2, /* 61 */
+ 6, /* 62 */
+ 6, /* 63 */
+ 10, /* 64 */
+ 8, /* 65 */
+ 7, /* 66 */
+ 7, /* 67 */
+ 7, /* 68 */
+ 6, /* 69 */
+ 6, /* 70 */
+ 8, /* 71 */
+ 7, /* 72 */
+ 3, /* 73 */
+ 5, /* 74 */
+ 7, /* 75 */
+ 3, /* 76 */
+ 8, /* 77 */
+ 7, /* 78 */
+ 8, /* 79 */
+ 7, /* 80 */
+ 8, /* 81 */
+ 7, /* 82 */
+ 7, /* 83 */
+ 6, /* 84 */
+ 7, /* 85 */
+ 7, /* 86 */
+ 10, /* 87 */
+ 7, /* 88 */
+ 7, /* 89 */
+ 6, /* 90 */
+ 4, /* 91 */
+ 3, /* 92 */
+ 3, /* 93 */
+ 5, /* 94 */
+ 7, /* 95 */
+ 4, /* 96 */
+ 6, /* 97 */
+ 6, /* 98 */
+ 6, /* 99 */
+ 6, /* 100 */
+ 6, /* 101 */
+ 4, /* 102 */
+ 6, /* 103 */
+ 6, /* 104 */
+ 3, /* 105 */
+ 4, /* 106 */
+ 6, /* 107 */
+ 3, /* 108 */
+ 9, /* 109 */
+ 6, /* 110 */
+ 6, /* 111 */
+ 6, /* 112 */
+ 6, /* 113 */
+ 3, /* 114 */
+ 6, /* 115 */
+ 3, /* 116 */
+ 6, /* 117 */
+ 6, /* 118 */
+ 8, /* 119 */
+ 5, /* 120 */
+ 6, /* 121 */
+ 5, /* 122 */
+ 4, /* 123 */
+ 2, /* 124 */
+ 4, /* 125 */
+ 6, /* 126 */
+ 2, /* 127 */
+ 2, /* 128 */
+ 2, /* 129 */
+ 2, /* 130 */
+ 5, /* 131 */
+ 2, /* 132 */
+ 2, /* 133 */
+ 2, /* 134 */
+ 2, /* 135 */
+ 6, /* 136 */
+ 13, /* 137 */
+ 15, /* 138 */
+ 12, /* 139 */
+ 15, /* 140 */
+ 16, /* 141 */
+ 15, /* 142 */
+ 14, /* 143 */
+ 2, /* 144 */
+ 2, /* 145 */
+ 2, /* 146 */
+ 2, /* 147 */
+ 2, /* 148 */
+ 2, /* 149 */
+ 2, /* 150 */
+ 15, /* 151 */
+ 14, /* 152 */
+ 9, /* 153 */
+ 11, /* 154 */
+ 16, /* 155 */
+ 14, /* 156 */
+ 15, /* 157 */
+ 15, /* 158 */
+ 2, /* 159 */
+ 2, /* 160 */
+ 2, /* 161 */
+ 6, /* 162 */
+ 6, /* 163 */
+ 6, /* 164 */
+ 7, /* 165 */
+ 2, /* 166 */
+ 2, /* 167 */
+ 6, /* 168 */
+ 8, /* 169 */
+ 4, /* 170 */
+ 7, /* 171 */
+ 2, /* 172 */
+ 2, /* 173 */
+ 8, /* 174 */
+ 2, /* 175 */
+ 13, /* 176 */
+ 15, /* 177 */
+ 13, /* 178 */
+ 2, /* 179 */
+ 5, /* 180 */
+ 2, /* 181 */
+ 2, /* 182 */
+ 2, /* 183 */
+ 2, /* 184 */
+ 2, /* 185 */
+ 4, /* 186 */
+ 7, /* 187 */
+ 8, /* 188 */
+ 8, /* 189 */
+ 2, /* 190 */
+ 7, /* 191 */
+ 8, /* 192 */
+ 8, /* 193 */
+ 8, /* 194 */
+ 2, /* 195 */
+ 8, /* 196 */
+ 8, /* 197 */
+ 10, /* 198 */
+ 7, /* 199 */
+ 6, /* 200 */
+ 6, /* 201 */
+ 6, /* 202 */
+ 6, /* 203 */
+ 3, /* 204 */
+ 3, /* 205 */
+ 4, /* 206 */
+ 4, /* 207 */
+ 7, /* 208 */
+ 7, /* 209 */
+ 8, /* 210 */
+ 8, /* 211 */
+ 8, /* 212 */
+ 8, /* 213 */
+ 8, /* 214 */
+ 2, /* 215 */
+ 8, /* 216 */
+ 7, /* 217 */
+ 7, /* 218 */
+ 7, /* 219 */
+ 7, /* 220 */
+ 7, /* 221 */
+ 2, /* 222 */
+ 6, /* 223 */
+ 6, /* 224 */
+ 6, /* 225 */
+ 6, /* 226 */
+ 2, /* 227 */
+ 6, /* 228 */
+ 6, /* 229 */
+ 10, /* 230 */
+ 6, /* 231 */
+ 6, /* 232 */
+ 6, /* 233 */
+ 6, /* 234 */
+ 6, /* 235 */
+ 3, /* 236 */
+ 4, /* 237 */
+ 4, /* 238 */
+ 4, /* 239 */
+ 6, /* 240 */
+ 6, /* 241 */
+ 6, /* 242 */
+ 6, /* 243 */
+ 6, /* 244 */
+ 6, /* 245 */
+ 6, /* 246 */
+ 2, /* 247 */
+ 8, /* 248 */
+ 6, /* 249 */
+ 6, /* 250 */
+ 6, /* 251 */
+ 6, /* 252 */
+ 6, /* 253 */
+ 2, /* 254 */
+ 0 /* 255 */
+};
Oops, something went wrong.

0 comments on commit ae5a0e1

Please sign in to comment.