From 48901ec1b7c50ab52f8c509a9f26a6c562e241a8 Mon Sep 17 00:00:00 2001 From: Alejandro Pulver Date: Sat, 30 Dec 2006 23:21:53 +0000 Subject: - Fix undefined references in library (previously it could only be used with "games/qudos" and "games/kmquake2", because they build a modified version). - Install node files with appropiate permissions. - Add an entry in pkg-message about permissions. - Bump PORTREVISION. Reported by: Volodymyr Kostyrko Obtained from: http://svn.quakedev.com/viewcvs.cgi/qudos/trunk/src/mods/3zb2/ --- games/quake2-3zb2/files/patch-g_turret.c | 65 ++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 games/quake2-3zb2/files/patch-g_turret.c (limited to 'games/quake2-3zb2/files/patch-g_turret.c') diff --git a/games/quake2-3zb2/files/patch-g_turret.c b/games/quake2-3zb2/files/patch-g_turret.c new file mode 100644 index 000000000000..71d212c42be2 --- /dev/null +++ b/games/quake2-3zb2/files/patch-g_turret.c @@ -0,0 +1,65 @@ +--- ./g_turret.c.orig Sat Dec 30 19:09:03 2006 ++++ ./g_turret.c Sat Dec 30 19:09:23 2006 +@@ -253,8 +253,11 @@ + */ + + void infantry_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage); ++/* + void infantry_stand (edict_t *self); +-void monster_use (edict_t *self, edict_t *other, edict_t *activator); ++void monster_use (edict_t *self, edict_t *other, edict_t *activator); ++*/ ++ + + void turret_driver_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point) + { +@@ -273,10 +276,13 @@ + self->target_ent->owner = NULL; + self->target_ent->teammaster->owner = NULL; + +- infantry_die (self, inflictor, attacker, damage); ++// infantry_die (self, inflictor, attacker, damage); ++ + } + +-qboolean FindTarget (edict_t *self); ++ ++//qboolean FindTarget (edict_t *self); ++ + + void turret_driver_think (edict_t *self) + { +@@ -291,8 +297,11 @@ + + if (!self->enemy) + { ++ /* + if (!FindTarget (self)) +- return; ++ return; ++ */ ++ + self->monsterinfo.trail_time = level.time; + self->monsterinfo.aiflags &= ~AI_LOST_SIGHT; + } +@@ -385,7 +394,8 @@ + self->viewheight = 24; + + self->die = turret_driver_die; +- self->monsterinfo.stand = infantry_stand; ++ ++// self->monsterinfo.stand = infantry_stand; + + self->flags |= FL_NO_KNOCKBACK; + +@@ -394,7 +404,9 @@ + self->svflags |= SVF_MONSTER; + self->s.renderfx |= RF_FRAMELERP; + self->takedamage = DAMAGE_AIM; +- self->use = monster_use; ++ ++// self->use = monster_use; ++ + self->clipmask = MASK_MONSTERSOLID; + VectorCopy (self->s.origin, self->s.old_origin); + self->monsterinfo.aiflags |= AI_STAND_GROUND|AI_DUCKED; -- cgit v1.2.3