summaryrefslogtreecommitdiff
path: root/src/hexen/g_game.c
AgeCommit message (Collapse)Author
2015-03-30Turn maxplayers into a global variableFabian Greffrath
... and decrease its value from MAXPLAYERS (i.e. 8) to 4 if (gamemode == shareware). It seems that it was hard-coded to this value until some time between the releases of the Demo and the Full version. Arrays are still declared with their full width of 8, though, they are just not iterated over the whole range anymore. This fixes playback of the IWAD demos.
2015-03-23play sound when trying to enter a forbidden map in the demo versionFabian Greffrath
2015-02-19Apparently, the Hexen font only has upper-case chcractersFabian Greffrath
2015-01-20Merge branch 'master' of https://github.com/chocolate-doom/chocolate-doom ↵Fabian Greffrath
into hexndemo
2015-01-20First shot at support for the Hexen 4-level DemoFabian Greffrath
With these changes it is possible to run the game using the HEXEN.WAD IWAD from the 4-level Demo and start a new game as one of the three player classes. Known missing bits: - The game does not yet identify itself as the demo version - The cheat codes are still unchanged - Bug compatibility, see e.g. http://dengine.net/dew/index.php?title=Libhexen
2015-01-19Add extra checks to weapon cycling loops.Simon Howard
Ensure that the loops to find the next weapon always terminate - even if there are somehow no weapons equipped. Also, only ever do weapon cycling when in the GS_LEVEL gamestate. This fixes #503 - thanks to Fabian and raithe on Doomworld.
2014-05-05Clean up file headers.Simon Howard
This change rewrites and simplifies the copyright headers at the top of all source files: * Remove "Emacs style mode select" line; this line was included in the headers for the originally released source files and appears to be to set the file type for old versions of Emacs. I'm not sure entirely why it was required but I don't think it is any more. * Remove "You should have received a copy of..." text from copyright header. This refers to the old 59 Temple Place address where the FSF headquarters used to be located and is no longer correct. Rather than change to the new address, just remove the paragraph as it is superfluous anyway. This fixes #311. * Remove ---- separator lines so that the file headers are barer and more simplified.
2014-04-29hexen: Fix joystick strafe left/right buttons.Simon Howard
Hexen was missing the code to handle the strafe left/right buttons.
2014-04-19joystick: Add an axis to allow strafing.Simon Howard
Modern gamepads typically have 2-3 D-pads and joysticks. This means that it's desirable to be able to use one joystick for turning and another for strafing. Add another axis in addition to the current X and y axes that performs strafe movement.
2014-03-29heretic: Eliminate use of unsafe string functions.Simon Howard
Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives.
2014-03-24Fix various Clang compiler warnings.Simon Howard
2014-03-23heretic/hexen: Fix -timedemo.Simon Howard
The -timedemo flag is broken in Vanilla Heretic/Hexen, as not all fields are read from the demo headers. Fix it, as there's no utility in having it nonfunctional and plenty of utility in having it functional. This fixes #300.
2014-03-17Allow for PNG screenshots.Fabian Greffrath
2014-03-16heretic/hexen: Fix pause key remapping.Simon Howard
Heretic and Hexen had the pause key hard-coded to KEY_PAUSE when they should actually use key_pause so that they can be remapped by the user. Thanks to Fabian Greffrath for the bug report (fixes #337).
2014-03-13Allow to rebind artifact keys in Hexen.Fabian Greffrath
2013-12-23heretic, hexen: Fix mouse (and joystick) weapon cycling.svdijk
Implement this the same way it is implemented for doom and strife.
2013-09-21Fix mouse "use" button in Heretic (thanks mooseman2).Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2678
2011-10-29Enable gcc warning to detect redundant declarations, and clean upSimon Howard
instances of this within the code (thanks Edward-san). Subversion-branch: /branches/v2-branch Subversion-revision: 2468
2011-10-19Oops.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2443
2011-10-19Change MAXPLAYERS to NET_MAXPLAYERS and add back individual MAXPLAYERSSimon Howard
defines for each game. Refactor "waiting screen" data code. Subversion-branch: /branches/v2-branch Subversion-revision: 2441
2011-10-17Fix Hexen multiplayer spy key rebinding.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2437
2011-10-15Add weapon cycling keys for Hexen.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2431
2011-10-15Revert previous change to angle constants and apply a more specific fix.Simon Howard
Changing the angle constants to unsigned causes other problems to occur. Subversion-branch: /branches/v2-branch Subversion-revision: 2429
2011-10-14Convert Hexen to use common main loop code. Working multiplayer!Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2423
2011-09-25Fix special1/special2 values in Hexen code so that they can properlySimon Howard
hold pointer values. Subversion-branch: /branches/v2-branch Subversion-revision: 2407
2011-09-24Add -testcontrols to Hexen.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2398
2009-06-10Make Hexen weapon and map keys reconfigurable.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1587
2009-03-09Remove WATCOMC usage (thanks Quasar)Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1453
2008-12-01Remove 'uint' type.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1397
2008-11-02Fix up raven-branch copyright notices.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1375
2008-10-30Factor out Heretic and Hexen versions of m_misc.c. Make -file forSimon Howard
Heretic and Hexen use WAD path lookup. Subversion-branch: /branches/raven-branch Subversion-revision: 1368
2008-10-12Fix autorun hack for Hexen.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1355
2008-10-09Replace Z_ChangeTag/Z_Free usage with W_ReleaseLump*Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1346
2008-10-08Switch configuration file code to common configuration file code, andSimon Howard
remove old code. Subversion-branch: /branches/raven-branch Subversion-revision: 1338
2008-10-03Remove calls to Logitech Cyberman code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1331
2008-10-02Split out high-level sound code from hexen/i_ibm.c and refactor to useSimon Howard
common interface. Subversion-branch: /branches/raven-branch Subversion-revision: 1324
2008-10-01Remove Hexen duplicate KEY_ definitions.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1317
2008-10-01Use common versions of ticcmd_t and event_t for Hexen code. Remove oldSimon Howard
i_video definitions and use common i_video.c interface. Subversion-branch: /branches/raven-branch Subversion-revision: 1312
2008-10-01Merge Hexen fixed_t and angle definitions to common code, plus byteSimon Howard
swapping macros, bounding box checking, read/write file, screenshot and command line argument code. Update Heretic code to use ANG1_X rather than the new (correct) ANG1 definition. Subversion-branch: /branches/raven-branch Subversion-revision: 1311
2008-09-05Reformat (beautify) Raven sources and add GPL headers.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1197
2008-09-04Add GPLed Heretic/Hexen source.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1195