Is it possible to turn off and on a dod_object_goal ?


Kehldon
08-22-2003, 07:48 AM
I have been messing around with a dod_object_goal since I want to be able to turn it on and off but I haven't succeeded yet.

Anyone have any ideas how to do that ?

skdr
08-22-2003, 08:32 AM
There is a thread for these kind of questions. It's really helpful that all answers and questions are in same thread to check out.

Please take a look (http://www.dayofdefeat.net/forums/showthread.php?s=&threadid=14975)

Btw. personally I dont know answer for this and I dont want to act like moderator here but just telling you that there's a thread like that where u can ask questions. :)

FuzzDad
08-22-2003, 08:46 AM
Try one of these two techniques: Either use env_state and the master components of the object_goal to turn it off or use the changetarget entity to re-direct the objectgoal away from it's target.

The env_state technique uses the master field...the best example map I know on using env_state to control masters is in Waldo's mortar tutorial on the collective...click HERE (http://collective.valve-erc.com/index.php?doc=1047766389-75965200). Look how he turns the func_button off after the mortar is "destroyed"

The changetarget is something I use in glider (the version that will release either in 1.1 or 1.2)...to re-direct things...you can fire a changetarget that re-directs a breakable for example...the 88mm in glider can be captured by either shooting it with a zooka (breakable) or capturing it with a satchel charge (Area_cap). If you cap the 88mm w/satchel I need to then not allow the breakable on the 88mm itself to fire off the flag...so all I did was use a changetarget to change the target of the 88mm breakable to a false name. So if someone later on comes up and fires a zooka round into the cannon breakable it will break...but not activate the sequence that caps the flag again (would give more team points then) because I've changed the breakables target location to something that doesn't exisit (hard to follow...I know)

If you have any questions you can chat me up tonight.

Kehldon
08-22-2003, 08:50 AM
Thanks alot Fuzz, Ill give it a try! :)

Mythic_Kruger
08-22-2003, 09:06 AM
;) env_state

Kehldon
08-23-2003, 02:55 AM
Thanks Kruger ;)

I tryed the env_state but didnt get it to work myself...

Kehldon
08-25-2003, 04:25 AM
After some researching I found out that master setting doesnt work with dod_object_goal but it does for the dod_capture_area which can be used the same way. :|

The dod_object_goal doesnt switch off when its master does so....

Mythic_Kruger
08-25-2003, 06:10 AM
Set the cap time of the capture_area to 0, there won't be any difference, except "Private captured x for the allied" won't appear.

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.