Jump to content

Home

Nodrop...


ensiform

Recommended Posts

here's what i got so far...

 

 

void hurt_think(gentity_t *ent)
{
int			iEntityList[MAX_GENTITIES];
int			numListedEntities;
int			i = 0;
gentity_t	*listedEnt;

ent->nextthink = level.time + 100;

if (ent->genericValue7 < level.time)
{ //don't need to be doing this check, no one has touched recently
	return;
}

numListedEntities = trap_EntitiesInBox( ent->r.absmin, ent->r.absmax, iEntityList, MAX_GENTITIES );
while (i < numListedEntities)
{
	listedEnt = &g_entities[iEntityList[i]];
	if (listedEnt->item->giType == IT_TEAM) {
		Team_FreeEntity(listedEnt);
	}	
	i++;
}
}

 

and in sp_trigger_hurt:

 

	self->think = hurt_think;
self->nextthink = level.time + 500;

 

Note: barrowed from shipboundary code.

 

flags still dont return though :/

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...