summaryrefslogtreecommitdiff
path: root/src/cgame
AgeCommit message (Collapse)Author
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-03Add tutorial text support for sprint/dodgeBen Millwood
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-03Some more work on the Mass Driver:Michael Levin
* Fixed a bug in SnapVectorTowards which would snap incorrectly if the point was below the world origin. Also added an analogous function to work with normals (SnapVectorNormal). * Added weapon.cfg to source control to set alwaysImpact (to show flash along with blood spurt when hitting a player). * The maximum number of hits allowed moved to tremulous.h, set MDRIVER_MAX_HITS. * Since a the visual effects changed, removed old massDriverFire() function and toggle switch.
2013-01-03* I'm sick of entering \give 9999 every time I need to test something. ↵Michael Levin
Whenever cheats are enabled, players spawn with half-full credits. * Reactor used to deal more damage to each Alien when multiple Aliens attacked it, fixed to ONE radius damage call. Extensive visual modifications to Mass Driver: * Added a short, briefly-displayed pseudo-trail * Impact system modified to have a large impact sprite and otherwise be more consistent with Lasgun * Added several files for the trail and shader * Firing code modified to generate visually correct trails and impact positions * Added a new event for Mass Driver trails, doubles as impact event to save bandwidth The Mass Driver trail extends from the gun rather than the muzzle to be more visually realistic. Shooting it from the muzzle prevents you from even seeing the trail and in 3rd person looks very wrong. The downside to the shifted origin is that the impact positions (multiple hits only) are not aligned with the beam. Had to add a good bit of complicated, mathy code to generate impact events in visually accurate locations. Looks damn good though.
2013-01-03Added armour files to version control.Michael Levin
2007-11-27* Remove lots of Q3/Team Arena related code from the UI moduleTim Angus
* (bug 3424) Add "noscrollbar" listbox widget property
2007-11-08* Merge and move text paint functions into ui_shared.cTim Angus
* Add aspectBias to indicate alignment on non-4:3 video modes * Add "reset <item>" script command to reset an item * Compensate for aspect ratio in lots and lots and lots of places * Release edit field focus when tabbing away * Fix infinite loop bug in text wrapping code when rect is very narrow * Mung .menu scripts to line things up correctly on non-4:3 ratios
2007-11-02* s/ui_loading/ui_hideCursor/Tim Angus
* Hide cursor when using edit fields and binding keys * Remove client side chat handling, moving it to UI module * Remove target and last attacker message modes * Add ui_developer cvar * Fix edit field bug where cvar changes under it * Add onTextEntry UI script event * Give the user some feedback when binding keys * Stop doing a UI refresh when primed (and remove cgame ui_loading sets) * Move cg_drawSnapshot to bottom of the screen
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-03* (bug 3373) Missing colour sanitisation on attackerName (Josh ↵Tim Angus
<jkeyes05@gmail.com>)
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-10-01* Fix to bug where crouching and moving wouldn't replenish staminaTim Angus
* s/MASK_PLAYERSOLID & ~CONTENTS_BODY/MASK_DEADSOLID/ * When finding a player in the server browser, only list each server once
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-26* (bug 3305) Remove inappropriate SnapVectorTim Angus
* Don't display creep over a certain height
2007-09-25* Remove B_REMOVED_TOGGLEBIT, use ps->misc per player insteadTim Angus
* Fix last spawn and uniqueness tests for marked deconstruction * Fix buildable collision tests for non-marked deconstruction * New g_markDeconstruct settings to guard against abuse + 0 off + 1 on, no replacements allowed + 2 on, replacements allowed of same type + 3 on, any replacements allowed * Unlink then relink all buildables when doing build tests * Fixes to tutorial text for marked deconstruction * Remove unused "weaponswitch" client command
2007-09-25* Remove more powerups stuffTim Angus
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-24* Highlight marked buildables that will be removed by building a newTim Angus
buildable
2007-09-23* Revert 898 and 899 (marked buildable replacement) and rewriteTim Angus
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-21* Remove lots and lots of redundant commentsTim Angus
2007-09-16* && != &Tim Angus
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-04-14* cg_bounceParticles 0 now takes the extra step of culling particles thatTony J. White
enter solids.
2007-04-12* cg_drawCrosshair now has 3 settings:Tony J. White
0 - always off 1 - for long range weapons only (1.1.0 behaviour and also the new default) 2 - always on (if the weapon.cfg has one defined of course) * cg_drawCrosshair 0 no longer prevents crosshair names from drawing * added cg_drawCrosshair configuration in the ingame Options -> Game menu
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-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-22* Fixes to some GCC 4 warningsTim Angus
2007-03-21* clearer fix for particle system crashTony J. White
2007-03-21* prevent a crash when the particle system fills upTony J. White
2007-03-21* new 2D status bars for buildingsTony J. White
* spawns never show the ¨no power¨ icon since they don't need reactor/overmind * alien buildings that require the overmind to function will now show the "no power¨ icon when the overmind is down
2007-03-20* calling teamvotes would often cause strange client behaviour. CommonTony J. White
symptoms I've seen are: incorrect stage notifications drawing the wrong number of available build points broken plant models on niveus Surprisingly, there was no open bug report for this that I could find.
2007-03-02* (bug 3043) adds cg_bounceParticles which defaults to 0 on all but theTony J. White
highest built-in graphic setting. When set to 0, particles don't use bounce off anything and therefore their movement doesn't require trace calls. This gives a significant frame rate boost in many situations.
2007-02-25* (bug 2658) windfly.wav and jumppad.wav removed from target_push andTony J. White
trigger_push * (bug 2658) added spawnflags 2 to misc_anim_model which will spawn the entitiy with the animation OFF * (bug 2658) if the "animations" loopFrames (param 3) of misc_anim_model is 0, then the animation will not loop, but it will make one pass through the animation each time the entity is used
2006-12-30* (bug 2692) Stage report now shown when not spawnedTim Angus
2006-12-30* (bug 2960) Pain indication no longer displayed during intermissionTim Angus
* (bug 2858) Wrong collision mask allowing bad spawns * Adv Granger spit now slows players as it was always supposed to
2006-12-29* (bug 2935) Creep penetrating surfaces it shouldn'tTim Angus
2006-12-29* (bug 2828) Removal of hack for scaled up knockback on teslagenTim Angus
* (bug 2959) All looping sounds now stopped when downloading * (bug 2910) Removal of legacy Q3 cg_teamChat* stuff
2006-12-29* (bug 2926) Tesla range reduced to sphere, instead of cubeTim Angus
(Christophe Cavalaria <chris.cavalaria@free.fr>) * (bug 2786) Cleanup of error message display (Martin Doucha) * (bug 2787) Scroll-wheel support in list widgets (rasz)
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-29* Clean up serverinfoTim Angus
2006-12-27* Hovel tutorial textTim Angus
2006-12-27* (bug 2937) fixed crash from cg_projectileNudge patch when using vm_cgame 0Tony J. White
2006-12-20* (bug 2773) improved weapon/upgrade selection in human HUD (Dustin Howett)Tony J. White
2006-12-13* (bug 2944) cg_drawClock addedTony J. White
2006-12-09* (bug 2937) adds cg_projectileNudge. This is originally from Neil Toronto'sTony J. White
unlagged project. kevlarman added automatic latency detection so the nudge time doesn't have to be set manually. Defaults to 1 (on).
2006-11-17* Yet more TA: removalsTim Angus
2006-11-17* Removed some more TA:sTim Angus
2006-11-16* Removed some //TA:sTim Angus