summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
AgeCommit message (Collapse)Author
2013-01-03/give funds should accept non-integral argumentsBen Millwood
woo one line commit woo
2013-01-03* Prevent spectating a player while alive (thanks Byron Johnson)Christopher Schwarz
2013-01-03* Restructure G_WideTrace a bitTim Angus
* Fix a load of 1.f style floats to 1.0f
2013-01-03* Use the MN_ system for team lock and player limit messagesTim Angus
2013-01-03* s/G_TriggerMenu2/G_TriggerMenuArgs/Tim Angus
* s/ALIEN_CREDITS_PER_FRAG/ALIEN_CREDITS_PER_KILL/
2013-01-03* Various changes resulting from sanity checking against mgdev HEADTim Angus
2013-01-03* Move some code aroundM. Kristall
* When g_specChat = 0, send global messages by spectators to other spectators * Eliminate g_listEntity. Use entityList instead * Stop seeding the rng all the time
2013-01-03* (bug 4037) cgame forgets to close buildstat.cfgM. Kristall
* Admin searches now list all matches * !listadmins now properly handles negative numbers * "!ban: too many bans" errors were sometimes wrong * A bit of refactoring * Add %s support to sscanf
2013-01-03* (bug 3990) Allow voting for next map (with thanks to Critux)Christopher Schwarz
* small updates to the surrounding /callvote code
2013-01-03* Fix semicolon I forgot during the previous commitChristopher Schwarz
* (bug 3997) Add g_specChat to silence chatty spectators during matches
2013-01-03* (bug 2803) Tighten some spelling/grammar/typos in various places (Phil ↵Christopher Schwarz
Bordelon, Ben Millwood)
2013-01-03* Silence compiler warnings from r1160Christopher Schwarz
* Fix improper behavior of console chat command * Fix console say/chat/say_team commands not being logged * Add teamPrefix to log/console print of say_team messages * Minor cleanups to chat logging code
2013-01-03* (bug 3295) Make callvote/callteamvote return the list of partial matches ↵Christopher Schwarz
when multiple player names match the target name string
2013-01-03* (bug 3408) Slightly reorder alien evolution failure reasons (David ↵Christopher Schwarz
Severwright)
2013-01-03* (bug 3476) Log callvote/callteamvote to games.log and print ↵Christopher Schwarz
votedisplaystring in client console message
2013-01-03* Fix /give funds being broken by the fractional alien credits refactorChristopher Schwarz
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* redo hovel removal in a way that doesn't break log parsers (reported by msk)Roman Tetelman
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* Bring back g_maxGameClients (thanks kevlarman)M. Kristall
2013-01-03* remove hovel (fixes #26) (todo: go back and actually remove the code)Roman Tetelman
2013-01-03* it's no longer possible to callteamvote admitdefeat after having passedRoman Tetelman
said vote (fixes #15)
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* Don't play EV_FALL_FAR sound if deadBen Millwood
* Merging some fixes from mgdev, courtesy of Michael "Risujin" Levin: - Ensure SnapVector always snaps downwards, rather than always towards 0 - Don't send score information that won't be displayed - /give poison as a human poisons rather than boosting * Remove some trailing whitespace * Remove some useless intermediate variables in cg_draw.c * Ammo/clips/build timer display depends on primary weapon rather than equipped - (this also fixes bug 3837)
2013-01-03* Fix out of bounds errorM. Kristall
2013-01-03* Remove another pointless va()M. Kristall
* g_adminNameProtect is now properly disabled when 0 * Do not remove admins with negative levels (if any such levels exist) * Fix admin level name alignment in !listplayers and !listadmins * Fix some !showbans regressions + !showbans -1 was showing the last two bans + !showbans -1 was not working with only 1 ban * Fix a ptr error message
2013-01-03* Fix compiler warning about G_FindOvermindBen Millwood
* Random fixes/rearrangements in deconstruct and PM_Weapon * Merge tremulous r1137 - noclipping specs - other noclip stuff - fix ammo check - maprotation fixes - no taunting when dead - code-level crap
2013-01-03* Allow boosters to give poison within the first 30 seconds of the gameBen Millwood
* Allow /noclip and /where to be used by spectators * Allow /noclip and /setviewpos to be used by specs even when cheats are off * Run PM_Weapon and set view height while noclipping * Make player speed while spectating or noclipping configurable via cg_flySpeed * Remove requirement for cgame's cvartable to have a non-null vmCvar pointer * Make PM_Paralyzed a macro and add a similar category, PM_Live * Stop dretches from biting dead buildings
2013-01-03* Remove SS_INFESTING and PM_SPINTERMISSION since they were not usedBen Millwood
* Merge SS_WALLCLIMBINGCEILING and EF_WALLCLIMBCEILING * Remove ui_emoticons, using the value of cg_emoticons for both contexts. * Add PM_Paralyzed() to get rid of all the silly >= PM_DEAD comparisons * Don't allow players to taunt while dead * Fix full ammo check in reload (oops) * Fiddle with bg_lib.h _MAX/_MIN defines, fix min(), add [u]intX_t typedefs * Remove non-functional cgame command (thanks Amanieu for spotting)
2013-01-03 * Add BG_EventName and use it to simplify a series of debugging messagesBen Millwood
* Correct crouch check in ClientTimerActions * Ensure animation togglebit on buildables is only used once per frame (bug 3377) * Make G_FloodLimited more robust and with a pointlessly informative return value * Add a brief comment to the G_SayArg* functions to explain their purpose, which wasn't at all clear to me until I experimented with them * Remove more redundant va()s * Remove an unused variable and associated functions that were causing a compiler warning
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 * Fix spectator occasionally displaying crosshairsBen Millwood
* Fix reference to function not defined in .sos
2013-01-03* Handle some broken admin.dat files the same as beforeM. Kristall
* Make G_TeamName BG_TeamName and use it in cgame for team change messages * Don't use an event for team change notification since clients already know
2013-01-03* Add functions G_TeamName and G_TeamFromStringM. Kristall
* Log team changes whenever a team change occurs (not just when using /team) * Do not allow admins without ADMF_CAN_PERM_BAN (flag 8) to remove or modify permanent bans
2013-01-03* Added improved team join messages (original patch thanks to peoro)Christopher Schwarz
* Uses a proper events-system message interpreted by cgame * Includes notification of leaving teams instead of just joining them * These messages are also now logged to games.log and the server console * Minor cleanups of cmd_team_f * /team human*, /team alien*, and /team spec* now join those teams, since those are specific enough and people seemed to have a difficult time figuring out /team spectate
2013-01-03* Fix a buffer overflow introduced in revision 1121M. Kristall
* Admin parsing stuff: * Report the (theoretically) correct line number in parse error messages * Prevent an overflow in [command] section (levels) * Try to make the code flow a little better * !readconfig errors all get sent to console
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* s/MOD_UNKNOWN/MOD_DECONSTRUCT/Roman Tetelman
* remove unused constant
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 * 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* revert part of r77 to allow clients to keep their creditsRoman Tetelman
* put back clientPersistant_t.savedCredits
2013-01-03* (bug 3719) IP address fields in admin system are not large enough for IPv6M. Kristall
(Amanieu) * Prevent the host player on a non-dedicated server from being disconnected
2013-01-03Un-merge bits of svn because they interfere with stickypsec (oops)Ben Millwood
2013-01-03* (bug 3690) Suicides aren't cancelled when leaving/switching teams (oops)M. Kristall
2013-01-03* (bug 3658) flashing battlesuit in dying animationM. Kristall
* (bug 3685) Second barricade pain animation never gets played * (bug 3690) Suicides aren't cancelled when leaving/switching teams * (bug 3700) weird effects when following a dying player
2013-01-03 * Adjust the error text for no BP based on markdeconstructBen Millwood
* Re-order some buy messages to be more useful
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