Changed mara obituary to something a little better (this time its done server side) (Issue 125)

Added Amanieu's fireworks thing (Issue 126)

Makefile builds shared libaries now

Updated wiki pages to reflect amanieu_fireworks
This commit is contained in:
Paradox460 committed 2008-06-24 19:54:29 +00:00
1 parent f1a18a9a8a
commit 886882882c
4 files changed
+41 -1

No files matched your search

+37
View File
@@ -69,6 +69,11 @@ g_admin_cmd_t g_admin_cmds[ ] =
"makes everyone ready in intermission",
""
},
{"fireworks", G_admin_fireworks, "Y",
"Play the ending animation for the current map",
"[^3a|h^7]"
},
{"ban", G_admin_ban, "b",
"ban a player by IP and GUID with an optional expiration time and reason."
@@ -7672,3 +7677,35 @@ if( !admin_higher( ent, &g_entities[ pids[ 0 ] ] ) )
return qtrue;
}
qboolean G_admin_fireworks( gentity_t *ent, int skiparg )
{
char teamName[2] = {""};
pTeam_t team;
int i;
if( G_SayArgc() > 2 + skiparg )
{
ADMP( "^3!fireworks: ^7usage: !fireworks [a|h]\n" );
return qfalse;
}
G_SayArgv( 1 + skiparg, teamName, sizeof( teamName ) );
if( teamName[ 0 ] == 'a' || teamName[ 0 ] == 'A' )
team = PTE_ALIENS;
else if( teamName[ 0 ] == 'h' || teamName[ 0 ] == 'H' )
team = PTE_HUMANS;
else
team = PTE_NONE;
for( i = 1, ent = g_entities + i ; i < level.num_entities ; i++, ent++ )
{
if( !ent->inuse )
continue;
if( !Q_stricmp( ent->classname, "trigger_win" ) )
{
if( team == PTE_NONE || team == ent->stageTeam )
ent->use( ent, ent, ent );
}
}
return qtrue;
}