lfnetwork.com mark read register faq members calendar

Thread: Nodrop...
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 07-16-2005, 10:39 AM   #1
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
Nodrop...

anyone have any idea how i could add CONTENTS_NODROP to trigger_hurt's that are for death pits ?

cause with dropflag id like the flags to return and most maps dont have a nodrop brush in the pits... ctf4 is the only ctf map...


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 07-16-2005, 12:13 PM   #2
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,162
Well, you might be able to make the trigger's think function scan for dropped flags inside of itself. If this occurs, you'll just force the flag to respawn.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 07-16-2005, 12:47 PM   #3
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
oh... the think function i had a check in the touch function.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 07-16-2005, 05:56 PM   #4
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,162
mmm, the touch function might work but I don't know if it's activated when the flag starts inside the trigger space (which would happen when the player falls thru and craters). I'd give it a shot and see.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 07-16-2005, 11:52 PM   #5
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
here's what i got so far...


Code:
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:

Code:
	self->think = hurt_think;
	self->nextthink = level.time + 500;
Note: barrowed from shipboundary code.

flags still dont return though :/


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Nodrop...

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:51 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.