mirror of
https://github.com/id-Software/quake2-rerelease-dll.git
synced 2025-02-25 04:30:45 +00:00
27 lines
632 B
C++
27 lines
632 B
C++
// Copyright (c) ZeniMax Media Inc.
|
|
// Licensed under the GNU General Public License 2.0.
|
|
|
|
#include "../g_local.h"
|
|
|
|
//======================
|
|
// ROGUE
|
|
USE(misc_nuke_core_use) (edict_t *self, edict_t *other, edict_t *activator) -> void
|
|
{
|
|
if (self->svflags & SVF_NOCLIENT)
|
|
self->svflags &= ~SVF_NOCLIENT;
|
|
else
|
|
self->svflags |= SVF_NOCLIENT;
|
|
}
|
|
|
|
/*QUAKED misc_nuke_core (1 0 0) (-16 -16 -16) (16 16 16)
|
|
toggles visible/not visible. starts visible.
|
|
*/
|
|
void SP_misc_nuke_core(edict_t *ent)
|
|
{
|
|
gi.setmodel(ent, "models/objects/core/tris.md2");
|
|
gi.linkentity(ent);
|
|
|
|
ent->use = misc_nuke_core_use;
|
|
}
|
|
// ROGUE
|
|
//======================
|