added .float spawnshieldtime which is used to grant temporary
authorlordhavoc <lordhavoc@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Fri, 17 Feb 2006 10:55:07 +0000 (10:55 +0000)
committerlordhavoc <lordhavoc@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Fri, 17 Feb 2006 10:55:07 +0000 (10:55 +0000)
commit8c5d42fbfd08956667bbaf8e4fd2ab7e57c46ded
treeef11bcdb7faee4d8d60440c8eecde993f854ac1a
parent9daf16e67b99c130a749f3abb8743c8c10cf9d8f
added .float spawnshieldtime which is used to grant temporary
invulnerability to newly spawned players (if g_spawnshieldtime is not
0), and also used internally by g_midair mode (along with
g_midair_shieldtime cvar), this means that
players are invulnerable for a short time after leaving the floor in
midair mode, so that multishot weapons (crylink, shotgun, electro
secondary) don't do damage on the second and later hits in a single
frame (because their first hit cleared the onground flag)
added g_spawnshieldtime cvar
added g_midair_shieldtime cvar

git-svn-id: svn://svn.icculus.org/nexuiz/trunk@1075 f962a42d-fe04-0410-a3ab-8c8b0445ebaa
data/default.cfg
data/qcsrc/server/gamec/cl_client.c
data/qcsrc/server/gamec/cl_player.c
data/qcsrc/server/gamec/defs.h
data/qcsrc/server/gamec/g_damage.c