DieHard Wolfers Forum Index DieHard Wolfers
A Wolfenstein 3d Fan Community


  Hosted by: MCS & Areyep.com - Designed by: BrotherTank

Original Yahoo Forum - Die Hard Archives

AReyeP HomepageAreyep Homepage DieHard Wolfenstein BunkerDieHard Wolfenstein Bunker Log inLog in RegisterRegister Banlist FAQFAQ Search ForumsSearch

  Username:    Password:      Remember me       

[Info] Alarm Sounding in game?? WSJ...??
Page 1 of 1
DieHard Wolfers Forum Index -> Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page BottomView Next Topic
Post new topicReply to topic
Author Message
Guest




Last Visit:





PostPosted: Sat Apr 19, 2003 8:01 am
   Subject: [Info] Alarm Sounding in game?? WSJ...??
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Hello Wolf I have a question for you; HOW THE HELL HAVE YOU DONE THE ALARM IN YOUR GAME!!. I have tried a BILLION of things but I'M not able to do it. So PLEEEEAAAAASE tell me how to do the alarm Wink

Thanks A LOT!

- Alex
Guest




Last Visit:





PostPosted: Sat Apr 19, 2003 2:19 pm
   Subject: Re: [Info] Alarm Sounding in game?? WSJ...??
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Well... I never could get it to work perfectly... and I'm sure that the code gurus would be able to find out a much better method than the one I used. Embarassed

What I did is really not that complicated... in fact, it's kind of stupid... Embarassed

All I did was create a new enemy (much like a ghost which doesn't move), then I assigned a function to one of its "chase" frames that makes a noise.

When the alarm is not alerted, it just stands there. When it gets "sounded" (actually, it just "sees" or "hears" the player the way an enemy does Embarassed) it goes into its "chase" frame, but instead of chasing the player, it makes a noise.

For the noise function, you could just use something like this:

::: CODE :::

void A_Alarm (objtype *ob)
{
   madenoise = true;
   if (areabyplayer[ob->areanumber])
   PlaySoundLocActor(ALARMSND,ob);
}


I've noticed that it USUALLY alerts enemies, but not always... so this might not be a good thing to use... It was the best way I could think of...

I'm not a good programmer... Embarassed ... I just try to use whatever works for my ideas.
Guest




Last Visit:





PostPosted: Sat Apr 19, 2003 4:23 pm
   Subject: Re: [Info] Alarm Sounding in game?? WSJ...??
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Can you put more details please because I have try a lot of thing and the alarm dont work
Dugtrio17
Code Master
Code Master


Joined: 11 Mar 2003
Last Visit: 03 Oct 2013

Topics: 49
Posts: 903
Location: Seattle
usa.gif

PostPosted: Sat Apr 19, 2003 9:01 pm
   Subject: Re: [Info] Alarm Sounding in game?? WSJ...??
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I was going to do mine (in one of my projects, the one I'm doing alone) by creating a special wall with the alarm box drawn on it with an invisible bonus item that only the enemy could pick up in front of it (you'd have to put it there with FloEdit or MapEdit, of course), making the alarm sound. See MCS' tutorial on making guards pick up bonus items to make the bonus item invisible.
Good luck! Smile

_________________
wolf3dbreaker
I am Death Incarnate
I am Death Incarnate


Joined: 09 Jun 2003
Last Visit: 29 Sep 2009

Topics: 31
Posts: 196
Location: Philippines
philippines.gif

PostPosted: Fri Jun 13, 2003 11:34 pm
   Subject: Re: [Info] Alarm Sounding in game?? WSJ...??
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

If Arturo comes back, why don't you ask him? our alarm is like this. but I don't know how to code it. it is like, if you are in Can I play daddy? difficulty level, when the alarm is sounded, it becomes Bring Em on and the guards of the Bring Em on will come out. but only for that level. (duh!)
and if it on Bring Em on, it becomes I am death Incarnate. But The alarm is Disabled in the Death Incernate Wink

_________________
Gone from the community for a while. Will be back on July
Reivax44
Bring 'em On
Bring 'em On


Joined: 25 Apr 2003
Last Visit: 26 Aug 2010

Topics: 3
Posts: 140
Location: Adelaide.
australia.gif

PostPosted: Sun Jun 15, 2003 11:18 pm
   Subject: Re: To WSJ...
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

... very clever! Which TC are you talking about? Is it the one with RTCW graphics etc.?

@Demolition Derby... you'll have to try it out! By the way... I'm starting to make the demo again after what happened last week...

Cool

_________________
95% of people tip-toe through life hoping to make it safely to DEATH!
wolf3dbreaker
I am Death Incarnate
I am Death Incarnate


Joined: 09 Jun 2003
Last Visit: 29 Sep 2009

Topics: 31
Posts: 196
Location: Philippines
philippines.gif

PostPosted: Mon Jun 16, 2003 3:32 am
   Subject: Re: To WSJ...
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Yes it is. and our TC, Castle wolfenstein assault will be delayed for 2 months. it is because I just recieved my report card and my mom and dad didn't like it! In fact, I shouldn't be in the PC right now! I am grounded for 2 months so It might be delayed in a few months Crying or Very sad

_________________
Gone from the community for a while. Will be back on July
Reivax44
Bring 'em On
Bring 'em On


Joined: 25 Apr 2003
Last Visit: 26 Aug 2010

Topics: 3
Posts: 140
Location: Adelaide.
australia.gif

PostPosted: Tue Jun 17, 2003 10:04 pm
   Subject: Re: To WSJ...
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

wolf3dbreaker said
Quote:
I am grounded for 2 months so It might be delayed in a few months


...damn. Crying or Very sad

_________________
95% of people tip-toe through life hoping to make it safely to DEATH!
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page TopView Next Topic
Page 1 of 1
Jump to:  

Related topics
 Topics   Replies   Views   Last Post 
No new posts Sticky: [Info] Help for newbie coders! C++ Tutorial
Author: Dugtrio17
20 7686 Sun Jan 10, 2010 12:26 pm
Fragstein3D View latest post
No new posts [Info] Breakable or Exploding Objects (colums or barrels)
Author: wolf3dbreaker
37 6452 Tue Feb 08, 2005 5:44 am
Guest View latest post
No new posts [Info] Tricks - Dogs that shoot - Modifying Behaviour
Author: Guest
19 284 Sat Mar 20, 2004 7:31 am
Dugtrio17 View latest post
No new posts [Info] Silent Gun? - Adding a Silencer
Author: Guest
4 194 Fri Apr 18, 2003 8:34 am
BrotherTank View latest post
No new posts [Info] Adding Locked Doors
Author: Guest
3 243 Thu Apr 17, 2003 6:30 am
Ripper View latest post
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
   You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group