// ================= // ================= void hunter_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) { edict_t *owner; // don't blow up if you hit the world.... sheesh. if(other==world) return; if(self->owner) { // if owner is flying with us, make sure they stop too. owner=self->owner; if(owner->flags & FL_SAM_RAIMI) { VectorClear(owner->velocity); owner->movetype = MOVETYPE_NONE; gi.linkentity(owner); } } if(self->spawnflags & SPHERE_DOPPLEGANGER) sphere_touch (self, other, plane, surf, MOD_DOPPLE_HUNTER); else sphere_touch (self, other, plane, surf, MOD_HUNTER_SPHERE); }
// ================= // ================= void vengeance_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) { if(self->spawnflags & SPHERE_DOPPLEGANGER) sphere_touch (self, other, plane, surf, MOD_DOPPLE_VENGEANCE); else sphere_touch (self, other, plane, surf, MOD_VENGEANCE_SPHERE); }
void vengeance_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) { if (!self || !other || !plane) { return; } if (self->spawnflags & SPHERE_DOPPLEGANGER) { sphere_touch(self, other, plane, surf, MOD_DOPPLE_VENGEANCE); } else { sphere_touch(self, other, plane, surf, MOD_VENGEANCE_SPHERE); } }