diff --git a/docs/README.html b/docs/README.html
index b5303288..bd800956 100644
--- a/docs/README.html
+++ b/docs/README.html
@@ -170,18 +170,26 @@
|
- Adrian “driAn” Henke
+ Flowtron
|
- Lead coder, OpenAL, OpenGL, gameplay code.
+ Universal team member, additional code, admin, community chief.
|
|
- Markus “makkE” Bekel
+ Nigel “RandumKiwi”
|
- Lead artist, models, skins, animations, mapping, 2D-art, textures, sounds.
+ Maps, documentation, tester, team janitor.
+ |
+
+
+ |
+ Brahma
+ |
+
+ Coder, anti-cheat, analysis and community liason.
|
@@ -198,18 +206,54 @@
|
- Nigel “RandumKiwi”
+ Toca
|
- Maps, documentation, tester, team janitor.
+ Mapmodels, sounds, textures, other stuff.
|
|
- Flowtron
+ Arkefiende
|
- Universal team member, additional code, admin, community chief.
+ NSIS (Windows-Installer), VisualStudio "2K.x", and more
+ |
+
+
+ |
+ Wahnfred
+ |
+
+ XCode wrangler, Mac Packaging
+ |
+
+
+ |
+ Mr.Floppy
+ |
+
+ Maps, textures, models and map management
+ |
+
+
+
+ Inactive Developers and Project Consultants
+
+
+ |
+ Adrian “driAn” Henke
+ |
+
+ Lead coder, OpenAL, OpenGL, gameplay code.
+ |
+
+
+ |
+ Markus “makkE” Bekel
+ |
+
+ Lead artist, models, skins, animations, mapping, 2D-art, textures, sounds.
|
@@ -220,14 +264,6 @@
Bug fixes, additional code, server stuff, new modes.
-
- |
- Toca
- |
-
- Mapmodels, sounds, textures, other stuff.
- |
-
Community Mappers
@@ -280,14 +316,6 @@
Map: ac_urban.
-
- |
- Mr.Floppy
- |
-
- Map: ac_keller, ac_werk, plus textures and models.
- |
-
|
DogDancing
@@ -344,6 +372,14 @@
Map: ac_arabian
|
+
+ |
+ DES Clan
+ |
+
+ Map: ac_outpost
+ |
+
Special thanks
@@ -420,6 +456,78 @@
OpenAL-Soft advice.
+
+ |
+ Francois
+ |
+
+ Extensive play testing
+ |
+
+
+ |
+ Gibstick
+ |
+
+ Scripts
+ |
+
+
+ |
+ Bukz
+ |
+
+ Scripts and maps
+ |
+
+
+ |
+ V-Man
+ |
+
+ AntiCheat discussion and scripts
+ |
+
+
+ |
+ GenDisarray
+ |
+
+ Code advices, 1.1 voice com, and scripts
+ |
+
+
+ |
+ Kirin
+ |
+
+ Code contributions and fixes, client stuff, advice
+ |
+
+
+ |
+ Drakas
+ |
+
+ Server hosting, ladder and tournaments organization
+ |
+
+
+ |
+ pwnage
+ |
+
+ Server hosting, ladder and tournaments organization
+ |
+
+
+ |
+ jamz
+ |
+
+ Server hosting, financial support, active war against the cheaters
+ |
+
|
http://www.lewiscommunications.com/
diff --git a/source/src/geom.h b/source/src/geom.h
index 4fc95856..ad4bbfdf 100644
--- a/source/src/geom.h
+++ b/source/src/geom.h
@@ -3,14 +3,48 @@
// http://www.lomont.org/Math/Papers/2003/InvSqrt.pdf
// http://www.mceniry.net/papers/Fast%20Inverse%20Square%20Root.pdf
// http://en.wikipedia.org/wiki/Fast_inverse_square_root
-
-#define UFINVSQRT union { int d; float f; } u; u.f = x; u.d = 0x5f3759df - (u.d >> 1)
-inline float ufInvSqrt (float x) { UFINVSQRT; return u.f; } // about 3.5% of error
-inline float fInvSqrt (float x) { UFINVSQRT; return 0.5f * u.f * ( 3.00175f - x * u.f * u.f ); } // about 0.1% of error
+#define UFINVSQRT(x) union { int d; float f; } u; u.f = x; u.d = 0x5f3759df - (u.d >> 1)
+inline float ufInvSqrt (float x) { UFINVSQRT(x); return u.f; } // about 3.5% of error
+inline float fInvSqrt (float x) { UFINVSQRT(x); return 0.5f * u.f * ( 3.00175f - x * u.f * u.f ); } // about 0.1% of error
inline float fSqrt (float x) { return x * fInvSqrt(x); }
inline float ufSqrt (float x) { return x * ufInvSqrt(x); }
+inline float fACos( float x )
+{
+ int s = 1;
+ float y, r = 0;
+ if ( x < 0 )
+ {
+ s = -1;
+ r = 2.0f;
+ y = 1.0f + x;
+ }
+ else y = 1.0f - x;
+ UFINVSQRT(y);
+ u.f = 0.5f * u.f * ( 3.0f - y * u.f * u.f );
+ u.f = y * 0.5f * u.f * ( 3.0f - y * u.f * u.f );
+ return 1.57079632f * ( r + s * u.f * ( 0.9003163f + y * ( 0.07782684f + y * ( 0.006777598f + y * 0.015079262f ) ) ) );
+}
#undef UFINVSQRT
+// Fast Cosine
+// inspired after http://www.devmaster.net/forums/showthread.php?t=5784
+#define FCOS \
+ x = fabs(x); \
+ int s = 1; \
+ if ( x > 1.0f ) \
+ { \
+ int n = 0.5f * ( x + 1.0f ); \
+ x -= 2 * n; \
+ s = 1 - 2 * (n%2); \
+ } \
+ float y = ( 1.0f - x*x ); \
+ return s * y * ( 0.7853982f + y * 0.2146018f )
+inline float fCos(float x) { x *= 0.636619772f; FCOS; }
+inline float fSin(float x) { x *= 0.636619772f; x -= 1.0f; FCOS; }
+#undef FCOS
+
+inline float ufS2C(float x) { x *= x; return x > 1.0f ? 0.0f : ufSqrt(1.0f - x); }
+
struct vec
{
union
diff --git a/source/src/server.cpp b/source/src/server.cpp
index f4bff6cb..54ba7f99 100644
--- a/source/src/server.cpp
+++ b/source/src/server.cpp
@@ -2841,9 +2841,8 @@ void process(ENetPacket *packet, int sender, int chan)
}
seteventmillis(shot.shot);
shot.shot.gun = getint(p);
-// loopk(3) shot.shot.from[k] = getint(p)/DMF;
- loopk(3) { shot.shot.from[k] = cl->state.o.v[k] + ( k == 2 ? (((cl->f>>7)&1)?2.2f:4.2f) : 0); /*getint(p);*/}
- loopk(3) shot.shot.to[k] = getint(p)/DMF;
+ loopk(3) { shot.shot.from[k] = cl->state.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);
loopk(hits)
{
diff --git a/source/src/serverchecks.h b/source/src/serverchecks.h
index 08bbc2c9..91e7d600 100644
--- a/source/src/serverchecks.h
+++ b/source/src/serverchecks.h
@@ -116,9 +116,9 @@ inline void addpt(client *c, int points) {
#define HTFLCOVPT cnumber*3 // player covered the flag keeper (htf)
#define COVERPT cnumber*2 // player covered teammate
#define DEATHPT -4 // player died
-#define BONUSPT target->state.points/100 // bonus (for killing high level enemies :: beware with exponential behavior!)
-#define FLBONUSPT 2*target->state.points/100 // bonus if flag team mode
-#define TMBONUSPT 3*target->state.points/100 // bonus if team mode (to give some extra reward for playing tdm modes)
+#define BONUSPT target->state.points/400 // bonus (for killing high level enemies :: beware with exponential behavior!)
+#define FLBONUSPT target->state.points/300 // bonus if flag team mode
+#define TMBONUSPT target->state.points/200 // bonus if team mode (to give some extra reward for playing tdm modes)
#define HTFFRAGPT cnumber/2 // player frags while carrying the flag
#define CTFFRAGPT 2*cnumber // player frags the flag stealer
#define FRAGPT 10 // player frags (normal)
|