Commit graph

191 commits

Author SHA1 Message Date
Bill Currie
c32a920e94 fix some unused/uninitialized* vars found by qfcc's new scoping.
* parameters were getting shaddowed by locals of the same name. this used to
  be harmless as the local def would just pick up the param rather than
  creating a new def, but now that params and locals are in separate scopes,
  this shaddowing becomes a potential problem.
2001-10-24 06:43:33 +00:00
Adam Olsen
abfb96ff68 - oops, remove the (commented out) debugging code :) 2001-10-20 21:10:34 +00:00
Adam Olsen
9cae55b7d8 - make mass heal do a maximum of 200 hp per person
- nudge flares a bit, so they work better with QF
2001-10-20 20:33:01 +00:00
Bill Currie
655fa7e52a more uninit var cleanup 2001-10-19 07:34:22 +00:00
Bill Currie
c01e44c7a4 fix some more uninitialized vars found by qfcc 2001-10-19 03:31:30 +00:00
Bill Currie
23d81b1e8c fix some uninitialized variables that qfcc has so far detected 2001-10-18 20:10:39 +00:00
Adam Olsen
09bf5a80dc - comment out the cheat check's speed check, so we can use the rest
without it
2001-10-18 13:30:35 +00:00
Bill Currie
0ff237871e Cleanup after qfcc's typechecking changes. This includes the elimination of
SUB_Null.
2001-10-17 07:48:11 +00:00
Bill Currie
158baea0c1 TeamFortress_SetSpeed:
o lots of whitespace
  o optimise the NIT_SCUBA test
  o only change cl_*speed when maxspeed changes
  o set cl_*speed to maxspeed rather than 1000 so cl_movespeedkey 0.5
    actually works
2001-10-17 04:48:19 +00:00
Adam Olsen
0dc44cb1ac - comment out the double-remove check, since the engine should handle
that now
- add an ASSERT macro, not that it's used
- change the build placement distances from +30 - -20 to +50 - -40
- add DMSG_MARTYR handlers, which will hopefully make the BUG deaths
  stop
2001-10-17 03:28:37 +00:00
Adam Olsen
ac4e5a8adb - fix double-remove of exploding mines 2001-10-15 05:43:35 +00:00
Adam Olsen
1171a6ffe4 - make the grapple set the player's gravity to 0 when it's active,
then to 1 again when it's released.  stops that annoying bobbing
  effect.
- also reindent one of the functions, since it annoyed me so much
2001-10-14 00:57:50 +00:00
Adam Olsen
55500b87d6 - change all usages of MSG_BROADCAST to MSG_MULTICAST, since that's
what quakeworld uses anyway
- when changing a player's team with the admin commands, change the
  player's color, not the admin's color :)
2001-10-13 23:02:22 +00:00
Adam Olsen
0cb97bdfbc - fix the "infinite sensors with aura of resistance" bug 2001-10-13 19:44:27 +00:00
Adam Olsen
d9a3e54a66 - make medic axes trigger buttons 2001-10-13 01:33:54 +00:00
Adam Olsen
63999de0a0 - don't recheck the placement location if trace_fraction == 1 2001-10-12 23:28:18 +00:00
Adam Olsen
81f9c7f253 - add a ALLOW_RCON_ABUSE define, so that stuffing commands to the
clients can be disabled (the default)
- fix teleporter space checking to only check the space a player would
  take up
- add a check so that teslas can't get negative health when hacking.
  (shouldn't happen?!)
- clean up building placement, so that anywhere from 20 below to 30
  above your feet is fair game.  it then checks for solid a second
  time if the top was solid
- add defines for checkmove (SV_Move wrapper)'s type field
  (MOVE_NORMAL, MOVE_NOMONSTER, MOVE_MISSILE)
- add a printtrace function, since I do it so often in debugging.
- BUGS, TODO
2001-10-12 06:10:59 +00:00
Adam Olsen
3d3c7170fc - reduce build drop distance from 128 to 64
- fix the "building in wall" tests when over a doorway
- change a message :)
- add the initial code for checking if a sentry is in a wall.  doesn't
  work yet though, so it's commented out.
2001-10-11 04:18:32 +00:00
Adam Olsen
1df4a0fd59 - return to old behavior of assault cannon has 2048 range, rest have
1024
- increase assault cannon damage from 5 to 8 (since it doesn't fire as
  much as it used to)
- reduce light assault damage from 4 to 3
- give light assault the same spread as an assault cannon
2001-10-09 12:25:52 +00:00
Adam Olsen
f7f447b6f0 - handle cases in Give_Frags_Out where atk or targ are world 2001-10-08 22:11:20 +00:00
Adam Olsen
5f966cf9a3 - fix timeleft so that it sets serverinfo, not localinfo. oops :)
- make it so spies remove their timer if they abort disguising
2001-10-08 19:13:33 +00:00
Adam Olsen
0c498dd760 - tweak a few things to use setorigin instead of self.origin =
- make sure telefrags happen even on your first spawn
- do a reverse telefrag if your target is invicible
2001-10-08 11:14:13 +00:00
Adam Olsen
c04bac87f3 - gib people who leave the map :) 2001-10-07 22:47:59 +00:00
Adam Olsen
5ec3dff93e - totally disable TeamFortress_ChecKTeamCheats
- fix GetNoPlayers (didn't init num_players)
- overhaul the map cycler
  - automatically restart if a cyclenumber doesn't work
  - fix minp/maxp
  - exec mapcfg.cfg each map change  (affects minp/maxp)
  - exec mapcfg/MAP.cfg each map change.  (affects minp/maxp)
- fix a "rockets explode on observers" bug
- make it so colors aren't reset every time you respawn
2001-10-07 22:15:22 +00:00
Adam Olsen
a1ecc5dda3 - BUGS/TODO
- clean up GetNextMapNum, as well as handling an unset maxmapnum
- remove an extra obituary print (leftover from my cleanups)
- cleanup UserInfoCallback a bit
- little tweak to Multi_Finish
- make it so friends{1,2,3,4}_mask infokeys override the map values if
  set, so you can force friendly teams on broken maps
2001-10-05 23:05:28 +00:00
Adam Olsen
01a28bdf9d - a crusader aura robustness fix (shouldn't ever happen, but
apparantly does)
2001-10-05 22:58:43 +00:00
Adam Olsen
d2f77c5cca - fix that hover boots money cheat
- re-comment the ARMY_TEST define and friends.  don't want that on
  normally :)
2001-10-02 09:06:20 +00:00
Adam Olsen
05c05180dc - rename ClientObituary to Obituary
- rename Obit_* to Obituary_*
- further cleanups of Obituary_Player.  This is about as clean and
  uniform as it's gonna get.
2001-10-02 01:24:28 +00:00
Adam Olsen
c3ccddb39f - BUGS
- make soldiers sometimes retreat when low on health
- make "static" mode soldiers work.  more or less.
- Massive cleanup of obituary.qc.  I'd be surprised if there isn't a
  bug or two.
2001-10-01 11:37:02 +00:00
Adam Olsen
1993bb348f - some BUGS items
- annihilate string_null (and empty_float and vector_null)
- remove self.netname = infokey(self, "name");, since the server
  should do that for us
- add a quotename function, to stick \xFF around a name
- add a few death messages
- set a "timeleft" serverinfo to be the number of minutes left in the
  game
2001-09-30 22:38:44 +00:00
Adam Olsen
14651ae7ef - couple bugfixes related to assault cannons
- cleanup of FireBullets and friends
- changed how damage is handled with assault cannon.  probably alot
  more powerful now
2001-09-26 03:59:53 +00:00
Adam Olsen
747b0a4760 - fix a segfault due to uninited strings
- make concs not affect shamblers
- add a few items to BUGS and TODO
2001-09-23 21:31:06 +00:00
Bill Currie
0c44060141 clean up all the unused local vars found by qfcc 2001-09-23 04:25:02 +00:00
Adam Olsen
033b1f62fd - fix uninited variable 2001-09-23 01:58:13 +00:00
Adam Olsen
7c85b22fb1 - remove some unused local strings 2001-09-23 00:16:29 +00:00
Bill Currie
fe8bce0861 make self destructive goals work 2001-09-22 22:30:33 +00:00
Adam Olsen
66f50d2899 - reduce assaultcannon's movement limitation from 1/8th to 1/4th
- fix judo so your speed is returned after loosing an assault cannon
2001-09-22 19:23:24 +00:00
Adam Olsen
3c8ef5221d - add a "improve_respawns" infokey, which improves the small or slow
respawns on mapload.  Doesn't work for maps which have several small
  items though.
2001-09-22 18:38:45 +00:00
Bill Currie
c136cf9787 or maybe not :( 2001-09-22 07:15:51 +00:00
Bill Currie
354669ad62 actually, I think Goal /is/ supposed to be removed, but remove it /after/ it's
no longer needed.
2001-09-22 07:11:29 +00:00
Bill Currie
6a0bd5c8d6 detpacks are meant to nuke the map, not the server. This is the correct fix
for the problem of detpacking a detpackable door resulting in the door not
opening and the next player connect crashing the server.
2001-09-22 06:53:00 +00:00
Adam Olsen
5300eb7a67 like duh :) 2001-09-22 03:13:49 +00:00
Adam Olsen
0c7ad5110b - foo 2001-09-21 15:28:24 +00:00
Adam Olsen
d607291546 - fix teleporters to not display if you don't have them
- disable topcolor change blocking for now
2001-09-21 14:13:52 +00:00
Adam Olsen
ad94b40139 - fix a soldier menu crash (doh!)
- remove the (long obsolete) sv_gc setting.
2001-09-15 23:54:08 +00:00
Adam Olsen
47c791ff19 - a few bugs I've had lying around locally 2001-09-15 23:31:34 +00:00
Adam Olsen
68424ae9b7 oops, don't want to display fieldgens on the build menu if you dont'
have them
2001-08-26 06:17:18 +00:00
Bill Currie
6debcdb4ed make all work 2001-08-24 23:34:42 +00:00
Adam Olsen
5e3fdef17b - remove some { from comments so it doesn't confuse vim
- make it print out the gamedir when it doesn't like it.
2001-08-24 05:48:29 +00:00
Adam Olsen
00e9ad1b99 oops, don't want that debugging print :) 2001-08-15 00:17:02 +00:00