diff --git a/docs/README.html b/docs/README.html index 25bd45c0..5a67baf5 100644 --- a/docs/README.html +++ b/docs/README.html @@ -480,6 +480,14 @@ Scripts and maps. + + + Kirin + + + Code contributions and fixes, client stuff, advice. + + V-Man @@ -496,14 +504,6 @@ Code advice, 1.1 voice com, and scripts. - - - Kirin - - - Code contributions and fixes, client stuff, advice. - - Drakas @@ -520,7 +520,7 @@ Ladder server hosting and tournaments organization. - + R4zor and others diff --git a/source/src/geom.h b/source/src/geom.h index c1e37dcc..addcdbd0 100644 --- a/source/src/geom.h +++ b/source/src/geom.h @@ -91,6 +91,7 @@ struct vec float magnitudexy() const { return sqrtf(x*x + y*y); } float fmagxy() const { return fSqrt(x*x + y*y); } + float ufmagxy() const { return ufSqrt(x*x + y*y); } bool reject(const vec &o, float max) const { return x>o.x+max || xo.y+max || ystate.o.v[k] + ( k == 2 ? (((cl->f>>7)&1)?2.2f:4.2f) : 0); } loopk(3) { float v = getint(p)/DMF; shot.shot.to[k] = v < 0.0f ? 0.0f : v; } int hits = getint(p); + int tcn = -1; loopk(hits) { gameevent &hit = cl->addevent(); hit.type = GE_HIT; - hit.hit.target = getint(p); + tcn = hit.hit.target = getint(p); hit.hit.lifesequence = getint(p); hit.hit.info = getint(p); loopk(3) hit.hit.dir[k] = getint(p)/DNF; } - if(!m_demo && !m_coop) checkshoot(sender, shot, hits); + if(!m_demo && !m_coop) checkshoot(sender, shot, hits, tcn); break; } diff --git a/source/src/server.h b/source/src/server.h index ecbc17aa..ea017a34 100644 --- a/source/src/server.h +++ b/source/src/server.h @@ -267,6 +267,8 @@ struct client // server side version of "dynent" type int nt[10], np, lp, ls, lsm, ld, nd, nlt, lem, led; vec cp[10], dp[10], d0, lv, lt, le; float dda, tr, sda; + int ps, ph, tcn, bdt, pws; + float pr; gameevent &addevent() { @@ -303,6 +305,9 @@ struct client // server side version of "dynent" type d0 = lv = lt = le = vec(0,0,0); loopi(10) { cp[i] = dp[i] = vec(0,0,0); nt[i] = 0; } dda = tr = sda = 0; + ps = ph = bdt = pws = 0; + tcn = -1; + pr = 0.0f; } void reset() diff --git a/source/src/serverchecks.h b/source/src/serverchecks.h index b0137c1c..be651440 100644 --- a/source/src/serverchecks.h +++ b/source/src/serverchecks.h @@ -588,11 +588,11 @@ inline void checkmove (client *cl) return; } -inline void checkshoot (int & cn, gameevent & shot, int & hits) +inline void checkshoot (int & cn, gameevent & shot, int & hits, int & tcn) { #ifdef ACAC - s_engine(cn, shot, hits); + s_engine(cn, shot, hits, tcn); #endif return; }