summaryrefslogtreecommitdiff
path: root/src/game/bg_misc.c
AgeCommit message (Collapse)Author
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 * missing eventnames and extra DEBUGNAME thingsBen Millwood
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 * Merge STAT_WEAPONS[2] into STAT_WEAPON and dispose of unnecessary STAT_SLOTSBen Millwood
* Testing patch to fix ready mask
2013-01-03* (bug 3742) BG_ParseCSVBuildableList uses wrong parse functionTim Angus
(foruses@gmail.com)
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* (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* add a new function BG_PrimaryWeapon() that returns the "primary"Tony J. White
weapon in a player's inventory * when changing classes by buying/selling bsuit, keep pers.classSelection in sync
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* Fix a couple more places where files might not be closed (bug 3554)M. Kristall
* Fix off-by-one errors and some gcc warnings
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* Merge ioq3-r1272Tim Angus
2013-01-03* First person weapon animationTim Angus
2013-01-03TweaksAsa Kravets
* Marauder (both) jump height reduced 400->380 * Barb repeat rate increased 1000->1500
2013-01-03Put MN_H_NOENERGYAMMOHERE back.Michael Levin
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* 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-03Finally figured out why players were so special in gimping the wallwalk ↵Michael Levin
code. Turns out the server sends player positions snapped to whole integers. The bandwidth-saving effects of doing this are dubious as players tend to move continuously and thus new positions will be sent out every frame anyway. The real effect of this is that the client will mispredict whenever it comes into contact with another player. Also, as part of the tinkering I removed some code from the wallwalking function that should have stayed put, I have added it back in. This commit also fixes the "jittery bouncing while sitting on top of another player" glitch.
2013-01-03* Fixed name-change color bleeding bugMichael Levin
* Hovel infopane tweak
2013-01-03Updated infopanes.Michael Levin
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-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* 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* 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-03advanced granger falling damageAsa Kravets
prfile splash dropped prifle projectile speed increased to 1200 chaingun spread reduced to 900 advanced basilisk grab time reduced to 300
2013-01-03Added armour files to version control.Michael Levin
2007-09-28* Remove infopanes stuff, and just store the strings staticallyTim Angus
* (bug 3079) Display the number of kills required in the class information pane
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* 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* 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-21* Remove lots and lots of redundant commentsTim Angus
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-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-02-25* add support for "viewheight" and "crouchViewheight" elements to theTony J. White
class overrides config file
2007-02-13* (bug 3021) allow building "on top of" existing marked buildables whenTony J. White
using g_markDeconstruct. (kevlarman)
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-07-31* Add otherEntityNum to playerState_t... and don't use it... yetTim Angus
* Improve ckit tutorial text * Entities.def correction
2006-01-18* Added BG_FindUsableForUpgradeTim Angus
* Added BG_UpgradeClassAvailable * Added generalised BG_*IsAllowed functions * Added some binding traps to cgame * Added tutorial mode (cg_tutorial)
2005-12-23* Crudely removed CD key authenticationTim Angus
* Changed defaults for r_picmip and r_textureMode * Changed internal alien weapon names * Removed playback of the intro movie * Fixed painblend reset bug * Added multiple chat sounds * Player splash wake now uses mark system
2005-12-10* s/Quake III Arena source code/Tremulous/Tim Angus
* De-quaked various bits and pieces * Integrated Tremulous into the ioq3 source * Relicensed Tremulous to be GPL * It compiles!!!!!!!!11111111!!!!1