summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
AgeCommit message (Collapse)Author
2013-01-03* Log stageups to games.logChristopher Schwarz
2013-01-03* (bug 3964) Fix votedisplaystrings printing as blank in some circumstances ↵Christopher Schwarz
(thanks Rezyn for 1/2 of this fix)
2013-01-03* Fix crashbug introduced last revision. This time I'm going to just revert ↵Christopher Schwarz
that part of 1121 instead of trying to fix what wasn't broken.
2013-01-03* Fix broken spawn queue bug introduced in r1121Christopher Schwarz
2013-01-03* Remove cvars unused after revision 1143M. Kristall
2013-01-03* Print the real, current server time at start of games.log so real times ↵Christopher Schwarz
can actually be obtained from the logs via offsetting instead of only having game times (thanks Pierre)
2013-01-03* Add Undeference's say_area commandChristopher Schwarz
* For now, the range of this is adjustable with g_sayAreaRange. This is temporary to help us to choose a range for Undeference to use when he commits this to Tremulous trunk
2013-01-03* Add SD votes (closes #11)Christopher Schwarz
* Add g_suddenDeath that can be changed back and forth (0 | 1) by console whenever. This is necessary to create the vote type. * Votes require at least g_suddenDeathVotePercent percent to pass (default 74) * Set g_suddenDeathVotePercent 0 to disable SD votes entirely * g_suddenDeathVoteDelay (default 180) controls how much delay should occur between the vote's passing and entering SD. This is designed to make it harder to pass SD votes at opportune times.
2013-01-03* Change EXEC_NOW to EXEC_APPENDM. Kristall
* Remove cvar based banning in favor of admin system
2013-01-03BP Queuing systemBen Millwood
* Remove humanBuildPointsPowered as it isn't used nor is it likely to be * Ensure that alien buildables no longer count for BP after they exploded * Don't restore the BP for a destroyed building as soon as it is destroyed - instead, add them to a global queue and restore them slowly, as determined by g_<team>BuildQueueTime * Remove G_IsOvermindBuilt in favour of level.overmindPresent which did pretty much the same thing This resolves issue #6
2013-01-03* Revert stagedowns (fixes #2)Roman Tetelman
2013-01-03* fix a race condition that causes a team to lose two stages instead of one ↵Roman Tetelman
(hopefully)
2013-01-03* fix to players spawning in 3rd person and hopefully spawn queue blockingRoman Tetelman
2013-01-03* fix stage counter AGAINRoman Tetelman
2013-01-03* stagedown logging codeRoman Tetelman
* fix to next stage counter for stage 3 teams (hopefully)
2013-01-03 * Remove extra trailing newline from admin chat commands (oops)Ben Millwood
* Rename private message, admin message functions for consistency * Cancel a reload when switching weapons, and prevent reloading a full clip * Simplify admin command formatting and in doing so prevent some compiler warnings on OS X * Fix some admin messages (s/kicked/banned/, no bans to show, can't perm ban) * Have tremulous_alien_common_hud include tremulous_common_hud since they're always used together anyway * Remove some redundant uses of va()
2013-01-03 * Use chat rather than print for adminchat server commandsBen Millwood
* Fixes to ready code: supports MAX_CLIENTS slots without relying on its value * Removing references to an apparently useless escape character in chat
2013-01-03* s/STAGE2_THRESH/STAGE_THRESH/g that i missedRoman Tetelman
* fix more configs that contain copies of them selves (Amanieu)
2013-01-03Ready code probably fixedBen Millwood
2013-01-03* make the enemy team lose a stage when you reach "stage 4"Roman Tetelman
* pleasedonthurtmenorfmademedoit
2013-01-03stagedown wip codeRoman Tetelman
2013-01-03* (bug 2980) Add g_dretchPunt setting to punt dretches out of the way of ↵Christopher Schwarz
teammates when attacked by them (tjw)
2013-01-03* Add the /a command, which sends a message to all active adminsChristopher Schwarz
* Using and receiving messages from this command is controled by the admin flag '?' * This flag is granted to levels 3, 4, 5 by default * The /a command can be parsed from in chat text, and also from the server console * New cvar g_publicAdminMessages (0|1) default: 1. Allows or disallows users without flag '?' to send messages to admins (but not receieve them).
2013-01-03* (bug 3379) !adjustban command to change reason and duration of bans (flag b)M. Kristall
* (bug 3746) Lookup table for UI commands (Ben Millwood) * and some other refactoring * Fix a couple null dereferences introduced in 1120
2013-01-03 * More testing code to fix ready stateBen Millwood
2013-01-03 * Flood protection in chat and admin commandsBen Millwood
(thanks to Phil Bordelon, Chris "Lakitu7" Schwarz, and M. Kristall)
2013-01-03 * Merge STAT_WEAPONS[2] into STAT_WEAPON and dispose of unnecessary STAT_SLOTSBen Millwood
* Testing patch to fix ready mask
2013-01-03* (bug 2965) Strip colour codes from log messages (Ben Millwood)M. Kristall
* (bug 3596) Buying a battlesuit allows player to pass through some map geometry (/dev/humancontroller) * (bug 3679) Remove redundant stage trigger checks (Chris "Lakitu7" Schwartz) * (bug 3761) selling all upgrades removes energy ammo (/dev/humancontroller) * Remove some duplicate code * !showbans did not properly show all valid bans when some bans had expired * Log renames between ClientConnect and ClientBegin
2013-01-03* Merge ioq3-r1423Tim Angus
+ IPv6 + VoIP + Stereo rendering + Other minor stuff
2013-01-03 * (bug 3679) fix for stage triggers not working properly (Chris "Lakitu7" ↵Roman Tetelman
Schwarz)
2013-01-03* (bug 3673) Add boundary checking to G_SanitiseName() and G_DecolorString()M. Kristall
* s/G_SanitiseName/G_SanitiseString/ * s/trap_Printf/trap_Print/ * Change a few occurences of MAX_STRING_CHARS to MAX_NAME_LENGTH
2013-01-03* (bug 3631) Macro safety for MIN() and MAX() (Ben Millwood)M. Kristall
* (bug 3645) Lag correction field in server info menus is always empty (Ben Millwood) * (bug 3653) stack corruption in G_SendGameStat() (/dev/humancontroller) * (bug 3662) Players who fall of the edge of the world can block the spawn queue (/dev/humancontroller) * Remove unused argument to G_ClientNumberFromString() * Remove unused variables in G_admin_setlevel() * Remove a number of superfluous va()s * Shut up erroneous warnings about uninitialized variables
2013-01-03* (bug 3629) OB1/buffer overflow (Azrael07)M. Kristall
* (bug 3290) Revert r966 and use a less hacky fix
2013-01-03Fix 0 credits to next stage in s3Ben Millwood
2013-01-03* Round thresholds server-side to save bandwidth and prevent server command ↵Ben Millwood
overflows * Downgrade weapon anim messages to a warning (because we're not really expecting any to exist) Merge bugs: * Fix human spawn menu * Protocol version 69 (oops!)
2013-01-03* add variable width to emoticons support. In addition to being aTony J. White
.tga in the /emoticons/ dir of fs_game, emoticon file names need to end with "_{WIDTH}x1.tga". For example, /emoticons/dretch_1x1.tga (square) or /emoticons/rifle_2x1.tga (double-wide)
2013-01-03* UI_Text_* emoticon drawing support (e.g. [dretch] draws Tony J. White
/emoticons/dretch.tga inline with text) * emoticons are square .tga images placed in the /emoticons dir of fs_game * emoticons should probably be 64x64 to look nice * g_emoticonsAllowedInNames (default ON) is an optional server setting to prevent players from using them in names * emoticons can be escaped by prefixing with an additional [ * cvars ui_emoticons and cg_emoticons can be set to 0 to disable drawing of emoticons in ui or cgame contexts respectively * fix color code continuation on wrapped lines * prefix all wrapped lines with a space to prevent chat shenanigans
2013-01-03* (bug 3595) /sell upgrades doesn't change player model for battlesuitM. Kristall
(Ben Millwood) * (bug 3599) adminLevel can be wrong * Reorder *Attributes_t arrays to match corresponding enums * Simplify BG_Buildable, BG_Class, BG_Weapon, and BG_Upgrade * Remove a couple unnecessary config string hacks * !unmute was saying !mute in some messages
2013-01-03* voice chat stuff (no, not like TeamSpeak)Tony J. White
2013-01-03* Replace reams of BG_Find* functions with: BG_Buildable, BG_Class, BG_Weapon,Tim Angus
BG_Upgrade * Move "overrides/*" to "configs/" and remove all the overriden data from bg_misc.c, instead requiring it to be in the cfg files * Add cfg files to source control * Clean up some naming and typing issues
2013-01-03* Merge clientSession_t::sessionTeam and clientSession_t::spectatorStateTim Angus
* Remove existing team_t (TEAM_FREE, TEAM_SPECTATOR) * s/pTeam_t/team_t/;s/buildableTeam_t/team_t/;s/WUTeam_t/team_t/ * s/pClass_t/class_t/ * s/PERS_TEAM/PERS_SPECSTATE/ * s/STAT_PTEAM/STAT_TEAM/;s/STAT_PCLASS/STAT_CLASS/
2013-01-03* (bug 3408) g_alienstage/g_humanstage dont trigger trigger_stageTim Angus
2013-01-03* Consolidate memory allocation into bg_alloc.cTim Angus
2013-01-03Credit based stagesBen Millwood
2013-01-03* Removal of now-redundant Makefile stuffBen Millwood
* Loads of whitespace fiddling to make the code closer to tremulous SVN * HUMAN_BVALUE_MODIFIER includes ALIEN_CREDITS_PER_FRAG
2013-01-03* (bug 3057) Granger breaks under certain conditions (Risujin)M. Kristall
* (bug 3256) G_admin_print to a tty should not decolour if com_ansiColor is set (Ben Millwood) * (bug 3392) Console is affected by flag @ (Chris "Lakitu7" Schwarz) * Automatically load default admin levels when g_admin is disabled, since admin commands can still be used (since r894) * Make return value of G_SelectiveRadiusDamage useful and use it for Overmind and Reactor attacks * /entitylist was skipping entity 0 * Check original search string against IP and slot number for !ban * Preserve score and ping so they are always reported correctly * Random refactoring and formatting fixes
2013-01-03* Spawn queue displays ordinals ("You are 2nd in the spawn queue")Michael Levin
* Server does not communicate the number of eggs and telenodes to all clients anymore -- the correct number of spawns is passed to the client when they are in the spawn queue only (puts PERS_UNUSED to use) Sticky and dead spectate (holy fuck that was hard for something so simple sounding): * Big thanks to Lakitu7 for passing along the patch (with contributions from TJW, Undeference, and R1CH) * UI has a new option to enable/disable sticky spectate * Spectators get to see the full dying animation * Dead players can spectate their teammates whether they are in the spawn queue or not I corrected several nasty bugs and recoded a LOT of the patch. Potentially the "spawn without a weapon" thing may have been fixed but maybe not. There are possibly other new bugs so keep an eye out for them.
2013-01-03Added armour files to version control.Michael Levin
2007-09-25* Replace "powerups" state data with "misc"Tim Angus
* Remove ps->ammo[ ] and replace with ps->ammo and ps->clips; this means only one ammo using weapon may be carried at once, but this is the case anyway * No need for BG_(Un)PackAmmoArray anymore, so remove them
2007-09-25* (bug 3307) use boundary checking to prevent potential buffer overflowM. Kristall
* (bug 2969) limit number of players to g_maxGameClients * use G_TeamCommand() for team vote messages