Quake 2 Oop Conversion Project - Source Diff 3.14 vs Ctf 1.02 - g_misc.c
diff -s -r q2_314/g_misc.c q2_314_ctf/g_misc.c
Left File < - 3.14 : g_misc.c
Right File > - Ctf 1.02 : g_misc.c
Back to Index
28c28
< ent->count = 0; // always start closed;
---
> ent->count = 0; // allways start closed;
291a292,312
> //ZOID
> //flags are important
> if (strcmp(self->classname, "item_flag_team1") == 0) {

> CTFResetFlag(CTF_TEAM1); // this will free self!
> gi.bprintf(PRINT_HIGH, "The %s flag has returned!\n",
> CTFTeamName(CTF_TEAM1));
> return;
> }
> if (strcmp(self->classname, "item_flag_team2") == 0) {
> CTFResetFlag(CTF_TEAM2); // this will free self!
> gi.bprintf(PRINT_HIGH, "The %s flag has returned!\n",
> CTFTeamName(CTF_TEAM1));
> return;
> }
> // techs are important too
> if (self->item && (self->item->flags & IT_TECH)) {
> CTFRespawnTech(self); // this frees self!
> return;
> }
> //ZOID
>
467a489,490
> static int robotron[4];
>
470a494
> // ent->s.frame = (ent->s.frame + 1) % 9;
471a496,505
> // return;
>
> if (ent->spawnflags)
> {
> if (ent->s.frame == 0)
> {
> ent->spawnflags = (ent->spawnflags + 1) % 4 + 1;
> ent->s.modelindex = robotron[ent->spawnflags - 1];
> }
> }
482a517
> // ent->s.modelindex = gi.modelindex ("models/player_y/tris.md2");
1770a1806,1809
>
> //ZOID
> CTFPlayerResetGrapple(other);
> //ZOID