summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
AgeCommit message (Collapse)Author
2013-01-03* Oops, Repeater now gives Repeater reward creditsMichael Levin
* Reloading a weapon and switching to blaster will not cause it to be "reloaded" * Removed "team change free" flag, all clients keep credits when changing teams * Human and Alien credits properly converted when switching teams (based on max) * Cannot open both say prompts at the same time anymore
2013-01-03* Per Lakitu7's suggestion, changed spectator bounding box to match the ↵Michael Levin
dretch bounding box. Prevents spectators from getting stuck in the floor. * Buildables round their health up when encoding health information for transmission, no more 0 hp buildables that aren't dead * Removed the devmap credits hack I put in earlier * Can now use \itemact weapon to switch to weapon, also \itemact weapon/blaster will not repeatedly force a weapon change if that weapon is already selected * Options menu entry for "Sprint" changed to "Sprint / Dodge" with correct bind (+button6) Norfenstein decided to switch to fractional "frags" (aka evos) for Aliens: * BG_ClassCanEvolveFromTo rewritten to be more robust in case classes are shuffled around later * CG_AtHighestClass and BG_UpgradeClassAvailable merged into BG_AlienCanEvolve * Changed BG_GetValueOfHuman to BG_GetValueOfPlayer which now accomodates Aliens too * Aliens now must receive 400 credits per frag point (9 evos = 3600 credits!) * Aliens can only spend whole points * TK/Suicide penalties moved to tremulous.h and converted to credit values * Complex nasty Alien land goes bye-bye
2013-01-03* Acid tube animation fixed (used to include part of dying animation!)Michael Levin
* Acid tube splash damage (from exploding) separated from attack damage, new variable added to tremulous.h to control that and the animation * Class X not allowed at stage # fixed to show the right stage number * Whether or not the mass driver will shoot through objects can be toggled from tremulous.h, don't forget to save g_weapons.c or 'make clean' to get the change compiled!
2013-01-03* Menus_CloseAll() now takes one argument -- force. This argument determines ↵Michael Levin
whether to close all menus or ignore menus that don't respond to CloseAll (via the new dontCloseAll MENU_TRUE attribute). * ui_messagemode2222 and the like won't activate the teamsay menu * Say menu will no longer close when the player dies
2013-01-03* MAX()/MIN() macros need to be wrapped in parenthesis to work as Michael Levin
expected! * Armour and local damage processing merged * Armour and local damage scripts now accept a "name" parameter for debug output * Norfenstein's non-locational damage formula now perfectly implemented -- there are restrictions! There can only be ONE layer of armour and all locational damage region files must cover the entire body and cannot overlap! * Turning on g_debugDamage to 2 or 3 provides additional information on how the damage modifier was calculated
2013-01-03* Dodge no longer drains stamina while flying with a jetpackMichael Levin
* Stamina will replenish when moving whith jetpack on * Damage region calculation code rewrite to be correct and compact * Added damage test function (cheats only), \damage [damage] * Norfenstein's balance tweaks: Dretch HP 25 -> 20, Basilisk grab time reduced
2013-01-03Added armour files to version control.Michael Levin
2007-11-14* (bug 3417) Fix getting stuck while evolving in some situationsTim Angus
(thebenmachine@googlemail.com)
2007-11-02* rename the remaining variables i missed in r1029M. Kristall
2007-11-02* prevent kick votes from targetting the wrong person in some casesM. Kristall
2007-10-30* (bug 3384) Remove server side armoury refresh and replace with UI sideTim Angus
refresh * Add trap_Key_SetOverstrikeMode and trap_Key_GetOverstrikeMode to cgame * Change Text_[Width|Height] to return floats * Add Text_Em[Width|Height] * Add CG_AlignText to cut down on code duplication * Add itemDef_t::textvalignment for vertical text alignment * Add UI_DrawTextBlock to replace a lot of duplicate code * Rewrite text wrapping code from scratch so that it actually works * Add UI_OwnerDrawText * Add expression evaluator to .menu parser * Split off Border_Paint from Window_Paint * Scale slider items to fit their rect * Rework edit field widgets to behave somewhat more correctly * Fix a few listbox widget layout issues * Don't display scrollbars in "notselectable" listbox widgets * Make scoreboard team labels ownerdrawn * Menu script rework + Use the expression evaluator to replace lots and lots of absolute coords with relative ones, hopefully easing future maintenance + Remove lots and lots of textalign[xy] that were present to work around broken text alignment routines + Replace a bunch of numeric constants with ones from menudef.h + Compose the huds from tremulous_common_hud.h + Generally neaten things up + Lots of whitespace fixes
2007-10-04* Revert fix to bug 3282 since it's no longer necessaryTim Angus
2007-09-26* Allow unique buildables to be replaced by non-unique buildablesTim Angus
* Explicitly disallow the overmind/reactor to be replaced by other buildables * Some whitespace fixes
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* match players that are not completely connectedM. Kristall
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
2007-09-22* (bug 3309) Fix to angle clamping (/dev/humancontroller)Tim Angus
* (bug 3298) Boosters still heal and give poison when dead (David Severwright) * (bug 3070) Check map rotation targets exist during compilation * (bug 3282) Add missing terminating ^7 to chatText (Ben Millwood) * (bug 3357) Extend obituary name length to MAX_NAME_LENGTH (Rocinante)
2007-09-16* (bug 2783) Rework lcannon firing logicTim Angus
* Remove STAT_BOOSTEDTIME, instead inferring it via SS_BOOSTED * Set EF_TELEPORT_BIT when buying or selling the bsuit
2007-09-16oopsM. Kristall
2007-09-16* (bug 3246) votes don't account for players leaving the gameM. Kristall
2007-07-16* (bug 3047) send team commands to spectating admins who can see team chatM. Kristall
* remove some more redundant checks and fix some command flags * fix a number of spelling misteaks in messages * show denybuild indicator in !listplayers
2007-06-29* fix a silly issue in !passvote and !cancelvote that could potentially haveM. Kristall
undesired effects * correct some copy-paste action in my last commit
2007-06-29* check if a target was specified for votes that require one (was choosing theM. Kristall
player at slot 0) * remove some unnecessary code
2007-06-28* list map as an allowed vote typeM. Kristall
2007-06-13oops, fix an issue with my last commit that could crash a serverM. Kristall
2007-06-12* ClientCommand() rewriteM. Kristall
2007-06-04(bug 2970) fix number of connected player counting and count non-spectatorsM. Kristall
properly (bug 3201) fix a bug where admins following other players can't see team chat
2007-05-22* (bug 3093) if g_privateMessages is disabled, continue to parseTony J. White
/m and /mt out of say messages but print a warning to the client instead of blurting it out as a not-so-private message. (Chris Schwarz)
2007-04-27* (bug 2958) new function G_LeaveTeam() takes care of cancelling out a player'sTony J. White
active missles, poision, and spectators following him when he switches teams. (M. Kristall)
2007-04-25* (bug 3088) stop some checking on playerState_t in determining voteTony J. White
elegibility and removal of redundant checks (M. Kristall)
2007-04-25* (bug 3075) supar /give command (M. Kristall)Tony J. White
2007-04-25* (bug 2971) fix g_teamForceBalance for /team auto (M. Kristall)Tony J. White
2007-04-09* ugh... fixed G_RoomForClassChange() again. Needed to use ent->s.originTony J. White
instead of ent->s.pos.trBase so the un-snapped origin was used in collision tracing
2007-04-03* correctly test for space required when changing class (broke it in myTony J. White
last commit)
2007-04-03* PCL_HUMAN_BSUIT is now a full fledged player class now. This means that theTony J. White
overrides/classes/human_bsuit.cfg file can set all the goodies such as viewHeight and bounding box size. Also, bsuit corpses work now. * added MN_A_TEAMCHANGEBUILDTIMER, MN_H_TEAMCHANGEBUILDTIMER, MN_A_EVOLVEBUILDTIMER, and MN_H_ARMOURYBUILDTIMER for the error dialogs you get when trying to do something that's not allowed with an active build timer. * added MN_H_NOARMOURYHERE and MN_H_NOENERGYAMMOHERE error dialogs for trying to buy/sell when not near the necessary buildables. * added MN_H_NOROOMBSUITON and MN_H_NOROOMBSUITOFF error dialogs for when there is no room to change class between PCL_HUMAN and PCL_HUMAN_BSUIT * removed an unused variable from my recent big ui commit
2007-03-26* (bug 3071) fixed new teamvote typos and stopped using ps.stats[ STAT_PTEAM ]Tony J. White
for consistency
2007-03-25* ingame menus redesignedTony J. White
* spectators can now participate in non-team votes * added teamvote "admitdefeat" * replaced "nextmap" vote with "draw" * removed vote "clientkick" vote (uses "kick" instead) * removed teamvote "teamclientkick" (uses "kick" instead) * renamed teamvote "teamkick" to teamvote "kick" * added teamvote "denybuild" and "allowbuild" * added vote "mute" and "unmute" * added !denybuild and !allowbuild g_admin commands * added /ignore and /unignore commands (and menu support) * Game -> Info (formerly About) shows server settings instead of local ones * Voting keys can now be configured in the Options menu * Voting key binds now display with the vote status (F3 and F4 will be the eventual default binds for "teamvote yes" and "teamvote no" respectively)
2007-03-24* Minor efficiency/readability improvement to g_chatTeamPrefix codeTim Angus
2007-03-22* Fixes to some GCC 4 warningsTim Angus
2007-03-03* (bug 2971) improved g_teamForceBalance checking (M. Kristall)Tony J. White
2007-03-03* (bug 2924) fix check for spectator following another spectator (M. Kristall)Tony J. White
2007-03-02* (bug 2965) remove color codes from G_LogPrintf() strings (M. Kristall)Tony J. White
2007-01-03* (bug 2996) better support for using "!" commands when g_admin isTony J. White
disabled. * (bug 2973) account for the *BUILTIN* layout in the count returned by G_LayoutList() * !readconfig now clears all g_admin data properly even if there is an error reading or no g_admin data file is defined
2006-12-31* (bug 2954) g_admin commands can not be used from the server console evenTony J. White
if g_admin is not set to a file. This allows the !kick and !ban commands to work for the current game even if there is no g_admin data file. Updated vote cmds to always use !ban instead of clientkick.
2006-12-29* (bug 2973) support for multiple initial base layouts ( Risujin, vcxzet, tjw )Tony J. White
2006-12-29* Buildable destruction marking (via g_markDeconstruct)Tim Angus
* It's now impossible to destroy the last spawn * Start of a new client side buildable status display
2006-12-12* (bug 2954) when g_admin is enabled use !ban [ip] instead of !kick [slot]Tony J. White
on vote kicks. this is to deal with people disconnecting before the vote ends to avoid the temp ban and prevents an innocent from grabbing the slot only to be kicked when the vote ends. * fix duration parsing for the g_admin !ban command when time is in seconds
2006-12-12* (bug 2924) /follow cmd now accepts partial name match and improvedTony J. White
error messages. (M. Kristall)
2006-12-11* (bug 2812) limit team joining to once per client per second to preventTony J. White
cmd overflow by malicious clients
2006-12-09* (bug 2869) trap_FS_FOpenFile() returns 0 if the file doesn't exist (not -1)Tony J. White
when using mode FS_READ