summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
AgeCommit message (Collapse)Author
2013-01-03* Rename some types and variables related to building point zones to be moreTim Angus
descriptive
2013-01-03display unpowered icon for telenodes (fixes #something)Ben Millwood
2013-01-03get rid of the rest of the basiturretgrab codeBen Millwood
2013-01-03Removed basilisk turret grabbingAsa Kravets
2013-01-03Don't queue from reactor pool when power source can't be foundRoman Tetelman
2013-01-03Fix the turret bug for teslas tooBen Millwood
2013-01-03* fix turrets from firing sv_fps times per second (thanks rezyn)Roman Tetelman
2013-01-03* add comment to previous commitRoman Tetelman
2013-01-03Buildables will suicide after 90 seconds without a source of powerRoman Tetelman
2013-01-03* Don't fire incomplete hivesBen Millwood
2013-01-03Make next queue time calculation more consistentBen Millwood
2013-01-03Merge most of the CalculateBuildPoints loopsBen Millwood
It may be possible to do this further but as it is I've simplified and efficientised the code a good deal. Also some tiny irrelevant cleanups
2013-01-03Simplify some power handling codeBen Millwood
* Remove reactorNode, overmindNode, G_FindReactor, and G_FindOvermind * Replace level.(overmind|reactor)Present with G_Reactor and G_Overmind
2013-01-03Hive pain/death code cleaned upBen Millwood
* pain animation still used even without overmind * remove AHive_Die since it was broken and AHive_Pain attacks anyway - if a hive is killed in a single hit it will not react * alien buildables that die have self->powered set qfalse
2013-01-03* Fix death detection on medistation heal (bug 3981)Ben Millwood
2013-01-03* Increase repeater cost from 2 to 4Ben Millwood
* Repeaters will no longer suicide * If a buildable doesn't belong to a zone, deconstruct will immediately deconstruct * A power source can no longer be replaced by one of its dependants * Dead repeaters will queue from the reactor
2013-01-03* fix misleading commentRoman Tetelman
2013-01-03Remove repeater overlap prevention codeBen Millwood
2013-01-03add cg_disableBlueprintErrors and un-cvarize g_humanRepeaterAllowOverlapBen Millwood
2013-01-03show the BP of the main / reactor zone by defaultBen Millwood
2013-01-03* Repeaters cost 2 BP that take away from the main (reactor's) pool.Ben Millwood
* By default, repeater BP queue return is instant * Repeaters can be built at stage 1 * Increase the alien build point and build queue time defaults by 50%
2013-01-03Display 0 BP during SDBen Millwood
2013-01-03Don't unpower more than the BP a power source can supply correctlyBen Millwood
2013-01-03The reactor can only power as much BP as it can hold, and marked unpowered ↵Ben Millwood
buildables don't give free BP
2013-01-03Fixes to alien BP counting and markdeconBen Millwood
2013-01-03Queue BP when incomplete buildables are destroyedBen Millwood
2013-01-03Fix some bugs with Zone BPBen Millwood
* Repeaters can no longer be placed inside of another power zone * Temporarily use the nearest source of power instead of * combinations until shared power sources is correctly supported
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-03Queue buildpoints in main zone and unpowered buildablesBen Millwood
2013-01-03Minor cleanups to zone bpBen Millwood
* Move power zones into level_locals_t * Dynamically allocate the array, removing MAX_ZONES restriction
2013-01-03Zone BPBen Millwood
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* Fix mem leak in G_LayoutLoad() (thanks Byron Johnson)Christopher Schwarz
2013-01-03* Fix the order of the arguments to APropHovel_Blocked so that it's not ↵Christopher Schwarz
completely broken. Mysterious successes and failures of allowed hovel placement should no longer occur. * Prevent hovels allowing grangers to get outside the map, once again (thanks Rezyn)
2013-01-03* Fix for building spawns over marked buildables (fixes #14)Roman Tetelman
* Ignore marked buildables that the spawn will replace when checking for anything that will block it.
2013-01-03* (bug 3607) Hopefully fix the remaining hovel issuesM. Kristall
2013-01-03* redo hovel removal in a way that doesn't break log parsers (reported by msk)Roman Tetelman
2013-01-03Removing some unused variables and functionsBen Millwood
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* release build points from structures killed by deconstructed eggs instantlyRoman Tetelman
2013-01-03* Make medistation remove poison from all players that come in contact with itRoman Tetelman
not just the one who is being healed (fixes #19)
2013-01-03* remove hovel (fixes #26) (todo: go back and actually remove the code)Roman Tetelman
2013-01-03I am a proper noob.Ben Millwood
2013-01-03BP Queuing systemBen Millwood
* Remove humanBuildPointsPowered as it isn't used nor is it likely to be * Ensure that alien buildables no longer count for BP after they exploded * Don't restore the BP for a destroyed building as soon as it is destroyed - instead, add them to a global queue and restore them slowly, as determined by g_<team>BuildQueueTime * Remove G_IsOvermindBuilt in favour of level.overmindPresent which did pretty much the same thing This resolves issue #6
2013-01-03* allow repeaters to be built in range of the reactor (but not other repeaters)Roman Tetelman
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 * 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* Add functions G_TeamName and G_TeamFromStringM. Kristall
* Log team changes whenever a team change occurs (not just when using /team) * Do not allow admins without ADMF_CAN_PERM_BAN (flag 8) to remove or modify permanent bans
2013-01-03* (bug 3606) Partial fix for this bug: spawns explode when near other buildablesChristopher Schwarz
* Prevent building a spawn in a place where it would explode by unbreaking such checks during G_CheckSpawnPoint() (thanks DevHC) * When a new buildable is created that blocks an existing spawn, have the spawn kill the new buildable instead of killing itself. * Ideally someone would be prevented from building something to cause this case, but as no one has yet come up with an acceptable implementation, this change is an improvement to prevent griefer use of the bug until then.