summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
AgeCommit message (Collapse)Author
2013-01-03* (bug 3640) Don't close all client menus upon death because it annoys the ↵Christopher Schwarz
crap out of people for no good reason
2013-01-03* (bug 4298) Fix decon messages, add build messagesChristopher Schwarz
- Fix decon messages/logging to work when g_friendlyBuildableFire=0 (Rezyn) - Add messages/logging of building, including what was replaced (Rezyn)
2013-01-03* Fix adding to the build timer when deconstructing with g_markdeconstruct 0 ↵Christopher Schwarz
(thanks Rezyn) * Fix *not* adding to the build timer when marking things for deconstruction with g_markdeconstruct>0 (thanks Rezyn) * Fix /destroy not working with g_friendlyBuildableFire 0
2013-01-03* (bug 3391) FF Cvar cleanupChristopher Schwarz
- Remove g_humanFriendlyFire and g_alienFriendlyFire - Remove the cvar "ff" and just use g_friendlyFire and g_friendlyBuildableFire
2013-01-03* (bug 3345) Cap knockback damage from falling, so that humans no longer ↵Christopher Schwarz
'bounce' from large falls
2013-01-03* Fix ordinals in spawn queue to not display 21th, 22th, 23th etc.M. Kristall
* Try to be nice to log parsers
2013-01-03* Fix various fuck-ups introduced during the mergeTim Angus
+ Re-add error case when parsing damage scripts + Reinstate G_CountSpawns + Add missing call to PM_StartTorsoAnim + staticise G_IsCreepHere
2013-01-03* bring back camper creditsRoman Tetelman
- they are now awarded regardless of deaths - use a cvar (g_freeKillPeriod) instead of a #define as the interval
2013-01-03* Restructure G_WideTrace a bitTim Angus
* Fix a load of 1.f style floats to 1.0f
2013-01-03* Various changes resulting from sanity checking against mgdev HEADTim Angus
2013-01-03* Remove some redundant code introduced at some point during the mergeTim Angus
2013-01-03* score from buildable killes *= 2Christopher Schwarz
* score /= 5
2013-01-03* Scoreboard revamp as per issue 31Christopher Schwarz
- Builder credits are still to-do, but we decided to see how the rest of the numbers work before adding that into the mix
2013-01-03* Make dead cam follow the killer's movements instead of just looking at ↵Christopher Schwarz
where they were at time of death.
2013-01-03Smooth regenerationBen Millwood
A regen rate of 4 hp/s now means you regenerate one health point every quarter of a second (fixes #28)
2013-01-03* Oops, forgot to fix the indenting on the previous commitChristopher Schwarz
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* s/MOD_UNKNOWN/MOD_DECONSTRUCT/Roman Tetelman
* remove unused constant
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* players dying to structures no longer give full credit towards stagesRoman Tetelman
* credit for damage done is reset when a player/structure heals to full
2013-01-03* (bug 3658) flashing battlesuit in dying animationM. Kristall
* (bug 3685) Second barricade pain animation never gets played * (bug 3690) Suicides aren't cancelled when leaving/switching teams * (bug 3700) weird effects when following a dying player
2013-01-03* (bug 3631) Macro safety for MIN() and MAX() (Ben Millwood)M. Kristall
* (bug 3645) Lag correction field in server info menus is always empty (Ben Millwood) * (bug 3653) stack corruption in G_SendGameStat() (/dev/humancontroller) * (bug 3662) Players who fall of the edge of the world can block the spawn queue (/dev/humancontroller) * Remove unused argument to G_ClientNumberFromString() * Remove unused variables in G_admin_setlevel() * Remove a number of superfluous va()s * Shut up erroneous warnings about uninitialized variables
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* cg_printDuplicate changed to cg_noPrintDuplicate (i.e.now defaults to 1.1 ↵Ben Millwood
behaviour) * only award partial credits for incomplete buildables
2013-01-03Credit based stagesBen Millwood
2013-01-03* Removal of now-redundant Makefile stuffBen Millwood
* Loads of whitespace fiddling to make the code closer to tremulous SVN * HUMAN_BVALUE_MODIFIER includes ALIEN_CREDITS_PER_FRAG
2013-01-03* (bug 3057) Granger breaks under certain conditions (Risujin)M. Kristall
* (bug 3256) G_admin_print to a tty should not decolour if com_ansiColor is set (Ben Millwood) * (bug 3392) Console is affected by flag @ (Chris "Lakitu7" Schwarz) * Automatically load default admin levels when g_admin is disabled, since admin commands can still be used (since r894) * Make return value of G_SelectiveRadiusDamage useful and use it for Overmind and Reactor attacks * /entitylist was skipping entity 0 * Check original search string against IP and slot number for !ban * Preserve score and ping so they are always reported correctly * Random refactoring and formatting fixes
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* 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-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-03Shut up compiler warnings (and possible bugfix)Ben Millwood
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-03Point damage modifiers were not being detected correctly because hit angles ↵Michael Levin
were not normalized. Should fix Battlesuit/Helmet insta-kill bugs.
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* Damage regions are no longer included in non-locational damage Michael Levin
calculations * Light armour angles reverted to 100/80/100/80 * Norfenstein's balance changes for Dretch HP which got lost before somehow
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-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* 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-06-12* ClientCommand() rewriteM. Kristall
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-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.
2006-12-04* (bug 2934) shut up new warning message on obituary event when killed by worldTony J. White
2006-10-24* (bug 2849) reverted something I added in changeset 815 that turned outTony J. White
not to be necessary.
2006-09-05Bug 2849Tony J. White
* adds g_admin flag '3' which allows the admin/level to always keep cred/evo when switching teams. * adds !lock and !unlock g_admin commands for locking teams. (enable with 'K' flag) * setting an admin's level to 0 immediately free's up that admin's name from the name protection system (g_adminNameProtect) * don't give kills/creds to a spectator in follow mode ('3' flag exposed this)
2006-04-22* Do not increase team kills when team killing (from tjw)Tim Angus