mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-11 15:52:30 +00:00
weapons stats on server side
This commit is contained in:
parent
297c130bdf
commit
b110c37ece
2 changed files with 167 additions and 7 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.61 2002/02/28 05:42:31 blaze
|
||||
// weapons stats on server side
|
||||
//
|
||||
// Revision 1.60 2002/02/27 01:54:29 jbravo
|
||||
// More spectatorfixes and finally stopped all fallingdamage anims and
|
||||
// sounds during LCA.
|
||||
|
@ -189,6 +192,43 @@ void Cmd_Score_f( gentity_t *ent ) {
|
|||
DeathmatchScoreboardMessage( ent );
|
||||
}
|
||||
|
||||
/*
|
||||
==================
|
||||
Cmd_WeaponStats_f
|
||||
|
||||
Request current weaponstats information
|
||||
==================
|
||||
*/
|
||||
void Cmd_WeaponStats_f( gentity_t *ent)
|
||||
{
|
||||
|
||||
trap_SendServerCommand( ent-g_entities, va("wstats %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i",
|
||||
ent->client->pers.records[REC_KNIFETHROWSHOTS],ent->client->pers.records[REC_KNIFETHROWHITS],
|
||||
ent->client->pers.records[REC_KNIFESLASHSHOTS],ent->client->pers.records[REC_KNIFESLASHHITS],
|
||||
ent->client->pers.records[REC_MK23SHOTS],ent->client->pers.records[REC_MK23HITS],
|
||||
ent->client->pers.records[REC_M3SHOTS],ent->client->pers.records[REC_M3HITS],
|
||||
ent->client->pers.records[REC_MP5SHOTS],ent->client->pers.records[REC_MP5HITS],
|
||||
ent->client->pers.records[REC_M4SHOTS],ent->client->pers.records[REC_M4HITS],
|
||||
ent->client->pers.records[REC_SSG3000SHOTS],ent->client->pers.records[REC_SSG3000HITS],
|
||||
ent->client->pers.records[REC_HANDCANNONSHOTS],ent->client->pers.records[REC_HANDCANNONHITS],
|
||||
ent->client->pers.records[REC_AKIMBOSHOTS],ent->client->pers.records[REC_AKIMBOHITS],
|
||||
ent->client->pers.records[REC_GRENADESHOTS],ent->client->pers.records[REC_GRENADEHITS],
|
||||
ent->client->pers.records[REC_KICKHITS]));
|
||||
|
||||
trap_SendServerCommand( ent-g_entities, va("wstats2 %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i",
|
||||
ent->client->pers.records[REC_KNIFETHROWDEATHS],ent->client->pers.records[REC_KNIFETHROWKILLS],
|
||||
ent->client->pers.records[REC_KNIFESLASHDEATHS],ent->client->pers.records[REC_KNIFESLASHKILLS],
|
||||
ent->client->pers.records[REC_MK23DEATHS],ent->client->pers.records[REC_MK23KILLS],
|
||||
ent->client->pers.records[REC_M3DEATHS],ent->client->pers.records[REC_M3KILLS],
|
||||
ent->client->pers.records[REC_MP5DEATHS],ent->client->pers.records[REC_MP5KILLS],
|
||||
ent->client->pers.records[REC_M4DEATHS],ent->client->pers.records[REC_M4KILLS],
|
||||
ent->client->pers.records[REC_SSG3000DEATHS],ent->client->pers.records[REC_SSG3000KILLS],
|
||||
ent->client->pers.records[REC_HANDCANNONDEATHS],ent->client->pers.records[REC_HANDCANNONKILLS],
|
||||
ent->client->pers.records[REC_AKIMBODEATHS],ent->client->pers.records[REC_AKIMBOKILLS],
|
||||
ent->client->pers.records[REC_GRENADEDEATHS],ent->client->pers.records[REC_GRENADEKILLS],
|
||||
ent->client->pers.records[REC_KICKDEATHS],ent->client->pers.records[REC_KICKKILLS]));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
@ -2717,6 +2757,11 @@ void ClientCommand( int clientNum ) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (Q_stricmp (cmd, "wstats") == 0) {
|
||||
Cmd_WeaponStats_f (ent);
|
||||
return;
|
||||
}
|
||||
|
||||
// ignore all other commands when at intermission
|
||||
if (level.intermissiontime) {
|
||||
Cmd_Say_f (ent, qfalse, qtrue);
|
||||
|
|
|
@ -6,13 +6,48 @@
|
|||
--------------------Configuration: game - Win32 Debug--------------------
|
||||
</h3>
|
||||
<h3>Command Lines</h3>
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP132.tmp" with contents
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP37.tmp" with contents
|
||||
[
|
||||
/nologo /G5 /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "BUILDING_REF_GL" /D "DEBUG" /FR"c:\reactionoutput/" /Fp"c:\reactionoutput/game.pch" /YX /Fo"c:\reactionoutput/" /Fd"c:\reactionoutput/" /FD /c
|
||||
"c:\reaction\game\g_active.c"
|
||||
"C:\Development\reaction\game\ai_chat.c"
|
||||
"C:\Development\reaction\game\ai_cmd.c"
|
||||
"C:\Development\reaction\game\ai_dmnet.c"
|
||||
"C:\Development\reaction\game\ai_dmq3.c"
|
||||
"C:\Development\reaction\game\ai_main.c"
|
||||
"C:\Development\reaction\game\ai_team.c"
|
||||
"C:\Development\reaction\game\ai_vcmd.c"
|
||||
"C:\Development\reaction\game\bg_misc.c"
|
||||
"C:\Development\reaction\game\bg_pmove.c"
|
||||
"C:\Development\reaction\game\bg_slidemove.c"
|
||||
"C:\Development\reaction\game\g_active.c"
|
||||
"C:\Development\reaction\game\g_arenas.c"
|
||||
"C:\Development\reaction\game\g_bot.c"
|
||||
"C:\Development\reaction\game\g_client.c"
|
||||
"C:\Development\reaction\game\g_cmds.c"
|
||||
"C:\Development\reaction\game\g_combat.c"
|
||||
"C:\Development\reaction\game\g_fileio.c"
|
||||
"C:\Development\reaction\game\g_items.c"
|
||||
"C:\Development\reaction\game\g_main.c"
|
||||
"C:\Development\reaction\game\g_mem.c"
|
||||
"C:\Development\reaction\game\g_misc.c"
|
||||
"C:\Development\reaction\game\g_missile.c"
|
||||
"C:\Development\reaction\game\g_mover.c"
|
||||
"C:\Development\reaction\game\g_session.c"
|
||||
"C:\Development\reaction\game\g_spawn.c"
|
||||
"C:\Development\reaction\game\g_svcmds.c"
|
||||
"C:\Development\reaction\game\g_syscalls.c"
|
||||
"C:\Development\reaction\game\g_target.c"
|
||||
"C:\Development\reaction\game\g_team.c"
|
||||
"C:\Development\reaction\game\g_teamplay.c"
|
||||
"C:\Development\reaction\game\g_trigger.c"
|
||||
"C:\Development\reaction\game\g_utils.c"
|
||||
"C:\Development\reaction\game\g_weapon.c"
|
||||
"C:\Development\reaction\game\q_math.c"
|
||||
"C:\Development\reaction\game\q_shared.c"
|
||||
"C:\Development\reaction\game\rxn_game.c"
|
||||
]
|
||||
Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP132.tmp"
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP133.tmp" with contents
|
||||
Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP37.tmp"
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP38.tmp" with contents
|
||||
[
|
||||
kernel32.lib user32.lib winmm.lib /nologo /base:"0x20000000" /subsystem:windows /dll /incremental:yes /pdb:"c:\reactionoutput/qagamex86.pdb" /map:"c:\reactionoutput/qagamex86.map" /debug /machine:I386 /def:".\game.def" /out:"..\Debug/qagamex86.dll" /implib:"c:\reactionoutput/qagamex86.lib"
|
||||
\reactionoutput\ai_chat.obj
|
||||
|
@ -44,6 +79,7 @@ kernel32.lib user32.lib winmm.lib /nologo /base:"0x20000000" /subsystem:windows
|
|||
\reactionoutput\g_syscalls.obj
|
||||
\reactionoutput\g_target.obj
|
||||
\reactionoutput\g_team.obj
|
||||
\reactionoutput\g_teamplay.obj
|
||||
\reactionoutput\g_trigger.obj
|
||||
\reactionoutput\g_utils.obj
|
||||
\reactionoutput\g_weapon.obj
|
||||
|
@ -51,17 +87,96 @@ kernel32.lib user32.lib winmm.lib /nologo /base:"0x20000000" /subsystem:windows
|
|||
\reactionoutput\q_shared.obj
|
||||
\reactionoutput\rxn_game.obj
|
||||
]
|
||||
Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP133.tmp"
|
||||
Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP38.tmp"
|
||||
<h3>Output Window</h3>
|
||||
Compiling...
|
||||
ai_chat.c
|
||||
ai_cmd.c
|
||||
ai_dmnet.c
|
||||
ai_dmq3.c
|
||||
ai_main.c
|
||||
ai_team.c
|
||||
ai_vcmd.c
|
||||
bg_misc.c
|
||||
c:\development\reaction\game\bg_misc.c(870) : warning C4033: 'BG_FindItemForHoldable' must return a value
|
||||
c:\development\reaction\game\bg_misc.c(1470) : warning C4101: 'p' : unreferenced local variable
|
||||
c:\development\reaction\game\bg_misc.c(1469) : warning C4101: 'angles' : unreferenced local variable
|
||||
bg_pmove.c
|
||||
c:\development\reaction\game\bg_misc.c(881) : warning C4715: 'BG_FindItemForHoldable' : not all control paths return a value
|
||||
bg_slidemove.c
|
||||
C:\Development\reaction\game\bg_slidemove.c(148) : warning C4101: 'delta0' : unreferenced local variable
|
||||
C:\Development\reaction\game\bg_slidemove.c(149) : warning C4101: 'delta1' : unreferenced local variable
|
||||
C:\Development\reaction\game\bg_slidemove.c(150) : warning C4101: 'delta2' : unreferenced local variable
|
||||
C:\Development\reaction\game\bg_slidemove.c(147) : warning C4101: 'old_normal' : unreferenced local variable
|
||||
g_active.c
|
||||
c:\reaction\game\g_active.c(726) : warning C4047: '!=' : 'int ' differs in levels of indirection from 'void *'
|
||||
g_arenas.c
|
||||
g_bot.c
|
||||
g_client.c
|
||||
C:\Development\reaction\game\g_client.c(1256) : warning C4101: 'savedpers' : unreferenced local variable
|
||||
g_cmds.c
|
||||
g_combat.c
|
||||
C:\Development\reaction\game\g_combat.c(1317) : warning C4101: 'max' : unreferenced local variable
|
||||
g_fileio.c
|
||||
g_items.c
|
||||
c:\development\reaction\game\g_items.c(1603) : warning C4101: 'rq3_item' : unreferenced local variable
|
||||
c:\development\reaction\game\g_items.c(1604) : warning C4101: 'rq3_temp' : unreferenced local variable
|
||||
g_main.c
|
||||
g_mem.c
|
||||
g_misc.c
|
||||
C:\Development\reaction\game\g_misc.c(85) : warning C4101: 'style' : unreferenced local variable
|
||||
g_missile.c
|
||||
g_mover.c
|
||||
C:\Development\reaction\game\g_mover.c(61) : warning C4101: 'origin2' : unreferenced local variable
|
||||
g_session.c
|
||||
g_spawn.c
|
||||
g_svcmds.c
|
||||
g_syscalls.c
|
||||
g_target.c
|
||||
g_team.c
|
||||
g_teamplay.c
|
||||
C:\Development\reaction\game\g_teamplay.c(213) : warning C4101: 'player' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_teamplay.c(212) : warning C4101: 'i' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_teamplay.c(226) : warning C4101: 'player' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_teamplay.c(225) : warning C4101: 'i' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_teamplay.c(259) : warning C4101: 'saveteam' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_teamplay.c(278) : warning C4013: 'ClearBodyQue' undefined; assuming extern returning int
|
||||
C:\Development\reaction\game\g_teamplay.c(464) : warning C4101: 'buffer' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_teamplay.c(487) : warning C4101: 'x' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_teamplay.c(524) : warning C4101: 'c' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_teamplay.c(524) : warning C4101: 'len' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_teamplay.c(586) : warning C4013: 'Cmd_DropItem_f' undefined; assuming extern returning int
|
||||
C:\Development\reaction\game\g_teamplay.c(588) : warning C4013: 'Cmd_DropWeapon_f' undefined; assuming extern returning int
|
||||
g_trigger.c
|
||||
g_utils.c
|
||||
g_weapon.c
|
||||
C:\Development\reaction\game\g_weapon.c(1421) : warning C4101: 'i' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_weapon.c(2394) : warning C4101: 'tent' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_weapon.c(2395) : warning C4101: 'fogStart' : unreferenced local variable
|
||||
C:\Development\reaction\game\g_weapon.c(2390) : warning C4101: 'tr2' : unreferenced local variable
|
||||
q_math.c
|
||||
q_shared.c
|
||||
rxn_game.c
|
||||
Linking...
|
||||
Creating library c:\reactionoutput/qagamex86.lib and object c:\reactionoutput/qagamex86.exp
|
||||
g_active.obj : error LNK2001: unresolved external symbol _camera_think
|
||||
g_client.obj : error LNK2001: unresolved external symbol _camera_begin
|
||||
g_client.obj : error LNK2001: unresolved external symbol _camera_disconnect
|
||||
g_cmds.obj : error LNK2001: unresolved external symbol _camera_cmd
|
||||
g_cmds.obj : error LNK2001: unresolved external symbol _MM_Sub_f
|
||||
g_cmds.obj : error LNK2001: unresolved external symbol _MM_Ready_f
|
||||
g_cmds.obj : error LNK2001: unresolved external symbol _MM_Captain_f
|
||||
g_main.obj : error LNK2001: unresolved external symbol _camera_init
|
||||
g_main.obj : error LNK2001: unresolved external symbol _camera_shutdown
|
||||
g_main.obj : error LNK2001: unresolved external symbol _MM_RunFrame
|
||||
g_session.obj : error LNK2001: unresolved external symbol _camera_state_save
|
||||
g_session.obj : error LNK2001: unresolved external symbol _camera_state_load
|
||||
..\Debug/qagamex86.dll : fatal error LNK1120: 12 unresolved externals
|
||||
Error executing link.exe.
|
||||
|
||||
|
||||
|
||||
<h3>Results</h3>
|
||||
qagamex86.dll - 0 error(s), 1 warning(s)
|
||||
qagamex86.dll - 13 error(s), 30 warning(s)
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue