some credit inclusion (i am not sure we put everybody who deserves it), some fast functions, and some more compatibility to cheat detection

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5460 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-26 21:23:45 +00:00
parent 19e321bd91
commit 97cfafe794
4 changed files with 175 additions and 34 deletions
+132 -24
View File
@@ -170,18 +170,26 @@
<table>
<tr>
<td width="300">
Adrian <i>“driAn”</i> Henke
Flowtron
</td>
<td>
Lead coder, OpenAL, OpenGL, gameplay code.
Universal team member, additional code, admin, community chief.
</td>
</tr>
<tr>
<td>
Markus <i>“makkE”</i> Bekel
Nigel <i>“RandumKiwi”</i>
</td>
<td>
Lead artist, models, skins, animations, mapping, 2D-art, textures, sounds.
Maps, documentation, tester, team janitor.
</td>
</tr>
<tr>
<td>
Brahma
</td>
<td>
Coder, anti-cheat, analysis and community liason.
</td>
</tr>
</table>
@@ -198,18 +206,54 @@
</tr>
<tr>
<td>
Nigel <i>“RandumKiwi”</i>
Toca
</td>
<td>
Maps, documentation, tester, team janitor.
Mapmodels, sounds, textures, other stuff.
</td>
</tr>
<tr>
<td>
Flowtron
Arkefiende
</td>
<td>
Universal team member, additional code, admin, community chief.
NSIS (Windows-Installer), VisualStudio "2K.x", and more
</td>
</tr>
<tr>
<td>
Wahnfred
</td>
<td>
XCode wrangler, Mac Packaging
</td>
</tr>
<tr>
<td>
Mr.Floppy
</td>
<td>
Maps, textures, models and map management
</td>
</tr>
</table>
<h2>
Inactive Developers and Project Consultants</h2>
<table>
<tr>
<td width="300">
Adrian <i>“driAn”</i> Henke
</td>
<td>
Lead coder, OpenAL, OpenGL, gameplay code.
</td>
</tr>
<tr>
<td>
Markus <i>“makkE”</i> Bekel
</td>
<td>
Lead artist, models, skins, animations, mapping, 2D-art, textures, sounds.
</td>
</tr>
<tr>
@@ -220,14 +264,6 @@
Bug fixes, additional code, server stuff, new modes.
</td>
</tr>
<tr>
<td>
Toca
</td>
<td>
Mapmodels, sounds, textures, other stuff.
</td>
</tr>
</table>
<h2>
Community Mappers</h2>
@@ -280,14 +316,6 @@
Map: ac_urban.
</td>
</tr>
<tr>
<td>
Mr.Floppy
</td>
<td>
Map: ac_keller, ac_werk, plus textures and models.
</td>
</tr>
<tr>
<td>
DogDancing
@@ -344,6 +372,14 @@
Map: ac_arabian
</td>
</tr>
<tr>
<td>
DES Clan
</td>
<td>
Map: ac_outpost
</td>
</tr>
</table>
<h2>
Special thanks</h2>
@@ -420,6 +456,78 @@
OpenAL-Soft advice.
</td>
</tr>
<tr>
<td>
Francois
</td>
<td>
Extensive play testing
</td>
</tr>
<tr>
<td>
Gibstick
</td>
<td>
Scripts
</td>
</tr>
<tr>
<td>
Bukz
</td>
<td>
Scripts and maps
</td>
</tr>
<tr>
<td>
V-Man
</td>
<td>
AntiCheat discussion and scripts
</td>
</tr>
<tr>
<td>
GenDisarray
</td>
<td>
Code advices, 1.1 voice com, and scripts
</td>
</tr>
<tr>
<td>
Kirin
</td>
<td>
Code contributions and fixes, client stuff, advice
</td>
</tr>
<tr>
<td>
Drakas
</td>
<td>
Server hosting, ladder and tournaments organization
</td>
</tr>
<tr>
<td>
pwnage
</td>
<td>
Server hosting, ladder and tournaments organization
</td>
</tr>
<tr>
<td>
jamz
</td>
<td>
Server hosting, financial support, active war against the cheaters
</td>
</tr>
<tr>
<td>
http://www.lewiscommunications.com/
+38 -4
View File
@@ -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
+2 -3
View File
@@ -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)
{
+3 -3
View File
@@ -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)