Black Cat Forums   Alien Swarm - Steampowered Forums
Alien Swarm 2K4 - ThieveryUT
Black Cat Games - TTLG Forums

Go Back   Black Cat Forums > Alien Swarm 2K4 Forums > Alien Swarm 2K4 Mapping

Notices

Reply
 
Thread Tools
Old 4th Oct 2008, 07:58 AM   #1
Ki!ler-Mk1
Member
 
Ki!ler-Mk1's Avatar
 
Registered: Apr 2005
Location: Boston, England
Posts: 2,013
Triggers

Can anyone explain the trigger properties below:


ReTriggerDelay

RepeatTriggerTime


I've done research and i still dont understand, what i want is so that this trigger triggers every X(10) seconds if there is a marine in its radius, this then drives a randomtrigger which sets of spawns to the left or right.

Currently i've got a dispatcher running off the trigger with a 10 sec delay before the event for the randomtrigger, but i would prefer to do this the correct way.
__________________
Alien Swarm Map List
Ki!ler-Mk1 is offline   Reply With Quote
Old 4th Oct 2008, 08:27 AM   #2
Baz
Member
 
Baz's Avatar
 
Registered: Jan 2005
Location: 0xbaadf00d
Posts: 3,094
RepeatTriggerTime; //if > 0, repeat trigger message at this interval is still touching other
ReTriggerDelay; //minimum time before trigger can be triggered again

Looking through the code, RepeatTriggerTime is only checked if ReTriggerDelay is 0, so check that 1st.
What RepeatTriggerTime does is, when an actor is touching it, it sets the triggers timer event, when the timer is called it only touches touching actors. It doesn't appear to trigger the triggers own event. Looks like you need a custom timed trigger (although triggers were never my strong point, and I've not looked at unrealscript in so long, chances are I'm totally wrong ). trigger!

In the event of hell freezing over, overriding the Timer function in your subclass with the below code may work.

Code:
function Timer()
{
	local bool bKeepTiming;
	local Actor A;

	bKeepTiming = false;

	ForEach TouchingActors(class'Actor', A)
		if ( IsRelevant(A) )
		{
			bKeepTiming = true;
			Touch(A);
		}

	if ( bKeepTiming )
       {
		SetTimer(RepeatTriggerTime, false);
                
                //this line of code was added!
                TriggerEvent(Event, self, self);
       }
}
Maybe the dispatcher is the correct way.
__________________
..it's safer here.
Baz is offline   Reply With Quote
Old 4th Oct 2008, 09:28 AM   #3
Ki!ler-Mk1
Member
 
Ki!ler-Mk1's Avatar
 
Registered: Apr 2005
Location: Boston, England
Posts: 2,013
So theoretically:


ReTriggerDelay = 10
RepeatTriggerTime = 0

Should do it? cus i mean it worked ok on single player but on a server the trigger fired, cus of its message but we never saw any aliens.
__________________
Alien Swarm Map List
Ki!ler-Mk1 is offline   Reply With Quote
Old 4th Oct 2008, 09:40 AM   #4
Baz
Member
 
Baz's Avatar
 
Registered: Jan 2005
Location: 0xbaadf00d
Posts: 3,094
Rereading through the code there is no need for a subclass (I was totally wrong!), ReTriggerDelay = 10 and RepeatTriggerTime = 0 fires the trigger. Have you tried it without the random trigger?
__________________
..it's safer here.
Baz is offline   Reply With Quote
Old 4th Oct 2008, 12:35 PM   #5
Ki!ler-Mk1
Member
 
Ki!ler-Mk1's Avatar
 
Registered: Apr 2005
Location: Boston, England
Posts: 2,013
Im trying to set it up to fire every 10 seconds, as long as someone is in the radius, ignoring people leaving and reentering etc.
__________________
Alien Swarm Map List
Ki!ler-Mk1 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd volumes and alien triggers. Ki!ler-Mk1 Alien Swarm 2K4 Mapping 5 6th Feb 2007 08:13 AM
triggers and alien spawners RahRaider Alien Swarm 2K4 Mapping 1 21st Jan 2005 12:37 AM
TH / Triggers ... DhaThief Thievery Mapping 4 5th Apr 2003 01:45 AM


All times are GMT -5. The time now is 06:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, vBulletin Solutions, Inc.