Go Back   Tactical Gamer > Action > Natural Selection > Natural Selection - Map Development


Natural Selection - Map Development Discussion on the development of new maps for Natural Selection.

Reply
 
Thread Tools
Old 10-31-2006, 06:00 PM   #1 (permalink)
 
Join Date: Feb 2006
Posts: 363
multisource and func_button interaction

If we're going to be doing a power resupply dynamic with the map, I thought this would be useful to you guys.

A note (excerpted from the multisource article on the valve erc):

Quote:
Originally Posted by Steven 'SEThorian' van de Graaf
Thu Aug 11, 2005 / 02:40pm PDT

MULTISOURCE ADDITION: FUNC_BUTTON BUG

When giving a func_button a multisource entity as a master (in order to not have the button usable until the multisource has been triggered) will result in the button to be automatically triggered when its multisource master is triggered. Thus for instance:

You want a button to be usable after the power switch has been activated. Normally you would make the power switch target the multisource which in its turn would enable the button to be usable. Though it's supposed to work like this, it doesn't. Like mentioned before, the button will be triggered as soon as the multisource is triggered.

How to solve this bug

To my knowledge, there isn't an actual solution, but there is a workaround.

Make the func_button target something non-existant (for instance; give it a target of "evil_kittens_for_world_domination") and instead of a multisource, make the power switch target a trigger_changetarget.

In the target field of the trigger_changetarget, enter the name of the func_button. In the New Target field, enter the name of the entity that you want the func_button to trigger. (For instance a level change.)

Now, the func_button won't trigger the level change until the power switch has been hit and the func_button used afterwards.

Ideally, you can make the func_button originally target a speaker or ambient_generic entity so that when it's used before the trigger_changetarget is triggered, it will give off a "buzz off" sound or "Access Denied!" announcement. In the case of the speaker entity, make the trigger_changetarget killtarget the speaker entity.
comment modified on Thu Aug 11, 2005 / 02:42pm PDT
Slayer of Hippies is offline   Reply With Quote
Old 11-27-2006, 12:07 PM   #2 (permalink)
 
Join Date: Nov 2006
Location: Your BackYard
Age: 20
Posts: 64
Re: multisource and func_button interaction

Hm... this just might solve a problem I've had on my WIP Map... thanks mate!
__________________
Damn the torpedos and full speed ahead!
Kittamaru is offline   Reply With Quote
Sponsored links
Old 11-28-2006, 09:44 AM   #3 (permalink)
 
Join Date: Nov 2006
Location: Your BackYard
Age: 20
Posts: 64
Re: multisource and func_button interaction

Smal problem mate- where the heck do I find the trigger_changetarget entity?
__________________
Damn the torpedos and full speed ahead!
Kittamaru is offline   Reply With Quote
Old 11-28-2006, 04:37 PM   #4 (permalink)
 
Join Date: Feb 2006
Posts: 363
Re: multisource and func_button interaction

Place the entity instead of tying a brush to it.
Slayer of Hippies is offline   Reply With Quote
Sponsored links
Reply

Bookmarks


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
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
©2004-2008 - Tactical Gamer - All Rights Reserved