diff options
author | Paweł Redman <trem.redman@gmail.com> | 2013-09-12 18:28:16 +0200 |
---|---|---|
committer | Paweł Redman <trem.redman@gmail.com> | 2013-09-12 18:28:16 +0200 |
commit | 85d99859798982dd88c7de8d8b7a71d4ac4b4a2b (patch) | |
tree | bb44591d336ee20d4944f59db8ea0fdb98aeb237 /src/game/g_cmds.c | |
parent | 37b8af1e6eb90378f1290b5130c8b6882b06a219 (diff) |
0.1.4
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index c9c6213..ef5a864 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1572,7 +1572,7 @@ void Cmd_CallVote_f( gentity_t *ent ) G_Vote( ent, team, qtrue ); level.voteAborted[ team ] = qfalse; - trap_SendServerCommand( -1, "voteevent votenow" ); + trap_SendServerCommand( -1, "announce votenow" ); } /* @@ -3295,9 +3295,16 @@ void Cmd_Damage_f( gentity_t *ent ) Cmd_Debug1_f ================= */ -void Cmd_Debug1_f( gentity_t *ent ) +void Cmd_Debug1_f( gentity_t *self ) { - AddScore( ent, random() * 15000.0f ); + gentity_t *ent; + ent = G_TempEntity( self->r.currentOrigin, EV_OBITUARY ); + ent->s.eventParm = MOD_MACHINEGUN; + ent->s.otherEntityNum = self->s.number; + ent->s.modelindex = self->client->ps.stats[ STAT_CLASS ]; + ent->s.otherEntityNum2 = 1; + ent->s.groundEntityNum = 666; + ent->r.svFlags = SVF_BROADCAST; // send to everyone } /* |