summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
AgeCommit message (Collapse)Author
2017-03-09allow players to spawn at any origin (without spawn buildables); pull the ↵/dev/humancontroller
triggers of buildables when players spawn from them fix up the use of pointers in ClientSpawn()
2017-03-09constize the input-only parameters of a bunch of functions/dev/humancontroller
2017-03-09always use ent->clipmask as pm->tracemask; move special casing to setting ↵/dev/humancontroller
ent->clipmask in ClientSpawn()
2017-03-09synchronize ent->health with ent->client->ps.stats[STAT_HEALTH]/dev/humancontroller
when healing, keep the health untouched if the health is already above the "maximum"
2017-03-09try to synchronize ent->r.currentAngles with ent->client->ps.viewangles a bit/dev/humancontroller
2017-03-09drop the use of the origin and angles fields of entityState_t in the game module/dev/humancontroller
clear the r.currentAngles field for brushmodel-related entities using the ''angle'' spawn var
2017-03-09remove some '\n's from strings passed to error calls/dev/humancontroller
2017-03-09never pass a NULL ent to G_UseTargets()/dev/humancontroller
2017-03-09implement the range marker functionality, use it to create buildable range ↵/dev/humancontroller
markers use the entity 64-bit client-masking extension when available
2017-03-09fix noclipping players affecting other players/dev/humancontroller
notably, other players were able to stand on the "center" of a noclipped player set an r.contents value of 0 for noclipping clients, backing up the r.contents value in the new ent->client->cliprcontents field
2017-03-09improve the usability of noclip, notarget, give and godmode:/dev/humancontroller
- godmode protects against everything (except suicides via the kill command) - godmode can also be toggled when dead or spectating - noclip, notarget, and godmode retain their status until explicitly toggled (except when outside of devmode, or when reconnecting), notably, they are not turned off when switching teams or suiciding - funds can be given also when dead - noclipping players do not activate any triggers - map geometry does not interfere with noclipping players when it comes to changing classes
2017-03-09refactor stuff/dev/humancontroller
2017-03-09remove some redundant statements/dev/humancontroller
2017-03-09never set groundEntityNum to -1, use ENTITYNUM_NONE instead/dev/humancontroller
2017-03-09always spawn corpses where the model coincides with the ending state of the ↵/dev/humancontroller
death animation
2017-03-09do not treat a clipmask of 0 as MASK_DEADSOLID in some cases/dev/humancontroller
remove the clipmask == 0 special cases from G_TestEntityPosition() and G_Physics(). when spawning corpses, set their clipmask to MASK_DEADSOLID instead of 0.
2017-03-09allow duplicate GUIDs/dev/humancontroller
2013-02-16Update copyright noticesTim Angus
2013-01-03* Simplify some weapon-related code (re r1431)M. Kristall
2013-01-03* Smarter way to check if teamoverlay info should be sent; don't send upgradeM. Kristall
field for aliens
2013-01-03* Remove some unused spawn functionsBen Millwood
* Put static in g_client.c where appropriate
2013-01-03* Stop bad array indices in spawn point selection, by removing the arrays ↵Ben Millwood
entirely * Merge duplicated code in G_Select{Alien,Human}SpawnPoint into a single G_SelectSpawnBuildable function * Don't initialise some distance variables unnecessarily
2013-01-03* Fix a bug causing duplicate entries in namelogM. Kristall
2013-01-03* (bug 4694) Reallow black in names, map it to inverse in com_ansicolorChristopher Schwarz
2013-01-03* (bug 3495) Add support for message censorship (cue "finally!")M. Kristall
2013-01-03* Fix a 'spawn is NULL' error by disallowing ClientBegin on allreadyJohn Ellis
connected players.
2013-01-03* Fix losing credits when player is already over the cap by selling equipment.John Ellis
2013-01-03* Fix admin /rename by not decrementing namelog->nameChanges, insteadJohn Ellis
add a forceName variable to ClientUserinfoChanged so that admin renames do not have ill-effects on player nameChange count, and players can be renamed while muted. * Make /rename print an error when attempting to rename a connecting player.
2013-01-03* Under certain circumstances, already "disconnected" clients can disconnectM. Kristall
2013-01-03* (bug 4582) Another bad userinfo fixChristopher Schwarz
2013-01-03* Fix handling of invalid userinfoChristopher Schwarz
2013-01-03* Prevent people from reconnecting so they can call more votesM. Kristall
* Remove a few unused variables and an unused function
2013-01-03* Generate "player renamed to ..." messages client-sideM. Kristall
2013-01-03* Prevent reparsing IP addresses for subnet bansM. Kristall
2013-01-03* Revert buggy part of revision 1968M. Kristall
2013-01-03* namelog was not showing name changes when the user's initial name was invalidM. Kristall
2013-01-03* Fix a couple bugs from revision 1966 including a crasherM. Kristall
2013-01-03* Separate namelog from adminM. Kristall
* Client to namelog mapping * Merge mute, denybuild, ptr in namelog; remove ptr
2013-01-03* Refactor emoticon codeM. Kristall
* Remove some redundant code * Make an error non-fatal * Formatting fixes
2013-01-03* Renamed MAX_STAMINA to STAMINA_MAX and moved to tremulous.hAsa Kravets
2013-01-03* Add a EndVote: line to games.log for showing vote results (Rezyn)Christopher Schwarz
* Add additional coloured versions of client names to games.log in ClientConnect and ClientRename lines for use by Tremstats et. al. (Rezyn)
2013-01-03* Fix votes failing when they shouldn't (Rezyn)Christopher Schwarz
* Fix INACTIVITY flag (Rezyn) * Fix being able to call a teamvote for someone not on your team (thanks Rezyn) * Fix IMMUNITY flag (Rezyn) * Fix there being 2 instances of g_dretchpunt in the cvar table (Rezyn)
2013-01-03* Update copyright noticesTim Angus
2013-01-03* Server- and client-side tab completion for commands handled by the game moduleM. Kristall
* Admin commands are just like all other commands now: no more ! ("!map" was renamed to "changemap" since "map" already exists) * Text in the chat ui beginning with / or \ is treated as a command unless ui_chatCommands = 0 (default 1)
2013-01-03* Stamina changes/fixes (kevlarman)Christopher Schwarz
- Restore blacking out when you run out of stamina - Add cg_sprintToggle, allowing the sprint button to act as a toggle between always-sprinting or not - Walk overrides sprint, by popular demand - Modify the stamina "bolt" to better differentiate between states - Allow one to begin a sprint when stamina is negative (even though it is generally a bad idea for them, at least their button presses do something!) * When avilable, use predictedplayerstate for cg_drawSpeed to reduce latency (kevlarman)
2013-01-03* (bug 4310) Rework admin.logChristopher Schwarz
- Remove admin.log and fold its information into games.log because its information is rarely useful without the context that games.log brings - Don't show guid/flags in AdminCmd: log items. Show registered name instead. - Add an AdminAuth: log item that contains this info, occurring at connect, setlevel, and readconfig - Always attach an admin's registered name to bans so the correct people are complained about rather than aliases - General g_admin.c shrinking and refactoring
2013-01-03* (bug 4309) Add options to !restart that allow for keeping/switching player ↵Christopher Schwarz
teams, and optionally also to lock them.
2013-01-03* Make position of "ALLFLAGS" admin flag irrelevantM. Kristall
* Keep track of clients' admin statuses better and refactor large amounts of related admin code
2013-01-03* (bug #3836) Add [SV|trap]_SetConfigstringRestrictions which prevents someTim Angus
clients receiving a config string * Move BG_ClientList* to Com_ClientList* * Split CS_STAGES into CS_ALIEN_STAGES and CS_HUMAN_STAGES
2013-01-03* Massive refactor of voting codeM. Kristall
* Remove cvar g_suddenDeath since it is no longer needed * "Sudden Death in 0 seconds!" should no longer display on map start when sudden death is disabled