summaryrefslogtreecommitdiff
path: root/src/baseq2/m_boss3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/baseq2/m_boss3.c')
-rw-r--r--src/baseq2/m_boss3.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/baseq2/m_boss3.c b/src/baseq2/m_boss3.c
index 5ca104c..6448938 100644
--- a/src/baseq2/m_boss3.c
+++ b/src/baseq2/m_boss3.c
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
@@ -28,16 +28,16 @@ boss3
#include "g_local.h"
#include "m_boss32.h"
-void Use_Boss3 (edict_t *ent, edict_t *other, edict_t *activator)
+void Use_Boss3(edict_t *ent, edict_t *other, edict_t *activator)
{
- gi.WriteByte (svc_temp_entity);
- gi.WriteByte (TE_BOSSTPORT);
- gi.WritePosition (ent->s.origin);
- gi.multicast (ent->s.origin, MULTICAST_PVS);
- G_FreeEdict (ent);
+ gi.WriteByte(svc_temp_entity);
+ gi.WriteByte(TE_BOSSTPORT);
+ gi.WritePosition(ent->s.origin);
+ gi.multicast(ent->s.origin, MULTICAST_PVS);
+ G_FreeEdict(ent);
}
-void Think_Boss3Stand (edict_t *ent)
+void Think_Boss3Stand(edict_t *ent)
{
if (ent->s.frame == FRAME_stand260)
ent->s.frame = FRAME_stand201;
@@ -50,27 +50,26 @@ void Think_Boss3Stand (edict_t *ent)
Just stands and cycles in one place until targeted, then teleports away.
*/
-void SP_monster_boss3_stand (edict_t *self)
+void SP_monster_boss3_stand(edict_t *self)
{
- if (deathmatch->value)
- {
- G_FreeEdict (self);
+ if (deathmatch->value) {
+ G_FreeEdict(self);
return;
}
self->movetype = MOVETYPE_STEP;
self->solid = SOLID_BBOX;
self->model = "models/monsters/boss3/rider/tris.md2";
- self->s.modelindex = gi.modelindex (self->model);
+ self->s.modelindex = gi.modelindex(self->model);
self->s.frame = FRAME_stand201;
- gi.soundindex ("misc/bigtele.wav");
+ gi.soundindex("misc/bigtele.wav");
- VectorSet (self->mins, -32, -32, 0);
- VectorSet (self->maxs, 32, 32, 90);
+ VectorSet(self->mins, -32, -32, 0);
+ VectorSet(self->maxs, 32, 32, 90);
self->use = Use_Boss3;
self->think = Think_Boss3Stand;
self->nextthink = level.time + FRAMETIME;
- gi.linkentity (self);
+ gi.linkentity(self);
}