summaryrefslogtreecommitdiff
path: root/src/game/bg_public.h
AgeCommit message (Collapse)Author
2013-01-03Remove repeater overlap prevention codeBen Millwood
2013-01-03Reduce redundancy in Cmd_Build_fBen Millwood
2013-01-03Zone BP updates, and a minor bug fixBen Millwood
* Add g_humanRepeaterAllowOverlap defaulting to 1 * Add a build error message when building a repeater would cause a power zone to overlap * Lower DC range from 10,000 -> 1,000 * Repeaters will suicide if they are *inside* of another power zone * Unpowered buildables no longer take away BP from the main reactor zone * Repeaters will only power the BP that can be built from them * Repeaters can now be moved * Don't set s.misc anymore since BP is calculated server-side * Fix G_IsDCCBuilt( ) so that it can return true even if a DC is built farther than DC_RANGE units from position 0, 0, 0
2013-01-03Zone BPBen Millwood
2013-01-03* Replace BG_(Un)PackZapTargets with more generic and less muddled ↵Tim Angus
BG_(Un)PackEntityNumbers
2013-01-03* Use the MN_ system for team lock and player limit messagesTim Angus
2013-01-03* Various changes resulting from sanity checking against mgdev HEADTim Angus
2013-01-03* make zap damage instantRoman Tetelman
2013-01-03* make zap display targets beyond 3 and general zap cleanupRoman Tetelman
* Remove version determining code from makefile since it has to walk 300 revisions every compile and produces incorrect results anyway
2013-01-03* Remove unused references to bankBen Millwood
* Remove cg_drawStatus as it's pretty much unused, too
2013-01-03* New zap (fixes #40)Roman Tetelman
FIXME: currently limited to 3 targets due to netcode restrictions FIXME: this code could probably use some general cleanup as well
2013-01-03Improvements, fixes, and cleanups to smooth regenBen Millwood
* Store player class regeneration rates as floats * Only calculate regen modifier once if replenishing multiple health points simultaneously
2013-01-03* redo hovel removal in a way that doesn't break log parsers (reported by msk)Roman Tetelman
2013-01-03* remove hovel (fixes #26) (todo: go back and actually remove the code)Roman Tetelman
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* 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* 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* CG_PLAYER_LOCATION now determined by the clientRoman Tetelman
* add trap_R_inPVS to cg_local.h/cg_syscalls.asm
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* 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* 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* Consolidate memory allocation into bg_alloc.cTim Angus
2013-01-03* Fix stupid 1st person animation copy and paste bugTim Angus
* Add animation policies for marauder * Remove reference to shotgun_hand.md3
2013-01-03* First person weapon animationTim Angus
2013-01-03Removed STAT_UNUSED, because it is.Ben Millwood
2013-01-03New build error and corresponding menu for attempted deconstruction of the ↵Ben Millwood
last spawn
2013-01-03Put MN_H_NOENERGYAMMOHERE back.Michael Levin
2013-01-03* Buildable health accuracy increased to 8 bits, flags moved to eFlags (EF_B_*)Michael Levin
* Fixed Tesla Generator not firing over turrets or missing small aliens entirely -- it now shoots from the top of its bounding box to the top of its target's bounding box * Dying, evolving, or changing teams properly resets the weapon Flame thrower changes: * Reverted flame thrower missile radius to 15 * Muzzle is offset for flame thrower to shoot from the hand
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* Lucifer cannon projectile a little bigger with chargeMichael Levin
* Sitting on a booster won't make it blink the warning bolt (SS_BOOSTEDWARNING), also made the warning fade * Lucifer Cannon repeat rates fixed * G_Damage() wont deal damage to dead entities * Maybe fixed the buildable killed with shotgun won't show dying anim bug * Attacked hives won't attack back when the OM is dead * The monstrous hive bounding boxes shrunk to something reasonable * Tesla Generator muzzle offset to the ball part, now fires over turrets * HUDs can make vertical charge bars * Human charge bar no longer overlaps scanner * "There are no spawns remaining" Changes to trample attack: * No longer deals locational damage (wtf?) * Charge "holding" restored * Hit repeat rate limited to 50 ms Changes to health cross icons: * Inspired by Techhead, made new icons (sorry, yours didn't look so good in game :-\ ) * Icons fade from one to another * Switched SS_HEALING_2X and SS_HEALING_ACTIVE meaning for Humans -- glows when on medi station, special icon for medkit * Poisoned icon for humans (Techhead's idea)
2013-01-03* Adding cg_disable(Upgrade|Build|Command)Dialogs to give greater control ↵Ben Millwood
over what messages are suppressed * Also made another print into an MN_ that I happened to be passing at the time
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* 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* Build delay pie slices are now 5 sec each for both teamsMichael Levin
* Removed individual weapon build delay * Removed Advanced Construction Kit, everything is built by the normal kit * S2+ buildables cannot be built by regular grangers * Clicking to pick team during spectator mode fixed * New cvar: cg_printDuplicate, when set to 0 (default) prevents duplicate messages from being printed to screen (they still show up in console) * Pressing ESC while editing a UI item (esp. new Say menu) will not cause your cursor to disappear next time you open a menu
2013-01-03Server logs look weird with MOD_SUICIDE listed as method of death for ↵Michael Levin
buildable deconstruction. Added two new MODs, MOD_DECONSTRUCT and MOD_NOCREEP for more descriptive reasons.
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* Norfenstein's increased Dretch attack repeatMichael Levin
Scaled back the gameplay implications of the recent wallwalking changes a bit: * Wallwalking players will not get knocked off walls by knockback forces * Cannot shove enemies again * Shoving will still knock wallwalkers off of you * Getting shoved off of someone while toggle wallwalking will not disable your WW
2013-01-03* Shut up some compiler warnings (but not all of them)Ben Millwood
* Move ClientCommand error messages to menu system * cg_disableWarningDialogs 2 == no messages at all * decide clientside what kind of dialog to use and merge some redundant menus as a result * add spec dialog (pretty much identical to human/alien dialogs)
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* Started updating infopanes with Badger, need to do moreMichael Levin
* Fixed a bug where regular Basilisk would not heal faster by a booster sometimes (found thanks to new GUI indicator!) * Un-reverted Lucifer Cannon sound heard by others, with Norf's blessing * Added a Help menu listing mod changes and other stuff (ESC -> Help), edit ui/help.txt * Human HUD item list will now wrap around so that it never hides items, also made it a little wider GUI cross changes: * Human GUI health cross glows when medkit is active * Alien GUI health cross glows when on creep * Double, triple healing rates show as multiple crosses
2013-01-03* Pulse Rifle has a small impact "particle system" to show impact flashMichael Levin
Lucifer Cannon aesthetic changes: * Secondary fire has a blaster-like trail and impact flash * Primary fire missile sprite and impact particles scale their size with charge strength * Other players can hear Humans overcharge
2013-01-03Another bugfix, Lucifer Cannon won't start charging again after an overcharge.Michael Levin
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!