summaryrefslogtreecommitdiff
path: root/src/game/g_local.h
AgeCommit message (Collapse)Author
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* (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 * Flood protection in chat and admin commandsBen Millwood
(thanks to Phil Bordelon, Chris "Lakitu7" Schwarz, and M. Kristall)
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* add cg_unlagged to allow clients to disable backward reconcilliation for ↵Roman Tetelman
their own attacks only
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-03Don't use some missiles' bounding boxes for colliding with the mapBen Millwood
2013-01-03 * Experimental fix for the colour wrapping failBen Millwood
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* 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* Remove some unused state structures from gameTim Angus
* Remove some unused (mainly baseq3) cgame cvars
2013-01-03* voice chat stuff (no, not like TeamSpeak)Tony J. White
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* Consolidate memory allocation into bg_alloc.cTim Angus
2013-01-03Credit based stagesBen Millwood
2013-01-03* (bug 3554) Make sure opened files get closed properly -- for real this timeM. Kristall
* (bug 3446) Allow the last spawn to be deconstructed when cheats are enabled and g_markDeconstruct is not (Ben Millwood) * (bug 3560) PTRC can be used while the original client is connected * remove unused functions from src/game/g_ptr.c
2013-01-03New build error and corresponding menu for attempted deconstruction of the ↵Ben Millwood
last spawn
2013-01-03* Lucifer Cannon projectile and bounding box shrunk a little to fit muzzle ↵Michael Levin
box restrictions * Buying a weapon with a number greater than 15 while having a Construction Kit will not give you zero ammo * Human viewheight shrunk to prevent flamer and new Lucifer Cannon shots from exploding inside the ceiling because on account of the muzzle box -- better aligned with the model now too. This should prevent the flamer from burning people in vents. * Some BG functions made more efficient; BG_GetPlayerWeapon should be used to get a Human's weapon because it may be switching * Adv. Dragoon barbs regenerate 10 seconds after being shot, not at regular intervals * Build weapons should no longer need to be in a block in bg_public.h * Tremulous doesn't use multiple weapons but the G_GiveClientMaxAmmo function will properly restore regular ammunition when a energy weapon is selected * MN_H_NOENERGYAMMOHERE obsolete; Changed some text to acknowledge that energy ammo is now available at armoury * Particles can set 'physicsRadius #' to use a fixed bounding box for collisions * Various HUD elements will immediately update to the new weapon when switching weapons Flamer changes: * Bounding box shrunk slightly * Client-side particles now used a static bounding box that matches the server projectile
2013-01-03* Humans hit with Basilisk gas now show a particle effect until it wears offMichael Levin
* Basilisk gas view bob effect now properly accounts for shorter time due to protection * SS_POISONCLOUDED moved to EF_POISONCLOUDED (which used to be EF_TALK for chat balloons) * Added a userinfo cvar cg_alwaysSprint which, when enabled, makes humans sprint all the time (PS_ALWAYSSPRINT) * Power bolt on the Human HUD glows when sprinting (not very visible though)
2013-01-03* Gave Painsaw a crappy looking crosshairMichael Levin
* Change turret behavior again to make them even dumber (will not stay "spun up" anymore or retarget without spinning up again) * DCC will not complain about an attack when something is deconstructed * Fixed "\sell upgrades" command emptying energy weapons when a battery pack was sold with it * Spectators moving to lock view points now set teleport bit, hopefully prevents the ugly lerping Hive changes: * Will not fire unless the missile can actually hit * Will fire from the hive tip rather than the center * Fixed broken code that made hive fire when shot from out of hive range
2013-01-03* Added charge meter to the UI, can be disabled via GUIMichael Levin
* Trample and Lucifer Cannon charging reworked and moved to PMove * Can no longer "cancel" a charging Lucifer Cannon * STAT_MISC2 is now unused, booster and charge information can be inferred elsewhere (STAT_UNUSED) * Trying to fire an empty weapon makes a clicking noise (also a bugfix, apparently the server would spam EV_NOAMMO which did nothing but is now used for the clicking noise -- audible to all players) * Created an alternate, muffled Lucifer Cannon warning noise for other people's Lucifer Cannons * Fixed bug which prevented players from switching to a different player while spectating someone in the spawn queue * Spectators are now properly moved to the lock view position when spectating a player in the spawn queue
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-03* Reworked the dialog code a bit, removed some redundanciesMichael Levin
* Commented out the CMD_* dialog long messages -- probably never accessed from the GUI! * Converted some more prints into MN_* messages * Introduced a two-argument 'servermenu' to pass arguments to CG_Menu() -- menus can refer to classes etc now * Converted UI 'Disable Warning Dialogs' to a multi-item ('no', 'print to console', 'yes') * Removed some unused dialogs
2013-01-03* Removed unused G_CrushAttack argumentMichael Levin
Alien wallwalking changes: * Can wallwalk on buildables and players * Will cancel when hit with knockback from a shove or splash from a weapon * bg_pmove.c has a viewangles "correction" removed that would screw up the view when wallwalking on top of a player -- I don't know why this "correction" was added, if you find wallwalking bugs later this may be the cause Shove function changes: * Will shove enemy players (pretty weakly in practice) * Will not shove if you aren't trying to move * Can shove wallwalking players (a wallwalking dretch could block Tyrants before!)
2013-01-03 * Renamed some enum stuff to be more descriptiveBen Millwood
* Fiddled with Cmd_Build_f so some (more) build errors will give a red blueprint
2013-01-03* Removed forced crouching for Tyrant crush, Tyrants should no longer bounce ↵Michael Levin
off of players * Added a new cvar, cg_hudFilesEnable, set to "1" to enable your custom HUD -- this is a temporary workaround to custom HUD incompatibility!
2013-01-03* Mass Driver will only shoot through players and buildablesMichael Levin
* Killing buildables nets a reward (tweak in tremulous.h) * Removed some spurious comments and unused defines from tremulous.h
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-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-02* Merge of ioq3-r1189Tim Angus
+ Fix bug that prevented key up events getting to cgame/ui when not in game + Use Key_[GS]etCatcher everywhere to set keycatcher + Clear all key states when the catcher changes * Slim down client userinfo somewhat * Remove some redundant client autocomplete commands * Actually make use of "menuStack" in the UI module + No longer close all menus when exiting one, instead reverting to the next one on the stack + Cleanup the menu activation functions a little * Truncate text in list columns if it exceeds the column width * Remove maxChars field from columns member of ITEM_TYPE_LISTBOX * Revert r992 due to more general and less buggy/hacky fix from ioq3
2007-09-27* (bug 3249) Improve repeater interaction with marked deconstructionTim Angus
* (bug 3321) Allow medkits and medistats to operate simultaneously * (bug 3310) Fix odd CalcMuzzlePoint implementation * Random refactoring of g_buildable.c * Add BG_GetClientNormal
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-23* (bug 2756) s/damage/dmg/Tim Angus
* (bug 2717) Move respawning for ClientThink to ClientEndFrame * Remove redundant cvar g_forcerespawn
2007-09-16* (bug 3246) votes don't account for players leaving the gameM. Kristall
2007-06-12* ClientCommand() rewriteM. Kristall
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 2970) fix player counting in relation to team and voting eligibilityTony J. White
(M. Kristall)
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-16* (bug 2989) my last "stfu overmind" patch did just the opposite whenTony J. White
timelimit was infinite. Now it's tracked properly with level.overmindMuted instead of using the time hack.
2006-12-29* (bug 2973) support for multiple initial base layouts ( Risujin, vcxzet, tjw )Tony J. White
2006-12-29* Move marked deconstruction variables into level_locals_tTim Angus
* Rename FinishSpawningBuildable
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-09* (bug 2903) Added g_unlagged. This is based on Neil Toronto's unlaggedTony J. White
project. Thanks to kevlarman and WolfWings for help with this implementation for Tremulous.